1

Is there a way to start the page with a 5.2 subsection:

5.2 Section
 5.2.5 Subsection
 5.2.6 Subsection

Otherwise, i get the 1 section and 0.1 subsection, which i don't need. Is there a package or a trick of some kind?

  • 2
    Welcome to TEX.SX! \setcounter{section}{4}\section{Section}\setcounter{subsection}{1}\subsection{Subsection}\setcounter{subsubsection}{4}\subsubsection{Subsubsection} (assuming that that is subsubsection, but you can change the counter names yourself I think). – TeXnician Jul 1 '17 at 9:14
2

Is there a way to start the page with a 5.2 subsection?

How about

\clearpage % start a new page
\setcounter{section}{5}
\setcounter{subsection{1}
\subsection{Hello World} % increments 'subsection' counter automatically (to "2")
|improve this answer|||||
0

It seems like you would like to arbitrarily set numbering for subsection, here is my solution

\newcommand{\asubsection}[2]{
\setcounter{subsection}{#1}
\addtocounter{subsection}{-1}
\subsection{#2}
}

Then as following, assign any number for your subsection as you wish

\asubsection{3}{The Dirac Field}
\label{TDF}
...
\asection{12}{The Renormalization Group}
... Also read subsection \ref{TDF}.

The output is as following

arbitrary subsection numbering

We could see the cross reference \ref{TDF} and equation numbering are using the correct subsection number.

|improve this answer|||||
  • 1
    Is this fundamentally different to Mico's version about \setcounter? – user31729 Nov 9 '17 at 20:40
  • In this way here, we could set arbitrary to any subsection, not only the first one. While Mico's way sets where to start, the following subsections will increase its numbering without being controlled. – zyy Nov 9 '17 at 20:56
  • Well, the control is the user's decision, which numbers should follow. Also, \eqref is usually not designed to refer to structure levels – user31729 Nov 9 '17 at 21:03
  • What would we use then for referring a section? Thanks! – zyy Nov 9 '17 at 23:02
  • 1
    \eqref is a amsmath invention, but \ref is the cross-referencing macro – user31729 Nov 13 '17 at 15:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.