Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Editing table label using latex

    Hello,

    I am struggling to correctly output a table label using latex. The problem is that each of my new tables keep getting labeled "Table 1:...", when I would like them to be Table 2, 3 and so on. I have tried placing the label above or below the caption but nothing seems to change. What am I doing wrong? Thank you for your help!

    My stata code is as follows:


    esttab * using wages1.tex, replace se ar2 title(Women's Income\label{tab2}) label replace

    This is what I see in the latex:

    \begin{table}[htbp]\centering
    \def\sym#1{\ifmmode^{#1}\else\(^{#1}\)\fi}
    \caption{Women's Income\label{tab2}}
    \begin{tabular}{l*{5}{c}}

  • #2
    The \label command will not change the table number. The table number will be incremented if all the tables appear together in one LaTeX document.

    What is the nature of the LaTeX document in which you are placing these tables?

    If they're all in one document, then there is some misconfiguration that we cannot diagnose without seeing the document.

    If you are placing each table in a separate document, then it's expected that each table is "Table 1". You can change the table number by commanding e.g. \setcounter{table}{7} before inserting the table. (Change the digit to one less than the desired table number.)

    Comment

    Working...
    X