Seite 1 von 1

longtable caption Fehler "no align"

Verfasst: Di 19. Mär 2024, 10:45
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

Re: longtable caption Fehler "no align"

Verfasst: Di 19. Mär 2024, 10:48
von Stefan Kottwitz
Bei meinen longtables kommt der nicht, was machst Du denn?

Stefan

Re: longtable caption Fehler "no align"

Verfasst: Di 19. Mär 2024, 10:51
von Wegweiser
Mehr Kontext bitte!

Re: longtable caption Fehler "no align"

Verfasst: Di 19. Mär 2024, 12:12
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}

Re: longtable caption Fehler "no align"

Verfasst: Di 19. Mär 2024, 12:19
von Stefan Kottwitz
Der Code wirft mehrere andere Fehler und keinen mit "no align",

Stefan

Re: longtable caption Fehler "no align"

Verfasst: Di 19. Mär 2024, 12:23
von basti-fantasti-48
ich kann nur mein Beispiel das nicht geht hier reinposten

Re: longtable caption Fehler "no align"

Verfasst: Mi 20. Mär 2024, 09:24
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