longtable caption Fehler "no align" Thema ist als GELÖST markiert

Tabellen und Grafiken erstellen und anordnen


basti-fantasti-48
Forum-Century
Forum-Century
Beiträge: 151
Registriert: So 4. Apr 2021, 14:27

longtable caption Fehler "no align"

Beitrag von basti-fantasti-48 »

Bei meiner longtable kommt bei caption der Fehler "no align".

Mir ist bewusst dass ich nahc caption "\\" schreiben muss.

Der Fehler kommt trotzdem

Benutzeravatar
Stefan Kottwitz
Admin
Admin
Beiträge: 2534
Registriert: Di 8. Jul 2008, 00:39
Kontaktdaten:

Re: longtable caption Fehler "no align"

Beitrag von Stefan Kottwitz »

Bei meinen longtables kommt der nicht, was machst Du denn?

Stefan

Wegweiser

Re: longtable caption Fehler "no align"

Beitrag von Wegweiser »

Mehr Kontext bitte!

basti-fantasti-48
Forum-Century
Forum-Century
Beiträge: 151
Registriert: So 4. Apr 2021, 14:27

Re: longtable caption Fehler "no align"

Beitrag von basti-fantasti-48 »

\documentclass[jou,apacite]{apa6}
\usepackage{multirow}
\usepackage{array}
\newcolumntype{P}[1]{>{\centering\arraybackslash}p{#1}}
\usepackage{longtable}

\usepackage{showframe} % to visualize writing area and margins ...
\usepackage{blindtext} % to generate dummy text


\begin{document}


\renewcommand{\arraystretch}{1.3}

\begin{longtable}{|p{2.8cm}|p{0.6cm}|p{1.6cm}|p{2.2cm}|P{0.8cm}|p{2.6cm}|p{2.5cm}|}
\caption{My data}
\label{tab:table3}\\
\hline
\textbf{Name} & \textbf{Year} & \textbf{ID} & \textbf{Address} & \textbf{Salary} & \textbf{Skills} & \textbf{Qualifications} \\
\hline
Some text & some text & some text & 5 & some text & Som text &\\
\hline
Some text & some text & some text & 5 & some text & Som text &\\
\hline
Some text & some text & some text & 5 & some text & Som text &\\
\hline
Some text & some text & some text & 5 & some text & Som text &\\
\hline
Some text & some text & some text & 5 & some text & Som text &\\
\hline
Some text & some text & some text & 5 & some text & Som text &\\
\hline
Some text & some text & some text & 5 & some text & Som text &\\
\hline
Some text & some text & some text & 5 & some text & Som text &\\
\hline
Some text & some text & some text & 5 & some text & Som text &\\
\hline
\end{longtable}

\end{document}
Zuletzt geändert von basti-fantasti-48 am Mi 20. Mär 2024, 09:22, insgesamt 9-mal geändert.

Benutzeravatar
Stefan Kottwitz
Admin
Admin
Beiträge: 2534
Registriert: Di 8. Jul 2008, 00:39
Kontaktdaten:

Re: longtable caption Fehler "no align"

Beitrag von Stefan Kottwitz »

Der Code wirft mehrere andere Fehler und keinen mit "no align",

Stefan

basti-fantasti-48
Forum-Century
Forum-Century
Beiträge: 151
Registriert: So 4. Apr 2021, 14:27

Re: longtable caption Fehler "no align"

Beitrag von basti-fantasti-48 »

ich kann nur mein Beispiel das nicht geht hier reinposten

basti-fantasti-48
Forum-Century
Forum-Century
Beiträge: 151
Registriert: So 4. Apr 2021, 14:27

Re: longtable caption Fehler "no align"

Beitrag von basti-fantasti-48 »

\documentclass[jou,apacite]{apa6}
\usepackage{multirow}
\usepackage{array}
\newcolumntype{P}[1]{>{\centering\arraybackslash}p{#1}}
\usepackage{longtable}

\usepackage{showframe} % to visualize writing area and margins ...
\usepackage{blindtext} % to generate dummy text


\begin{document}


\renewcommand{\arraystretch}{1.3}

\begin{longtable}{|p{2.8cm}|p{0.6cm}|p{1.6cm}|p{2.2cm}|P{0.8cm}|p{2.6cm}|p{2.5cm}|}
\caption{My data}
\label{tab:table3}\\
\hline
\textbf{Name} & \textbf{Year} & \textbf{ID} & \textbf{Address} & \textbf{Salary} & \textbf{Skills} & \textbf{Qualifications} \\
\hline
Some text & some text & some text & 5 & some text & Som text &\\
\hline
Some text & some text & some text & 5 & some text & Som text &\\
\hline
Some text & some text & some text & 5 & some text & Som text &\\
\hline
Some text & some text & some text & 5 & some text & Som text &\\
\hline
Some text & some text & some text & 5 & some text & Som text &\\
\hline
Some text & some text & some text & 5 & some text & Som text &\\
\hline
Some text & some text & some text & 5 & some text & Som text &\\
\hline
Some text & some text & some text & 5 & some text & Som text &\\
\hline
Some text & some text & some text & 5 & some text & Som text &\\
\hline
\end{longtable}

\end{document}
Habe es jetzt. Caption soll unten stehen aber da kommt der Fehler

Antworten