I am new to LaTeX and have searched around for templates and examples, but have not found much. I looked at fancyheaders package but was unable to ascertain whether the setup was possible in a simple and straightforward manner. I searched left side headers, and headers overtop margins and google images produced very few to no results for this style.
Asked
Active
Viewed 52 times
0
1 Answers
1
titlesec allows you to redefine the section commands. You can use \titleformat with the option leftmargin, to move the heading in the, well, left margin:
\documentclass{article}
\usepackage[showframe]{geometry}
\usepackage{blindtext}
\usepackage{titlesec}
\titleformat{\section}[leftmargin]{\normalfont\bfseries}{}{0pt}{}
\titlespacing{\section}{2.5cm}{2.5}{0.5cm}
\titleformat{\subsection}[leftmargin]{\normalfont}{}{0pt}{}
\titlespacing{\subsection}{2.5cm}{2.5}{0.5cm}
\begin{document}
\blinddocument
\end{document}
DG'
- 21,727


titlesec. Anyway, mi suggestion would be to look at comprehensive packages to style books, likememoirorscrbook. BTW, welcome! – Rmano Dec 31 '20 at 09:16\reversemarginparand\marginpar. See for example here to place section as margin notes. But I would first look for alternatives styles, like hitec, even if you want a wide margin to take notes or so, since the margin is never a good place for headers with more than one or two words. – Fran Dec 31 '20 at 10:10