I am trying to prevent a table from showing up in the list of tables. I used long table to create the table. This is the first table in my document. I know the \caption*{} command should do the trick but something weird is happening. Although the table doesn't show up in the list of tables but when I insert the next table it has a caption of "Table 2: ****". I want the numbering to start with 1 rather than 2. Can someone help?      \documentclass[12 pt]{article}     \usepackage{fullpage}     \usepackage{amsmath}     \usepackage{float}     \usepackage{longtable}     \usepackage{caption}      \begin{document}      First table is inserted here (longtable).     \begin{longtable}{l l}     \hline         A &amp; A1 \\         B &amp; B1 \\        \hline     \caption*{}\label{TableNomen}     \end{longtable}      \newpage     Second table inserted here.     \begin{table}      \centering     \caption{Influence of X}\label{TableC}     \begin{tabular}{c c c c} \hline      $10^{-5}$ &amp; $80\times40$ &amp; 16 &amp; 10 \\     $10^{-4}$ &amp; $80\times40$ &amp; 21 &amp; 11 \\        \hline     \end{tabular}     \end{table}     \newpage     \listoftables      \end{document}   Page 1    Page 2    List of tables
57236
For reasons both complex and confusing, I would like to caption a longtable without incrementing the table counter in the process.  I want to have two consecutive longtable environments to be captioned with identical table numbers; i.e. one longtable captioned "Table x.y: Data Set (Part A)" and one captioned "Table x.y: Data Set (Part B)", with x.y being identical for both tables.  Apparently however, even \caption*{} command bumps table. I am a bit at a loss here.  Note: I know that the xtab package would enable me to have one long table with switches of headers and captions mid-table. However I got a (different) problem with that package, akin to  but sadly not solved by egreg's answer there; so this question should be considered longtable-only as xtab, supertabular etc. don't float my boat right now. :-(
78548
I am completely noobie in LaTeX. I need to change table name in all captions. But when I write \renewcommand\tablename{newname} at the beginning of document, it doesn't do anything. It's still "Table" My code looks like this:  ... \renewcommand\tablename{new} ... \begin{table}[b] \centering \begin{tabular}{|l|} ... your table ... \end{tabular} \caption{This table shows some data} \end{table} ...   What am I doing wrong?
106974
Why does the caption start with number 2 and how to fix it?  \documentclass{article}  \usepackage{mwe} \usepackage{subcaption}  \begin{document}  \begin{center} \captionsetup{type=figure} \begin{subfigure}{0.4\textwidth} \includegraphics[width=\textwidth]{example-image-a.pdf} \end{subfigure} \begin{subfigure}{0.4\textwidth} \includegraphics[width=\textwidth]{example-image-b.pdf} \end{subfigure} \captionof{figure}{Description} \end{center} \end{document}   Output:   Maybe also see
84337
I kind of would expect tables to be able to "fill to margin", instead of choosing a number and iteratively rebuilding the document until it is the right size.  For example, I want this 2-column table to have the first column as wide as it needs to be, and the 2nd column to "fill to margin":  \begin{tabular}{ l p{5cm} }   Of course, that's not gonna do it (2nd column will be 5cm), is there anyway to "fill to margin"?
88628
I have a problem that I cant solve it alone even I have read several threads here. The goal is to have 2 tables side by side with subcaption (a) and (b). However, I dont know where my mistakes are, because the tables wont appear as I would like to. Here is the code:  [![\documentclass{article} \usepackage{adjustbox} \usepackage{graphicx}  \begin{document}  \begin{table}\[!htb\]     \caption{Global caption} %   \resizebox{10cm}{!}{     \begin{minipage}{.5\textwidth}         \caption{This is a very very very long Caption}         \centering             \begin{tabular}{@{\extracolsep{1pt}}lcccc}                  \\\hline                  \hline \\                 Statistic &amp; \multicolumn{1}{c}{Mean} &amp; \multicolumn{1}{c}{St. Dev.} &amp; \multicolumn{1}{c}{Min} &amp; \multicolumn{1}{c}{Max} \\                  \hline \\                  A &amp; 1.000 &amp; 0.000 &amp; 1     &amp; 1 \\                  B &amp; 0.968 &amp; 0.76  &amp; 0.138 &amp; 1.000 \\                  C &amp; 0.969 &amp; 0.009 &amp; 0.917 &amp; 1.000 \\                  D &amp; 0.966 &amp; 0.070 &amp; 0.495 &amp; 0.83 \\                  \hline \\             \end{tabular}      \end{minipage}%      \begin{minipage}{.5\textwidth}         \centering         \caption{This is a very very very long Caption}         \begin{tabular}{@{\extracolsep{1pt}}lcccc}          \\\hline          \hline \\         Statistic &amp; \multicolumn{1}{c}{Mean} &amp; \multicolumn{1}{c}{St. Dev.} &amp; \multicolumn{1}{c}{Min} &amp; \multicolumn{1}{c}{Max} \\          \hline \\                  A &amp; 1.000 &amp; 0.000 &amp; 1     &amp; 1 \\                  B &amp; 0.968 &amp; 0.76  &amp; 0.138 &amp; 1.000 \\                  C &amp; 0.969 &amp; 0.009 &amp; 0.917 &amp; 1.000 \\                  D &amp; 0.966 &amp; 0.070 &amp; 0.495 &amp; 0.83 \\          \hline \\         \end{tabular}      \end{minipage} %}   \end{table}   \end{document}][1]][1]   Thank you so much for your time. I really appreciate.  Best, Christine
74560
I want the figures and tables to be numbered 1, 2, 3, ... until the end of the document instead of 1.1, 1.2, ... in chapter I, 2.1, 2.2, ... in chapter II and so on.  I know how to convert the "chapter" part of figure/table numbers from Roman to arabic:  \renewcommand \thefigure     {\ifnum \c@chapter&gt;\z@ \@arabic\c@chapter.\fi \@arabic\c@figure} \renewcommand \thetable     {\ifnum \c@chapter&gt;\z@ \@arabic\c@chapter.\fi \@arabic\c@table}   One could modify the above code in order to remove the "chapter" part, but the figure/table counters would still be reset to 0 at the start of new chapters.
84301
Is it possible to use tabularx inside a longtable environment?  If not, is there any way I can get the "X" funcionality of tabularx with the option of long tables ---In order for me to be able to break them in two pages?  Using longtabu is not an option, as stated by @jon :      I would recommend staying away from tabu as the package author is   still fiddling with things and explicitly promised that there would   not be backwards compatibility. See  for the discussion.   UPDATE:  Using the package ltxtable suggested by @Alan Munn (Writeen by @David Carlisle) I have the current Minimal Non-Working Example  Main File:  \documentclass{article}  \usepackage{array} \usepackage{tabularx} \usepackage{longtable} \usepackage{ltxtable}  \begin{document} Hello.  \LTXtable{\textwidth}{VersionOne}  \end{document}     Where the file VersionOne goes:  \begin{longtable}{XX} \caption{A very long table}\\ WHO                 &amp; \hspace{5mm} World Health Organization\\[1mm] GDP                 &amp; \hspace{5mm} Gross Domestic Product\\[1mm] PPP                 &amp; \hspace{5mm} Purchasing Power Parities\\[1mm] \label{tab:LongtableOne} \end{longtable}   When I try to run this code, I get a Emergency Stop and a fatal error.  Am I writing this correctly?
11042
Problem:  Start page numbers from chapter one and also reflect this in the TOC.  Currently the code for TOC is:  \renewcommand{\contentsname}{Table of contents}  \setcounter{secnumdepth}{2} \setcounter{tocdepth}{2} \tableofcontents   I would appreciate if I can be pointed in the right direction. So far I have understood that you can use \chapter* in order not to include a chapter in the TOC.  Questions:  1) How would you force Latex to start numbering from chapter 1 and forward?  2) How can you start page numbering from the first chapter?
117545
Can u please help me in this table. The problem in this table that is not move to the next page in a proper way and kindly mention the size of the figure as well as the place of the figure. \begin{longtable}[c]{@{}|c|c|c|c|c|c|c|c|c|@{}} \caption{Bacteria isolates on different media} \label{tab:my-table}\\ \toprule \textbf{Sr.No} &amp;   \textbf{Reference Code} &amp;   \textbf{Sample Location} &amp;   \textbf{Colony Color} &amp;   \textbf{Colony Morphology} &amp;   \textbf{Pigmentation} &amp;   \textbf{Media} &amp;   \textbf{Predicted Name Of Strain} &amp;   \textbf{Figures} \\* \midrule \endhead % 1 &amp;   EMB(P)1 &amp;   Islamabad &amp;   Green sheen &amp;   Circular &amp;   Green Sheen &amp;   \begin{tabular}[c]{@{}c@{}}Eosin methylene\\    \\ blue agar\end{tabular} &amp;   \textit{\textbf{E.coil}} &amp;    \\* \midrule 2 &amp;   MSA(P)1 &amp;   Islamabad &amp;   Yellow &amp;   Punctiform &amp;   Yellow &amp;   Mannitol salt agar &amp;   \textit{\textbf{\begin{tabular}[c]{@{}c@{}}Staphylococcus\\    \\ Epidermidis\end{tabular}}} &amp;    \\* \midrule 3  &amp; MACC(P)1 &amp; Islamabad &amp; Off white       &amp; Circular  &amp; Off white       &amp; MacConkey agar     &amp; \textit{\textbf{Salmonella}}              &amp;  \\* \midrule 4  &amp; MSA(P)2  &amp; Islamabad &amp; White           &amp; Circular  &amp; White           &amp; Mannitol salt agar &amp; \textit{\textbf{Staphylococcus   aureus}} &amp;  \\* \midrule 5 &amp;   B.A(P)1 &amp;   Islamabad &amp;   White &amp;   Smooth &amp;   White &amp;   \begin{tabular}[c]{@{}c@{}}Blood \\    \\ Agar\end{tabular} &amp;   \textit{\textbf{Pseudomonas   aeruginosa}} &amp;    \\* \midrule 6  &amp; B.A(P)2  &amp; Islamabad &amp; White           &amp; Circular  &amp; White           &amp; Blood agar         &amp; \textit{\textbf{Lactobacilli}}            &amp;  \\* \midrule 7  &amp; MACC(P)2 &amp; Islamabad &amp; Pink            &amp; Circular  &amp; Pink            &amp; MacConkey agar     &amp; \textit{\textbf{Klebsiella}}              &amp;  \\* \midrule 8  &amp; MACC(P)3 &amp; Islamabad &amp; Purple          &amp; Irregular &amp; Purple          &amp; MacConkey agar     &amp; \textit{\textbf{pseudomonas}}             &amp;  \\* \midrule 9  &amp; MSA(P)3  &amp; Islamabad &amp; Crystal White   &amp; spherical &amp; Crystal White   &amp; Mannitol salt agar &amp; \textit{\textbf{Salmonella}}              &amp;  \\* \midrule 10 &amp; B.A(P)3  &amp; Islamabad &amp; White           &amp; Puntiform &amp; White           &amp; Blood agar         &amp; \textit{\textbf{Staphylococcus}}          &amp;  \\* \midrule 11 &amp; MACC(P)4 &amp; Islamabad &amp; Orange to amber &amp; Circular  &amp; Orange to amber &amp; MacConkey agar     &amp; \textit{\textbf{Shigella}}                &amp;  \\* \midrule 12 &amp; MSA(P)4  &amp; Islamabad &amp; Yellow          &amp; Circular  &amp; Yellow          &amp; Mannitol salt agar &amp; \textit{\textbf{S. aureus}}               &amp;  \\* \midrule 13 &amp; MACC(P)5 &amp; Islamabad &amp; Pink to purple  &amp; Circular  &amp; Pink to purple  &amp; MacConkey          &amp; \textit{\textbf{Klebisella}}              &amp;  \\* \bottomrule \end{longtable}
119015
I have a document that uses both the longtable and the array package. At first I ascribed the problem to an interaction of both. After testing, it seems array is the only culprit.  Here's a minimal example.  \documentclass{article} \usepackage{array} \begin{document}  \begin{tabular}{p{0.4\textwidth}&gt;{\raggedright}p{0.4\textwidth}} 1 &amp; a \\ 2 &amp; b \\ 3 &amp; c \\ \end{tabular} \end{document}   It produces the error  ! Extra alignment tab has been changed to \cr.
1618
I have the simple following document:  \documentclass[10pt,a4paper]{report} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{graphicx} \setcounter{secnumdepth}{4} \setcounter{tocdepth}{4} \usepackage{algorithm,algcompatible} \begin{document}     \tableofcontents     \listoffigures     \listoftables     \listofalgorithms  \chapter{Chapter First} This is my chapter first.  \chapter{Chapter Two}    This is my chapter two.  \section{sec 1}  \begin{table}     \centering     \caption{my table}     \label{tab1}     \begin{tabular}{|c|c|}         \hline 1 &amp; 2 \\          \hline 3 &amp; 4 \\          \hline      \end{tabular}  \end{table}  \subsection{subsec 1}  \begin{algorithm}     \caption{(\textit{The EGl-FOM})}     \label{myalg}     \begin{algorithmic}[1]         \STATE Choose          \STATE Use the          \STATE Compute $\alpha_m$         \STATE Compute $\lVert R_m\rVert_F=h_{m, m+1}|e_m^T\alpha_m|$.     \end{algorithmic} \end{algorithm}  \subsubsection{subsubsec 1}  \end{document}   I am going to hide chapter, section, subsection and subsubsection titles about chapter two from table of contents. Furthermore, I want to hide tables, figures and algorithms titles about chapter two from list of tables, figures and algorithms. Is there a proper way to do these things?
7598
I'm posting today because I would like to reduce white space in a document I'm writing. The content is two-columns but I have floating tables that span across both columns (table*).   At some point, the text ends in the beginning of the first column of a new page. I would like to include my table on this page since it has a lot of free space below the text, but when I insert the table* right after the text, it goes to the top of the next page instead:    Do you know a way of obtaining the desired behavior?  Minimal working example :  \documentclass{article} \usepackage{lipsum}  \begin{document} \twocolumn  \paragraph{} \lipsum[1]  \begin{table*} \centering \begin{tabular}{|c|c|c|c|} \hline Column 1 &amp; Column 2 &amp; Column 3 &amp; Column 4 \\ \hline Column 1 &amp; Column 2 &amp; Column 3 &amp; Column 4 \\ \hline \end{tabular} \end{table*}%   \end{document}
114854
I have an issue making a long list with wrapped text. The table can be several page long. I use longtable and assign the width for each column but as soon as I put it in the \begin{table} \end{table}, it does not work. It clips the table. I want to make a label for the table so I put it in the table environment.  And is there a way to automatically adjust the width so that I don't need to assign the value manually?  Thank you.   Tung  \begin{table} \centering \begin{longtable}{|p{6.5cm}|p{2.5cm}|p{2.5cm}|p{2.5cm}|} \hline Name                                      &amp; Company     &amp;  Catalog Number   &amp;   Comments    \\ \hline Small DNA FRAG Extract Kit-100PR          &amp; VWR         &amp;   97060-558 &amp; \\ \hline Acrylamide 40\% solution 500 mL           &amp; VWR         &amp;   97064-522 &amp;  \\ \hline Bis-acrylamide 2\% (w/v) solution 500 mL  &amp; VWR         &amp;   97063-948 &amp;  \\ \hline GeneRuler 100 bp DNA Ladder, 100-1,000 bp &amp; Fermentas   &amp;   SM0241  &amp;    \\ \hline Mini Vertical PAGE System                 &amp; VWR         &amp;   89032-300  &amp;  \\ \hline \end{longtable} \label{tab:list} \end{table}
31838
I am using \tableofcontents to create TOC in my document. however it is appearing as shown in the image. As the numbers increase the gap between the number and text is reducing.   Thanks for your help Aku
65871
The 'longtable' documentation says to use   \caption{Your caption here}   for captions, but I can't see where to specify the 'longtable' options in the example where pgfplotstabletypeset and longtable is used together.  MWE: You'll see currently the Table 1 text is just included, but that would mean it would be excluded from ToC and index of tables.  \documentclass{article}   % MWE from http://tex.stackexchange.com/questions/40411/import-files-with-pgfplotstable-and-split-tables-across-multiple-pages \usepackage{pgfplotstable} \usepackage{longtable} \usepackage{booktabs} \usepackage{array} \usepackage[a4paper,top=4in,bottom=4in,right=1in,left=1in]{geometry} %%% change the margins in your file suitably. \usepackage{filecontents}  \usepackage{pgfplotstable}  \usepackage{booktabs}  \usepackage{filecontents} \usepackage{longtable}  \begin{document} \begin{filecontents}{testdata.dat} Idx  Nam Dim Grd 1   Ady 53  F 2   Bar 72  C 3   Cor 83  B 4   Dar 58  D 5   Esa 68  C 6   Foo 67  C 7   Gar 74  C 8   Hur 65  D 9   Jaz 85  B 10  Ker 91  A 1   Ady 53  F 2   Bar 72  C 3   Cor 83  B \end{filecontents}  {\large Table 1}  \pgfplotstableset{ begin table=\begin{longtable}, end table=\end{longtable}, }  \pgfplotstabletypeset[col sep=space, header=true,     columns={Idx,Nam,Dim,Grd},      % display specified columns columns/Idx/.style={fixed,fixed zerofill,precision=0,column type=r}, columns/Nam/.style={column type=l,string type}, columns/Dim/.style={fixed,fixed zerofill,precision=1,column type=r}, columns/Grd/.style={column type=l,string type}, % requires booktabs to place horiz rules every head row/.style={before row=\toprule, after row=\midrule\endhead},  every last row/.style={after row=\bottomrule} ]{testdata.dat}  \end{document}   Would I put it in the \pgfplotstableset or \pgfplotstabletypeset sections, and with what syntax?
83073
The below example presents two tables with an tabularx environment (taken from package ltablex) and a caption. After each tabularx-table, the table counter skips one, as if both the caption and the tabularx environment increase it, while the latter shouldn't.  \documentclass{report} \usepackage{ltablex} \begin{document}  \begin{table} \caption{Caption 1.} % "Table 1" \begin{tabularx}{\linewidth}{|c|} empty table \end{tabularx} \end{table}  \begin{table} \caption{Caption 2.} % "Table 3" \begin{tabularx}{\linewidth}{|c|} empty table \end{tabularx} \end{table}  \end{document}   My reputation doesn't allow me to upload a picture, but the captions are Table 1 and Table 3 respectively.
21865
I am working in statsoc.cls (you can find it ). Here I show you a working file for the problem I am facing in my paper.  I have a table which has a long-ish caption (2-3 lines). Every time I compile my .tex file, the table moves a little to the right of the page. I think it is because the captions stop wrapping at some point.   \documentclass{statsoc}  %%%% Packages to be used \usepackage[a4paper]{geometry} \usepackage{amssymb, amsmath}  \usepackage{graphicx} \usepackage[caption = false]{subfig}  \usepackage{enumerate} \usepackage{comment} \usepackage{natbib, float}  \title{``Table keeps moving every time I compile''} \begin{document}  \maketitle  \begin{table}   \caption{Table moves a little everytime I compile. I think this is because I have a long caption, but I cannot figure out how to resolve this problem. As you can see I am using statsoc.cls. I can reset the table if I delete the .aux file and recompile}   \fbox{%     \begin{tabular}{c c c c c c c c c c c c c c c c c c}     \hline     1 &amp; 2 &amp; 3 &amp; 4 &amp; 5 &amp; 2 &amp; 3 &amp; 4 &amp; 5 &amp; 1 &amp; 2 &amp; 3 &amp; 4 &amp; 5 &amp; 2 &amp; 3 &amp; 4 &amp; 5\\     1 &amp; 2 &amp; 3 &amp; 4 &amp; 5 &amp; 2 &amp; 3 &amp; 4 &amp; 5 &amp; 1 &amp; 2 &amp; 3 &amp; 4 &amp; 5 &amp; 2 &amp; 3 &amp; 4 &amp; 5\\     1 &amp; 2 &amp; 3 &amp; 4 &amp; 5 &amp; 2 &amp; 3 &amp; 4 &amp; 5&amp; 1 &amp; 2 &amp; 3 &amp; 4 &amp; 5 &amp; 2 &amp; 3 &amp; 4 &amp; 5\\     \hline     \end{tabular}} \end{table} \end{document}   When I delete the .aux file and re-compile, it starts off as this:    Then after one compilation becomes    Then after many more     As I recompile, I make no changes inside the table environment, and work outside it. I believe  question is exactly the same as mine, but the question got closed.   I am not sure if you need more information here. Let me know if you do.   There is an overleaf user who writes      Note that if your document contains other LaTeX errors, the tables   will not be processed correctly. Therefore if you're getting an error   message about Missing number and \statsocwidth@b etc, comment out your   tables and correct other errors in your code first. Then uncomment   your table code, and hit "recompile from scratch" at the bottom of the   error/warning message window.   So apparently, every time there is an error, the tables go haywire, and you need to get rid of the aux file.