1

For a small organization (club) I want to write a "constitution" in a certain format. I tried using just custom sections and subsections, which looks how I want it:

\titleformat{\section}{\centering\normalfont\large\bfseries}{\S\thesection}{1em}{}
\titleformat{\subsection}{\normalfont\normalsize}{\S\thesubsection}{1em}{}    

\section{A topic}
  \subsection{This is a rule}
  \subsection{Another rule}
\section{A different topic}
  \subsection{Yet another rule}

A statisfactory result

But I think this might be the wrong way to do it, and I've already encountered some formatting problems. Latex doesn't know how to divide the text properly, and when I reach the end of the page, the text just sort of continues out of the bottom of the page. I first tried to fix this, but reasoned that there must exist a better way of doing this.

So does anyone know how I can replicate this format but in a better and more proper LaTeX way?

4
  • 1
    Perhaps this question and answer could be of help: tex.stackexchange.com/questions/582666/… Commented Feb 13, 2021 at 2:44
  • @StevenB.Segletes I don't see how that is applicable though, I've already customized the section titles as they have done in that answer. What I need is a better way to make the list in each section. Do you mean that I should use a theorem for each list item?
    – Erik
    Commented Feb 13, 2021 at 11:36
  • Then perhaps I just don't understand exactly what the issue is. I had thought the issue was with the use of \S in sectioning titles and, as the referenced questions shows, how that can otherwise introduce problems with \ref. If I am misunderstanding, I could delete my comment and perhaps you could edit your question to clarify more specifically what the problem is. Commented Feb 13, 2021 at 13:29
  • 1
    Okay, I tried to make the problem more clear. But I think Wilson's answer is really what I was looking for.
    – Erik
    Commented Feb 14, 2021 at 14:52

1 Answer 1

2

How about using a (modified) enumerate list environment?

% itemizeprob.tex  SE 583180
\documentclass{article}
\usepackage{titlesec}

\titleformat{\section}{\centering\normalfont\large\bfseries}{\S\thesection}{1em}{}
\titleformat{\subsection}{\normalfont\normalsize}{\S\thesubsection}{1em}{}    

\renewcommand{\labelenumi}{\S\thesection.\theenumi}

\begin{document}

\section{A topic}
\begin{enumerate}
\item This is an enumerated rule.
\item Another rule.
\end{enumerate}

  \subsection{This is a subsection rule}
  \subsection{Another rule}

\section{A different topic}
\begin{enumerate}
\item Yet another enumerated rule.
\end{enumerate}

  \subsection{Yet another subsection rule}

\end{document}

enter image description here

1
  • Thanks! This seems to work well, and also looks more proper code-wise.
    – Erik
    Commented Feb 14, 2021 at 14:55

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .