[Tex/LaTex] Section headers in margins

resumesectioningsections-paragraphs

I'm working on my resume in LyX and I would like my section headers to look like this. What should I write in the preamble to achieve this?

Best Answer

you could use the titlesec package to modify the definition of the \section command. in lyx you can add latex-code manually by going to the document preferences: Document->Settings -> Latex preamble. I marked the part of code you have to put in your document.

\documentclass{article}
\usepackage[showframe]{geometry}

%to lyn preamble from here

\usepackage{titlesec}

\titleformat{\section}[leftmargin]
{\normalfont
\sffamily\bfseries\filleft}
{}{0pt}{}
\titlespacing{\section}
{4pc}{1.5ex plus .1ex minus .2ex}{1pc}

%to here

\begin{document}

\section{Objective}
\noindent
Auditing/Analysis of Operations

\section{Education}
\noindent
B.S. in Management, Rensselaer Polytechnic Institute, Troy, NY, May 1986
Concentrations in Accounting and Management Systems
QPA 3.9 in major, 3.7 overall

\end{document}