TeX - LaTeX Asked by Nez on November 26, 2020
I’m new to LaTeX and I’m having some troubles getting the correct reference to tables in the Appendix. I have used the label
after caption
and it still doesn’t work. But when I remove appendix
, the table gets the correct label (instead of the section number). The output of ref{}
is "A.8 lists…" whereas it should be "Appendix A lists…".
Here’s my minimal example:
documentclass[review]{elsarticle}
UseRawInputEncoding
usepackage{lineno, hyperref}
modulolinenumbers[5]
usepackage{array}
usepackage{lscape}
usepackage{multirow}
usepackage{graphicx}
usepackage{rotating}
usepackage{makecell}
usepackage{longtable, booktabs, tabularx}
usepackage[margin=25mm]{geometry}
usepackage{graphicx}
usepackage{ltablex}
usepackage{amsmath}
usepackage[tableposition=t]{caption}
newcolumntype{L}{>{raggedrightarraybackslash}X}
usepackage{comment}
clearpage
%Appendix
appendix
section{Selected primary studies in the review.}
%% Table 11
{footnotesizesffamily
setlengthtabcolsep{2pt}
centering
begin{tabularx}{textwidth}{>{hsize=0.2hsize}L
>{hsize=1.9hsize}L
>{hsize=1.2hsize}L
>{hsize=1.5hsize}L
>{hsize=0.2hsize}L}
caption{Selected primary studies in the review.}
label{tab:studieslist}
toprule
textbf{ID} & textbf{Title} & textbf{Author(s)} & textbf{Venue} & textbf{Year}
midrule
endfirsthead
toprule
textbf{ID} & textbf{Title} & textbf{Author(s)} & textbf{Venue} & textbf{Year}
midrule
endhead
bottomrule
endfoot
P1 & Computer security & G. Post & Information and Software Technology & 2003
addlinespace
And I refer to this table like this:
ref{tab:studieslist} lists the...
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP