Graphics, Figures & TablesTable Caption rename Longtable

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
Philometor
Posts: 1
Joined: Thu Dec 09, 2021 10:54 pm

Table Caption rename Longtable

Post by Philometor »

Hey Guys,

as I´m quite new to the whole Latex story, I have a lot of different questions, but until now i was quite successful in writing my PhD thesis. :lol:

Now I encountered a small but significant problem in my tables...Long story short, I do have two different names for my tables:
1. Tables in the Text Part are named "Text-table"
2. Tables in the Appendix are named "Table"

I do use the \usepackage{ltablex} enviroment, because I have Text-tables longer than 1 page. I renamed the text tables using the command: \captionsetup[table]{name=Text-table}

This is working quite well, unfortunately in the longtable enviroment, only the table on the first page is named correctly "Text-table X-X: Blablabla". On the Second page the table is names incorrectly "Table X-X - continued".

Hopefully, some guys know how i can fix this? :?:


Here is the Header (I copied it from somewere and adapted it somehow :D):

Code: Select all

\begin{tabularx}{\linewidth}%
{% col 1; auto-sized ragged right
>{\setlength{\hsize}{.9\hsize}\raggedright\arraybackslash}X%
% col 2; default centered
>{\setlength{\hsize}{.9\hsize}\raggedright\arraybackslash}X%
% col 3; auto-sized ragged left
>{\setlength{\hsize}{1.0\hsize}\raggedleft\arraybackslash}X%
}

\caption[Devices]{Used devices}\label{tab:Geräte}\\
\toprule
\textbf{Device} & \textbf{Model} & \textbf{Manufacturer} \\
\midrule
\endfirsthead

\multicolumn{3}{c}%
{{\bfseries \tablename\ \thetable{} -- continued}} \\
\toprule \multicolumn{1}{l}{\textbf{Device}} &
\multicolumn{1}{l}{\textbf{Model}} &
\multicolumn{1}{l}{\textbf{Manufacturer}} \\ \bottomrule
\endhead


\toprule \multicolumn{3}{r}{{continued on following page}} \\ \toprule
\endfoot

\toprule \toprule
\endlastfoot

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Post Reply