TransWikia.com

How to suppress table numbering for 1 table Latex

TeX - LaTeX Asked by es_dutch on August 29, 2021

I want to include a table at the beginning of my document, which is not counted. So, the second table starts with number 1. All the following tables will then continue with number 2, 3 etc.

How can I do that in latex?

documentclass[12pt]{report}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}

documentclass[12pt]{report}

begin{document}

begin{table}[]
    centering
    begin{tabular}{c|c}
         &  
         & 
    end{tabular}
    caption*{Should have no numbering}
end{table}

begin{table}[]
    centering
    begin{tabular}{c|c}
         &  
         & 
    end{tabular}
    caption{Should be table 1}
    label{tab:my_label}
end{table}

end{document}

One Answer

In order for caption* to produce an unnumbered caption, the caption package has to be loaded.

enter image description here

With this setup, there's absolutely no need to fiddle with the table counter.

documentclass[12pt]{report}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage{caption} % <-- this is important

begin{document}
begin{table}[h]caption*{Should have no numbering}end{table}
begin{table}[h]caption{Should be table 1}label{tab:my_label}end{table}
end{document}

Answered by Mico on August 29, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP