Christian: The label just needs to go after the caption. If you need to insert cross-references to numbered elements in the document, (like equations, sections and figures) there are commands to automate it in LaTeX. In Share LaTeX cross references work immediately, but for cross references to work properly in your local LaTeX distribution you must compile your document twice. Here is a simple example that illustrates the basic structure of a table in LaTeX.
It is always good practise to add a caption to any figure or table. Citations within a caption of a table or figure can produce errors. You will need to use the protect statement. Add the bibliography in the Table of ContentsIn Latex. The caption for a figure appears below the graphic; for a table, above.
There’ll also be a counterpart, a function ref(label), that does the following: Pandoc and HTML: Write Table; LaTeX: Write Table ref. Both the native Org mode tables (see Tables) and tables formatted with the table. You can use the following lines somewhere before the table to assign a caption and a label for cross references, and in the text you can refer to the object with tab:basic-data (see Internal links): +CAPTION: This is the caption for the next table (or link) +NAME: tab:basic-data. I cannot find a way to introduce a label for the table from within the stata code. This means that I have to manually edit the latex table to be able to reference the table from within my latex document.
Floats, Figures And Captions
Captions are titles of Tables, Figures, Equations, Boxes and. I much prefer to write in LaTeX (using TeXShop) and enable cross-references via the hyperref package. Cross-referencing equations, tables, and figures in text depends upon the use of keys, which are defined by the user. The tabular is the de-facto way of presenting tabular data in LaTeX. Labels can be used to mark sections, figures, tables, equations, footnotes, items in enumerate lists etc. LaTeX is context sensitive in doing this: A label defined in a figure environment automatically records the figure counter, not the section counter.