Text FormattingWhat variable keep current number of subsection and section?

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
artemff
Posts: 113
Joined: Sat Oct 17, 2009 11:15 pm

What variable keep current number of subsection and section?

Post by artemff »

What variable keep current number of subsection and section?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX books
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

What variable keep current number of subsection and section?

Post by gmedina »

The corresponding counters are section and subsection and you can get their value using \the; i.e., \thesection and \thesubsection.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

What variable keep current number of subsection and section?

Post by localghost »

These are the counters with the according name. In case you want to do cross references you will need labels.


Best regards
Thorsten
Post Reply