
В настоящее время я готовлю диссертацию, которая должна быть пронумерована по параграфам. Нижеприведенное отлично подходит для моих целей, типа:
\documentclass[12pt, twoside]{book}
\newcounter{chapcount}[chapter]
\newcounter{parnum}
\newlength{\parnumwidth}
\setlength{\parnumwidth}{4em}
\newcommand{\N}{%
\noindent\refstepcounter{chapcount}%
\makebox[0pt][r]{\makebox[\parnumwidth][l]{\textbf{\arabic{chapter}-
\arabic{chapcount}}}}%
\hspace*{\parindent}\ignorespaces}
\setlength{\parindent}{0em}
\begin{document}
\chapter{Introduction}
\N This is a numbered paragraph.
\N This is another paragraph.
\end{document}
Однако мне интересно, возможно ли разместить нумерацию на левом поле левой страницы и на правом поле правой страницы — довольно распространенная схема для учебников и тому подобного:
решение1
Вы можете использовать \marginpar
тот, в котором эта функция встроена.
\documentclass[12pt, twoside]{book}
\newcounter{chapcount}[chapter]
\renewcommand\thechapcount{\thechapter.\arabic{chapcount}}
\newcommand{\N}{%
\par
\noindent\refstepcounter{chapcount}%
\marginpar[\raggedleft \textbf{\thechapcount}]{\raggedright \textbf{\thechapcount}}}
\setlength{\parindent}{0em}
\begin{document}
\chapter{Introduction}
\N This is a numbered paragraph.
\N This is another paragraph.
\clearpage
\N This is a numbered paragraph.
\N This is another paragraph.
\end{document}