1

There are several posts on this site about formatting section titles, but I haven't seen one yet shows me how to edit the section title without editing the default spacing. I would like to have something like

\section{May 10}

display

Lecture 16 (May 10)

where 16 is the section number, but keeping the old spacing.

4

Maybe something like this would work, using the titlesec package.

\documentclass{article}
\usepackage[explicit]{titlesec}

\titleformat{\section}%
            {\Large\sffamily\bfseries}% format
            {Lecture \thesection{} (#1)}%
            {0pt}% horizontal sep
            {}% before

\begin{document}
\section{May 10}
Here is the lesson material.
\section{May 11}
Here is the new and latest lesson material.
\end{document}

enter image description here

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.