PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Automatischer Zeilenumbruch in Tabelle



Anastazio
11-08-2008, 14:10
Hallo,
ich bitte um Hilfe.
Ich bin Tex-Neuling und habe Probleme mit einer Tabelle.

Problem 1: Wie bekomme ich einen automatischen Zeilenumbruch innerhalb meiner Tabelle hin, so daß der "Beispieltext" automatisch umgebrochen wird, aber innerhalb derselben Spalte!

Problem 2: Die Fußnoten innerhalb der Tabelle werden nicht automatisch durchnummeriert. Warum?!

Problem 3: Wie kann die Tabelle automatisch auf 2 Seiten umgebrochen werden?

Vorab schon mal ein großes Dankeschön all denjenigen, die sich meinem Problem annehmen!

Hier meine Tabelle:

\begin{landscape}
\begin{tabular}{l*{10}{c}{c}}
&\begin{sideways}A\end{sideways} &\begin{sideways}B\end{sideways}
&\begin{sideways}C\end{sideways} &\begin{sideways}D\end{sideways}
&\begin{sideways}E\end{sideways} &\begin{sideways}F\end{sideways}
&\begin{sideways}G\end{sideways} &\begin{sideways}H\end{sideways}
&\begin{sideways}I\end{sideways} &\begin{sideways}J\end{sideways}\\
\hline
Autor 1\footnotemark & x & x & & & & & x & & & Beispieltext,Beispieltext,Beispieltext,Beispieltex t,Beispieltext,Beispieltext,Beispieltext, Beispieltext,Beispieltext,Beispieltext,Beispieltex t,Beispieltext,Beispieltext,Beispieltext\\
Autor 2\footnotemark & x & x & & & & & & & & \\
Autor 3\footnotemark & & x & & x & & x & x & & & Beispieltext,Beispieltext,Beispieltext,Beispieltex t,Beispieltext,Beispieltext,Beispieltext\\
Autor 4\footnotemark & & x & & x & & x & x & & & \\
Autor 5\footnotemark & & x & & x & & x & x & & & \\
Autor 6\footnotemark & & x & & x & & x & x & & & \\
Autor 7\footnotemark & & x & & x & & x & x & & & \\
Autor 8\footnotemark & & x & & x & & x & x & & & \\
Autor 9\footnotemark & & x & & x & & x & x & & & \\
Autor 10\footnotemark & & x & & x & & x & x & & & \\
Autor 11\footnotemark & & x & & x & & x & x & & & Beispieltext,Beispieltext,Beispieltext,Beispieltex t,Beispieltext,Beispieltext,BeispieltextBeispielte xt,Beispieltext,Beispieltext,Beispieltext,Beispiel text,Beispieltext,Beispieltext\\
Autor 12\footnotemark & & x & & x & & x & x & & & \\
Autor 13\footnotemark & & x & & x & & x & x & & & \\
Autor 14\footnotemark & & x & & x & & x & x & & & \\
Autor 15\footnotemark & & x & & x & & x & x & & & \\
Autor 16\footnotemark & & x & & x & & x & x & & & \\
Autor 17\footnotemark & & x & & x & & x & x & & & Beispieltext,Beispieltext,Beispieltext,Beispieltex t,Beispieltext,Beispieltext,Beispieltext\\
Autor 18\footnotemark & & x & & x & & x & x & & & \\
Autor 19\footnotemark & & x & & x & & x & x & & & Beispieltext,Beispieltext,Beispieltext,Beispieltex t,Beispieltext,Beispieltext,BeispieltextBeispielte xt,Beispieltext,Beispieltext,Beispieltext,Beispiel text,Beispieltext,Beispieltext\\
Autor 20\footnotemark & & x & & x & & x & x & & & \\

\hline
\end{tabular}
\footnotetext{Vgl. x}
\footnotetext{Vgl. y}
\footnotetext{Vgl. z}
\footnotetext{Vgl. x}
\footnotetext{Vgl. y}
\footnotetext{Vgl. z}
\footnotetext{Vgl. x}
\footnotetext{Vgl. y}
\footnotetext{Vgl. z}
\footnotetext{Vgl. x}
\footnotetext{Vgl. y}
\footnotetext{Vgl. z}
\footnotetext{Vgl. x}
\footnotetext{Vgl. y}
\footnotetext{Vgl. z}
\footnotetext{Vgl. x}
\footnotetext{Vgl. y}
\footnotetext{Vgl. z}
\footnotetext{Vgl. x}
\footnotetext{Vgl. y}
\end{landscape}

