Latex Label A Section

If you need to insert cross-recommendations to numbered elements in the document, (choose equations, sections and also figures) there are regulates to automate it in LaTeX. This article describes how.

You watching: Latex label a section


Introduction

Below you can check out a basic example of figures cross referenced by their number subtitle numbers:


sectionIntroduction labelintroductionThis is an introductory paragraph with some dummy message. This area will certainly be referenced later on.eginfigurecenteringincludegraphicssibbap.org-logocaptionThis picture will be referenced listed below.labelfig:leafendfigureYou can recommendation images; for circumstances, Figure effig:leaf reflects the extitsibbap.org logo.

*


The command also label is offered to set an identifier after the subtitle, that is later on supplied in the command also ef to collection the reference.

 Open an example in sibbap.org

Referencing sections and chapters

Below an example on exactly how to reference a section


sectionIntroduction labelintroductionThis is an introductory paragraph with some dummy message. This section will be referenced later on.eginfigurecenteringincludegraphicssibbap.org-logocaptionThis picture will be referenced listed below.labelfig:leafendfigureYou deserve to reference images; for circumstances, Figure effig:leaf shows the extitsibbap.org logo.vspace0.5cmsectionMath references labelmathrefsAs discussed in section efintroduction, different elements have the right to be referenced within a paper.

*


Again, the commands label and also ef are provided for recommendations. The label is collection after the section statement, i.e. the label command have to be included after the counter number for the area has actually been produced. This additionally functions on chapters, subsections and also subsubsections. See Sections and also chapters.

 Open an instance in sibbap.org

Referencing equations, figures and also tables

At the development an instance of a picture referenced was displayed, below cross referencing equations is presented.

See more: He Gets Verse: The Beautiful Poetry Of Donald Trump Book Review


sectionMath references labelmathrefsAs mentioned in area efintroduction, various facets have the right to be referenced within a record.subsectionPowers series labelsubsectioneginequation labeleq:1sum_i=0^infty a_i x^iendequationEquation efeq:1 is a typical power series.

*


For better and more flexible examples with labels and references see

 Open an instance in sibbap.org

Referencing the web page of an element

Elements generally are referenced by a number assigned to them, however if you must, you deserve to insert the page wbelow they show up.


sectionMath references labelmathrefsAs stated in section efintroduction, various facets can be referenced within a file.subsectionPowers series labelsubsectioneginequation labeleq:1sum_i=0^infty a_i x^iendequationEquation efeq:1 is a typical power series.vspace0.5cm%BlindtextsectionLast sectionIn subarea efsubsection on web page pagerefeq:1 an example of a power series was presented.

*


The command pageref will insert the page where the facet whose label is supplied appears. In the example above the equation 1. This command have the right to be used with all other numbered aspects stated in this short article.

 Open an instance in sibbap.org

Compiling documents via cross references

On sibbap.org cross referrals work instantly, but for cross references to occupational effectively in your neighborhood LaTeX distribution you need to compile your document twice. There"s also a command that have the right to immediately carry out the project for all the references to job-related. For instance, if your document is saved as main.tex.

latexmk -pdf primary.tex

generates the file primary.pdf through all cross-referrals functioning. To readjust the output format usage -dvi or -ps.

Further reading

For even more information see:


sibbap.org guides

LaTeX Basics

Mathematics

Figures and also tables

References and also Citations

Languages

Document structure

Formatting

Fonts

Presentations

Commands

Field specific

Class files

State-of-the-art TeX/LaTeX