It is possible to manually redefine the \section
(and \section*
, assuming that this even makes sense) command to allow for this. For the moment
\section{<sec title>}
produces <chapnum> \quad <sec title> \quad <secnum>
; and
\section*{<sec title>}
produces <chapnum> \quad <sec title>
.
The former produces the usual entry in the table of contents since the manual redefinition of \section{...}
does not include a redefinition of \thesection
. Also, references made to sections will be referenced as <chapnum>.<secnum>
(or, more specifically, \thechapter.\arabic{section}
) by default. However, this behaviour as well as that of the sectioning command, can be changed if needed.
The basic redefinition was taken from Vincent Zoonekynd's LaTeX page on sections. Here's a minimal example:
\documentclass{memoir}
\usepackage[margin=15mm]{geometry}% Page layout
\usepackage{lipsum}% Dummy text
% Taken from http://zoonek.free.fr/LaTeX/LaTeX_samples_section/0.html
\makeatletter
\def\section{\@ifstar\unnumberedsection\numberedsection}
\def\numberedsection{\@ifnextchar[%]
\numberedsectionwithtwoarguments\numberedsectionwithoneargument}
\def\unnumberedsection{\@ifnextchar[%]
\unnumberedsectionwithtwoarguments\unnumberedsectionwithoneargument}
\def\numberedsectionwithoneargument#1{\numberedsectionwithtwoarguments[#1]{#1}}
\def\unnumberedsectionwithoneargument#1{\unnumberedsectionwithtwoarguments[#1]{#1}}
\def\numberedsectionwithtwoarguments[#1]#2{%
\ifhmode\par\fi
\removelastskip
\vskip 3ex\goodbreak
\refstepcounter{section}%
\noindent
\begingroup
\leavevmode\Large\bfseries\raggedright
\thechapter\quad
#2
\quad\arabic{section}
\par
\endgroup
\vskip 2ex\nobreak
\addcontentsline{toc}{section}{%
\protect\numberline{\thesection}% ToC entry
#1}%
}
\def\unnumberedsectionwithtwoarguments[#1]#2{%
\ifhmode\par\fi
\removelastskip
\vskip 3ex\goodbreak
% \refstepcounter{section}%
\noindent
\begingroup
\leavevmode\Large\bfseries\raggedright
\leavevmode\Large\bfseries\raggedright
\thechapter\quad
#2
% \quad\arabic{section}
\par
\endgroup
\vskip 2ex\nobreak
\addcontentsline{toc}{section}{%
% \protect\numberline{\thesection}% ToC entry
#1}%
}
\makeatother
\begin{document}
\chapter{First chapter} \lipsum[1]
\section{First section} \lipsum[2]
\section{Second section} \lipsum[3]
\section{Third section} \lipsum[4]
\section{Final section} \lipsum[5]
\end{document}
...and the associated output:
I used the geometry
package merely for layout purposes (so the MWE fits on one page) and the lipsum
package for dummy text.