Seite 1 von 1

longtable & sidewystable in apa6

Verfasst: Fr 19. Jul 2013, 16:31
von neymar
Hallo da draußen,

ich brauche dringend Hilfe bei meiner Tabelle. Ich schreibe in apa6.
Ich brauche eine um 90° gedrehte Tabelle über zwei Seiten und habe folgendes gemacht:

\documentclass[doc,10pt,
babel,english,ngerman]{apa6}
\shorttitle{}
\usepackage[utf8]{inputenc} %dtsch Umlaute
\usepackage[onehalfspacing]{setspace}
\usepackage{rotating}


\begin{document}

\begin{sidewaystable}
    \centering
    \caption{Interkorrelationen}
	\label{tab:IK}	
\begin{tabular}{@{}lccccccccccccccccccccccccccccc@{}} \toprule
Skala & (1) & (2) & (3) & (4) & (5) & (6) & (7) & (8) & (9) & (10) & (11) & (12) & (13) & (14) & (15) & (16) & (17) \\ \midrule
() Coping$_{t1}$ & \\
() Selbstbeobachtung$_{t1}$ & .38 & \\
() Selbstwirksamkeit$_{t1}$ & .66 & .36 & \\
() Selbstverbalisation$_{t1}$ & .46 & .34 & .33 & \\
() Hoffnung$_{t1}$ & .51 & .35 & .68 & .44 & \\
() Soziale Unterstützung$_{t1}$ & .36 & .18 & .38 & .23 & .47 & \\
() Selbstmanagement-Fähigkeiten$_{t1}$ & .81 & .61 & .83 & .66 & .83 & .45 & \\
() Arbeitsüberlastung$_{t1}$ & -.10 & .23 & -.23 & .01 & -.07 & -.03 & -.06 & \\
() Erfolgsdruck$_{t1}$ & -.16 & .00 & -.24 & -.07 & -.12 & -.13 & -.16 & .53 & \\
() Überforderung bei der Arbeit$_{t1}$ & -.33 & .00 & -.51 & -.07 & -.26 & -.11 & -.33 & .66 & .54 & \\
() Soziale Isolation$_{t1}$ & -.20 & .00 & -.28 & -.21 & -.25 & -.39 & -.26 & .35 & .36 & .42 & \\
() Chronische Besorgnis$_{t1}$ & -.33 & .04 & -.46 & -.22 & -.32 & -.14 & -.36 & .49 & .45 & .63 & .45 & \\
() Stress-Screening-Skala$_{t1}$ & -.30 & .10 & -.44 & -.13 & -.24 & -.14 & -.29 & .78 & .60 & .80 & .53 & .85 & \\
() Somatisierung$_{t1}$ & -.29 & -.00 & -.26 & -.14 & -.22 & -.20 & -.25 & .28 & .28 & .36 & .26 & .40 & .42 & \\
() Zwanghaftigkeit$_{t1}$ & -.31 & -.09 & -.48 & -.13 & -.27 & -.20 & -.35 & .46 & .47 & .58 & .31 & .55 & .59 & .50 & \\
() Unsicherheit im Sozialkontakt$_{t1}$ & -.43 & -.01 & -.42 & -.24 & -.28 & -.20 & -.38 & .36 & .45 & .51 & .40 & .57 & .58 & .54 & .58 & \\
() Depressivität$_{t1}$ & -.44 & -.10 & -.53 & -.27 & -.42 & -.26 & -.49 & .33 & .40 & .56 & .50 & .61 & .60 & .51 & .60 & .80 & \\
() Ängstlichkeit & -.32 & .05 & -.33 & -.19 & -.19 & -.22 & -.27 & .40 & .42 & .55 & .40 & .57 & .60 & .71 & .59 & .67 & .63 & \\
() Aggressivität/Feindseligkeit$_{t1}$ & -.27 & .02 & -.24 & -.27 & -.15 & -.06 & -.24 & .32 & .35 & .35 & .24 & .45 & .47 & .52 & .49 & .65 & .63 & .60 & \\
() Sum Gesamtwert t1$_{t1}$ & -.43 & -.01 & -.44 & -.24 & -.33 & -.25 & -.40 & .40 & .43 & .59 & .46 & .63 & .65 & .85 & .67 & .79 & .85 & .90 & .69 & \\
() Zeitaufwand für Studium$_{t1}$ & .05 & .14 & .10 & .03 & -.01 & -.11 & .07 & .21 & .16 & .11 & .07 & .09 & .16 & .20 & .12 & .08 & .11 & .21 & .22 & .21 & \\
() Zeitaufwand für Erwebstätigkeit$_{t1}$ & -.02 & .03 & -.05 & -.04 & -.10 & -.11 & -.06 & .19 & .14 & .04 & -.02 & .01 & .11 & .07 & -.03 & -.00 & .04 & .01 & .15 & .05 & .13 & \\
() Arbeitsüberlastung & \\
() Erfolgsdruck & \\
() Überforderung bei der Arbeit & \\
() Soziale Isolation & \\
() Chronische Besorgnis & \\
() Stress-Screening-Skala & \\
() Somatisierung & \\
() Zwanghaftigkeit & \\
() Unsicherheit im Sozialkontakt & \\
() Depressivität & \\
() Ängstlichkeit & \\
() Aggressivität/Feindseligkeit & \\
() Sum Gesamtwert t2 & \\
() Dauer von Sport in h / Woche & \\
() partsoma & \\
() partdepr & \\
() partangs & \\
() Zeitaufwand für Studium & \\\midrule
\end{tabular}
\end{sidewaystable}

