[Tex/LaTex] how to link previous section

cross-referencinghyperreflinkssectioning

I have a document with multiple sections and a clickable TOC.
I belive the TOC to be created by the following command in a package that I use.

\tableofcontents

As I wanted the TOC to be clickable I added

\usepackage{hyperref}

Now, in section 2.3 I want to write

As we saw in section 2.2 ..

where 2.2 is clickable.

In order to refer to section 2.2 should I make a new label or I can use some inner working that made the clickable TOC?

Best Answer

You should use label{...}.

Best practice is to prefix the key with something like sec: or section. and not use the section number as key, but an abbreviated version of the headline or content description.

I guess there is some internal referencing system (1) you could hijack, but I wouldn't recommend it. The internal referencing most probably uses the section numbers as keys.(2) So if you add a section in front or shuffle the sections around otherwise you would have to change the references in order to get them right again. Something which you tried to avoid in the first place.


(1) Recently deleted sections still listed in the TOC are clickable, but the link is dead.
So the target has to be present as anchor to be discovered by the client, and was not saved as coordinates.

(2) Two sections with the same headlines impose no problems.