Text Formatting ⇒ Table in appendix
Table in appendix
I have a table in an appendix. The problem is that this table has become "Table 1" even though it is not the first table in the document. I guess that happens because it is in the appendix. I don't mind that so much but now it is showing up in the "List of Tables" as 1 and not B1 (since it is appendix B).
What can I do to fix this?
Kind Regards
Jannetta
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
- Stefan Kottwitz
- Site Admin
- Posts: 10324
- Joined: Mon Mar 10, 2008 9:44 pm
Table in appendix
perhaps post a

Stefan
Table in appendix
Okay here goes. I hope this is minimal enough. I'm not good with MWEs because everytime I start stripping the document down I loose things or it stops working or it doesn't produce the error and I end up spending hours on the thing. As it is now it reproduces the problem that I have an one or two others that I still want to ask about.
Code: Select all
\documentclass[12pt, a4paper, onecolumn, oneside]{book} % Current\usepackage{setspace}\renewcommand{\baselinestretch}{1.5}\setlength{\parskip}{\medskipamount} \setlength{\parindent}{0em}\usepackage{acro}\usepackage{etoolbox}\usepackage{threeparttable}\usepackage{mwe}\usepackage{float}\usepackage{listings}\usepackage{xcolor}\usepackage[titletoc,page]{appendix}\usepackage[font=small,labelfont=bf]{caption}\usepackage{newclude}\usepackage{multirow}\usepackage{array}\usepackage{amsmath}\usepackage[nonumberlist]{glossaries}\definecolor{mygreen}{rgb}{0,0.6,0}\definecolor{mygray}{rgb}{0.5,0.5,0.5}\definecolor{mymauve}{rgb}{0.58,0,0.82}\usepackage{hyperref}\newcommand*{\bookappendix}[2]{%\setcounter{secnumdepth}{-1}\chapter{#1}\setcounter{secnumdepth}{2}%\setcounter{section}{0}\renewcommand*{\thesection}{{#2}.\arabic{section}}%}\hypersetup{unicode=false, % non-Latin characters in Acrobat’s bookmarkspdftoolbar=true, % show Acrobat’s toolbar?pdfmenubar=true, % show Acrobat’s menu?pdffitwindow=true, % page fit to window when openedpdftitle={Analysis and Modelling of the PY Complex in the Pyloric Circuit of the Crab Stomatogastric Ganglion}, % titlepdfauthor={Jannetta S. Steyn}, % authorpdfsubject={Subject}, % subject of the documentpdfnewwindow=true, % links in new windowpdfkeywords={keywords}, % list of keywordscolorlinks=true, % false: boxed links; true: colored linkslinkcolor=cyan, % color of internal links
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Re: Table in appendix
Re: Table in appendix
- Attachments
-
- mwe.pdf
- (119.71 KiB) Downloaded 389 times
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Table in appendix
Code: Select all
\documentclass{book}\newcommand*{\bookappendix}[2]{%\setcounter{secnumdepth}{-1}\chapter{#1}\setcounter{secnumdepth}{2}%\setcounter{section}{0}\renewcommand*{\thesection}{{#2}.\arabic{section}}%}%\newcommand{\bookappendix}[2]{\chapter{#1}\renewcommand{\thesection}{#2}}\begin{document}\listoftables\chapter{Introduction}\begin{table} \caption{} \end{table}%\appendix\chapter{}\chapter{}\chapter{}\chapter{}\bookappendix{Another appendix}{B}\begin{table} \caption{} \end{table}%\begin{table} \caption{} \end{table}%\begin{table} \caption{} \end{table}%\end{document}
bookappendix
command, is simply slapping LaTeX in the face. What are you trying to achieve?
Table in appendix


To tell you the truth. I have no idea. I probably found that fudge somewhere on the Internet or asked for help on this forum. I think it is to get the page numbering to work correctly. If you look at the pdf that I uploaded, then you can see what I want. Apart from the Acronyms that appeared directly after the List of Tables, the document looks like I want it to. I managed to fix this problem now by moving the \cleardoublepage that used be after :
Code: Select all
\include{abbrevs3}\addcontentsline{toc}{chapter}{Neuropeptide Acronyms}\glsaddall\printglossaries
Now the only problem is still to get a B in front of the 1 in the index entry for appendix B.
I am happy to make the LaTeX syntax more elegant but to tell you the truth I just don't have any more time to struggle to get LaTeX to format the document properly. I feel like I have spent more time on LaTeX than on writing the contents of my thesis and I just don't have the time anymore.
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Table in appendix
What exactly should be numbered with a B, and what is the malicious code block supposed to do? I think we can find a better solution.
Table in appendix
Code: Select all
\documentclass[12pt, a4paper, onecolumn, oneside]{book} % Current\usepackage{setspace}\renewcommand{\baselinestretch}{1.5}\setlength{\parskip}{\medskipamount} \setlength{\parindent}{0em}\usepackage{acro}\usepackage{etoolbox}\usepackage{threeparttable}\usepackage{mwe}\usepackage{float}\usepackage{listings}\usepackage{xcolor}\usepackage[titletoc,page]{appendix}\usepackage[font=small,labelfont=bf]{caption}\usepackage{newclude}\usepackage{multirow}\usepackage{array}\usepackage{amsmath}\usepackage[nonumberlist]{glossaries}\definecolor{mygreen}{rgb}{0,0.6,0}\definecolor{mygray}{rgb}{0.5,0.5,0.5}\definecolor{mymauve}{rgb}{0.58,0,0.82}\usepackage{hyperref}\hypersetup{unicode=false, % non-Latin characters in Acrobat’s bookmarkspdftoolbar=true, % show Acrobat’s toolbar?pdfmenubar=true, % show Acrobat’s menu?pdffitwindow=true, % page fit to window when openedpdftitle={Analysis and Modelling of the PY Complex in the Pyloric Circuit of the Crab Stomatogastric Ganglion}, % titlepdfauthor={Jannetta S. Steyn}, % authorpdfsubject={Subject}, % subject of the documentpdfnewwindow=true, % links in new windowpdfkeywords={keywords}, % list of keywordscolorlinks=true, % false: boxed links; true: colored linkslinkcolor=cyan, % color of internal linkslinkcolor=blue,citecolor=red, % color of links to bibliographyfilecolor=green, % color of file linksurlcolor=blue % color of external links
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Table in appendix
\backmatter
, kick it out.