\end{document}

Ich habe schon ganz viel gegoogelt weil viele Probleme damit haben aber ich bekomms einfach nich hin und bin langsam mit den Nerven am Ende :(

Im Manual von apa6 steht:
longtable: If you must use long tables (exceeding one page in length),
try this option (but it may not work in all contexts). Do not load longtable
yourself because of precedence requirements with the endfloat package. Copy
the file APAendfloat.cfg from the “config” folder of your apa installation
to the working folder of your document (not in your texmf tree), and rename
it to endfloat.cfg so that endfloat will recognize it. The supplied
APAendfloat.cfg file will also be necessary in conjunction with rotating
package (and its \sideways command) to produce rotated tables.
Das habe ich auch gemacht (also in den Ordner, in dem meine .tex-Dateien für das Dokument sind) aber es funktioniert nicht.

Fehlermeldung
Environment longtable undefined.
und
\begin{document} ended by \end{longtable}.

Verfasst: Fr 19. Jul 2013, 18:11
von u_fischer
apa4 lädt endfloat nur mit der Option man ("endfloat: handles placing tables and figures at the end of a manuscript; used only with the man option").

D.h. Du kannst die ganze Anweisung ignorieren und einfach longtable laden.

Eine longtable in einer sidewaystable macht aber keinen Sinn. sidewaystable kann keinen Seitenumbruch.

Du brauchst das Paket pdflscape und dann sowas wie
\begin{landscape}\begin{longtable}\caption{blub}\\...\end{longtable}\end{landscape}

Verfasst: Fr 19. Jul 2013, 18:55
von neymar
Okay schonmal Danke das macht Sinn. Aber funktionieren tut es leider noch immer nicht... :(

Das longtable-usepackage muss ich nicht mehr laden oder? wenn nciht kommt: Environment longtable undefined.
aber wenn ich es lade spuckt es mir dann noch viel mehr fehler aus. und \caption passt ihm auch gar nicht.

hier der code
\documentclass[doc,10pt,
babel,english,ngerman]{apa6}
\shorttitle{}
\usepackage{enumitem}
\usepackage[utf8]{inputenc} %dtsch Umlaute
\usepackage{csquotes}
\usepackage{textcomp}
\usepackage[onehalfspacing]{setspace}
\usepackage[arrow, matrix, curve]{xy}
\usepackage{blindtext}
\usepackage{pdflscape}


\begin{document}


\begin{landscape}
\begin{longtable}
%    \caption{Interkorrelationen}
	\label{tab:BI.BSI}	
		\begin{tabular}{@{}lccccccccccccccccccccccccccccc@{}} \toprule
Skala & (1) & (2) & (3) & (4) & (5) & (6) & (7) & (8) & (9) & (10) & (11) & (12) & (13) & (14) & (15) & (16) & (17) \\ \midrule
() Coping$_{t1}$ & \\
() Selbstbeobachtung$_{t1}$ & .38 & \\
() Selbstwirksamkeit$_{t1}$ & .66 & .36 & \\
() Selbstverbalisation$_{t1}$ & .46 & .34 & .33 & \\
() Hoffnung$_{t1}$ & .51 & .35 & .68 & .44 & \\
() Soziale Unterstützung$_{t1}$ & .36 & .18 & .38 & .23 & .47 & \\
() Selbstmanagement-Fähigkeiten$_{t1}$ & .81 & .61 & .83 & .66 & .83 & .45 & \\
() Arbeitsüberlastung$_{t1}$ & -.10 & .23 & -.23 & .01 & -.07 & -.03 & -.06 & \\
() Erfolgsdruck$_{t1}$ & -.16 & .00 & -.24 & -.07 & -.12 & -.13 & -.16 & .53 & \\
() Überforderung bei der Arbeit$_{t1}$ & -.33 & .00 & -.51 & -.07 & -.26 & -.11 & -.33 & .66 & .54 & \\
() Soziale Isolation$_{t1}$ & -.20 & .00 & -.28 & -.21 & -.25 & -.39 & -.26 & .35 & .36 & .42 & \\
() Chronische Besorgnis$_{t1}$ & -.33 & .04 & -.46 & -.22 & -.32 & -.14 & -.36 & .49 & .45 & .63 & .45 & \\
() Stress-Screening-Skala$_{t1}$ & -.30 & .10 & -.44 & -.13 & -.24 & -.14 & -.29 & .78 & .60 & .80 & .53 & .85 & \\
() Somatisierung$_{t1}$ & -.29 & -.00 & -.26 & -.14 & -.22 & -.20 & -.25 & .28 & .28 & .36 & .26 & .40 & .42 & \\
() Zwanghaftigkeit$_{t1}$ & -.31 & -.09 & -.48 & -.13 & -.27 & -.20 & -.35 & .46 & .47 & .58 & .31 & .55 & .59 & .50 & \\
() Unsicherheit im Sozialkontakt$_{t1}$ & -.43 & -.01 & -.42 & -.24 & -.28 & -.20 & -.38 & .36 & .45 & .51 & .40 & .57 & .58 & .54 & .58 & \\
() Depressivität$_{t1}$ & -.44 & -.10 & -.53 & -.27 & -.42 & -.26 & -.49 & .33 & .40 & .56 & .50 & .61 & .60 & .51 & .60 & .80 & \\
() Ängstlichkeit & -.32 & .05 & -.33 & -.19 & -.19 & -.22 & -.27 & .40 & .42 & .55 & .40 & .57 & .60 & .71 & .59 & .67 & .63 & \\
() Aggressivität/Feindseligkeit$_{t1}$ & -.27 & .02 & -.24 & -.27 & -.15 & -.06 & -.24 & .32 & .35 & .35 & .24 & .45 & .47 & .52 & .49 & .65 & .63 & .60 & \\
() Sum Gesamtwert t1$_{t1}$ & -.43 & -.01 & -.44 & -.24 & -.33 & -.25 & -.40 & .40 & .43 & .59 & .46 & .63 & .65 & .85 & .67 & .79 & .85 & .90 & .69 & \\
() Zeitaufwand für Studium$_{t1}$ & .05 & .14 & .10 & .03 & -.01 & -.11 & .07 & .21 & .16 & .11 & .07 & .09 & .16 & .20 & .12 & .08 & .11 & .21 & .22 & .21 & \\
() Zeitaufwand für Erwebstätigkeit$_{t1}$ & -.02 & .03 & -.05 & -.04 & -.10 & -.11 & -.06 & .19 & .14 & .04 & -.02 & .01 & .11 & .07 & -.03 & -.00 & .04 & .01 & .15 & .05 & .13 & \\
() Arbeitsüberlastung & \\
() Erfolgsdruck & \\
() Überforderung bei der Arbeit & \\
() Soziale Isolation & \\
() Chronische Besorgnis & \\
() Stress-Screening-Skala & \\
() Somatisierung & \\
() Zwanghaftigkeit & \\
() Unsicherheit im Sozialkontakt & \\
() Depressivität & \\
() Ängstlichkeit & \\
() Aggressivität/Feindseligkeit & \\
() Sum Gesamtwert t2 & \\
() Dauer von Sport in h / Woche & \\
() partsoma & \\
() partdepr & \\
() partangs & \\
() Zeitaufwand für Studium & \\\midrule
\end{tabular}

\end{longtable}
\end{landscape}

\end{document}
und sonst kommt wieder der fehler:

Environment longtable undefined.

Verfasst: Fr 19. Jul 2013, 18:58
von u_fischer
Ich empfehle ein Blick in die Dokumentation von longtable. Und ja, du musst das Paket laden.

Verfasst: Fr 19. Jul 2013, 19:41
von neymar
okay ohne \tabular.. hat jetzt geklappt aber ich glaube der ganze stress war umsonst.. ich braeuchte naemlich dass meine tabelle nach rechts weitergeht und nciht nach unten... mist! werde wohl zwei tabellen machenn müssen oder?