edico
11-08-2008, 19:18
Zu den 3 Themen s. Tabelle.
Du must zum Zeilenumbruch z.B. p-Spalten wählen; zur Durchnummerierung muss man das package nur korrekt anwenden (damit die Fussnoten nicht alle untereinander, sondern neben-(nach-)einander gesetzt werden, musst Du footmisc laden; um einen Seitenumbruch zu generieren, brauchst Du longtable, evtl LTXtable.

\documentclass[10pt,a4paper,DIV15,german]{scrartcl}
\usepackage{babel}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}

\usepackage[para,hang]{footmisc}

\usepackage{array,longtable,rotating,calc,ragged2e }
\usepackage{pdflscape}%
\newcommand{\colhead}[1]{\begin{sideways}\small{#1}\,\end{sideways}}
\def\x{Bei\-spiel\-text}

\begin{document}
{\huge This is a longtable test}\vfill\hfill ... and here it goes ...

\begin{landscape}
\footnotesize
\begin{longtable}{@{}l *{10}{p{.09\linewidth-2\tabcolsep}} @{}}
& \colhead{A}& \colhead{B}& \colhead{C}& \colhead{D}& \colhead{E}&
\colhead{F}& \colhead{G}& \colhead{H}& \colhead{I}& \colhead{J}\\\hline
Autor 1\footnotemark & \x & \x & & & & & \x & & & \x,\x,\x,\x,\x,\x,\x,\x,\x,\x,\x,\x,\x\\
Autor 2\footnotemark & \x & \x & & & & & & & & \\
Autor 3\footnotemark & & \x & & \x & & \x & \x & & & \x,\x,\x,\x,\x,\x,\x\\
Autor 4\footnotemark & & \x & & \x & & \x & \x & & & \\
Autor 5\footnotemark & & \x & & \x & & \x & \x & & & \\
Autor 6\footnotemark & & \x & & \x & & \x & \x & & & \\
Autor 7\footnotemark & & \x & & \x & & \x & \x & & & \\
Autor 8\footnotemark & & \x & & \x & & \x & \x & & & \\
Autor 9\footnotemark & & \x & & \x & & \x & \x & & & \\
Autor 10\footnotemark & & \x & & \x & & \x & \x & & & \\
Autor 11\footnotemark & & \x & & \x & & \x & \x & & & \x,\x,\x,\x,\x,\x,\x,\x,\x,\x,\x,\x,\x\\
Autor 12\footnotemark & & \x & & \x & & \x & \x & & & \\
Autor 13\footnotemark & & \x & & \x & & \x & \x & & & \\
Autor 14\footnotemark & & \x & & \x & & \x & \x & & & \\
Autor 15\footnotemark & & \x & & \x & & \x & \x & & & \\
Autor 16\footnotemark & & \x & & \x & & \x & \x & & & \\
Autor 17\footnotemark & & \x & & \x & & \x & \x & & & \x,\x,\x,\x,\x,\x,\x\\
Autor 18\footnotemark & & \x & & \x & & \x & \x & & & \\
Autor 19\footnotemark & & \x & & \x & & \x & \x & & & \x,\x,\x,\x,\x,\x,\x,\x,\x,\x,\x,\x,\x\\
Autor 20\footnotemark & & \x & & \x & & \x & \x & & & \\
\hline
\end{longtable}
%
\footnotetext[1]{Vgl. a}\footnotetext[2]{Vgl. b}\footnotetext[3]{Vgl. c}
\footnotetext[4]{Vgl. d}\footnotetext[5]{Vgl. e}\footnotetext[6]{Vgl. f}
\footnotetext[7]{Vgl. h}\footnotetext[8]{Vgl. h}\footnotetext[9]{Vgl. i}
\footnotetext[10]{Vgl. j}\footnotetext[11]{Vgl. k}\footnotetext[12]{Vgl. l}
\footnotetext[13]{Vgl. m}\footnotetext[14]{Vgl. n}\footnotetext[15]{Vgl. o}
\footnotetext[16]{Vgl. p}\footnotetext[17]{Vgl. q}\footnotetext[18]{Vgl. r}
\footnotetext[19]{Vgl. s}\footnotetext[20]{Vgl. t}
\end{landscape}

... ending here.\vfill\hfill Stop now.

\end{document}


edico

P.S. ... und es wäre sehr nett, wenn Du das nächste Mal ein vollständiges Minimalbeispiel schicken könntest. Danke.

Anastazio
11-08-2008, 20:17
Hallo edico,

vielen Dank für Deine prompte Antwort.
Ich habe versucht meinen Text in Dein "Schema" einzubetten, doch leider sieht es noch nicht so aus, wie ich es haben möchte. Ich werde aber daran rumfeilen in der Hoffnung es irgendwie hinzubekommen.
Nochmals tausend Dank für Deine Mühe!

Anastazio