I've been searching for a while how to do this, but have so far not found a satisfactory solution. For the record, I'm using MiKTeX 2.9 and TeXnicCenter.
I'm writing a report, with the required formatting as follows:
-3 tiers of numbering -chapter,section,paragraph. Each paragraph is numbered (e.g 3.1.2).
-I've been writing the 'bulk' text within \subsection{***} to achieve this, but Latex seems to not deal with pagebreaks if I use this approach.
-I've also been using the titlesec package to set the formatting.
-The following code is the best I can get to my desired formatting. I'm afraid the titlsec settings are cannibalised from an example with little understanding (the gap between end of number and beginning of word is set, where a fixed gap between beginning of number and beginning of word is desired). Technically the thing will be in Verdana, but I've left that out in the interests of package compatibility
Code: Select all
\documentclass[a4paper]{report}
\usepackage{titlesec}
\setlength{\parindent}{0pt}
\setlength{\parskip}{2ex}
\topmargin 0cm
\oddsidemargin 0.7cm
\textwidth 15.5cm
%TITLESEC: HEADING FORMATS
\titleformat{\chapter}
{\bfseries} % formatting
{\llap{
{\thechapter}
\hskip 1cm
}}
{0em}% horizontal sep
{}% before
\titleformat{\section}
{\bfseries} % formatting
{\llap{
{\thesection}
\hskip 0.7cm
}}
{0em}% horizontal sep
{}% before
\titleformat{\subsection}
{} % formatting
{\llap{
{\thesubsection}
\hskip 0.5cm
}}
{0em}% horizontal sep
{}% before
\begin{document}
\chapter{ch1}
\section{sec1}
\subsection{the bulk text here}
\end{document}
-Ideally it would be great be able to write my document like the code below, and achieve the numbering in the document preamble:
Code: Select all
\chapter{ch}
\section{sec1}
here is my text
and some more text
etc
\section{sec2}
My apologies for the long post. Is there a good way to achieve this formatting? Thanks very much for any help!