LaTeX Question (formating section headings)

  • Context: LaTeX 
  • Thread starter Thread starter Metazeno
  • Start date Start date
  • Tags Tags
    Latex Section
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
2 replies · 4K views
Metazeno
Messages
2
Reaction score
0
I would like to divide the body of my document into two columns. In the left column go the section headings and in the right column go the section text.

My attempt is to make a new command:
\newdimen\sectionwidth
\newdimen\resumewidth
\sectionwidth=0.25 \textwidth
\resumewidth=0.75 \textwidth
\newcommand{\ressection}[1]
{
\hbox to 0pt
{
\hss
\vtop to 0pt
{
\leftskip=0pt
\hsize=\sectionwidth
\textwidth=\sectionwidth
\raggedright
\bf
#1
\vss
}
}
\vskip-\baselineskip
}
Unfortunately this puts the section text where it would be normally and the section headings far off to the left outside the document body.

Does anyone know how to fix this?
 
Physics news on Phys.org
I'd recommend using a table instead.
 
//I'd recommend using a table instead.// I've done that for now as a quick fix (making a \newenvironment). But I would like to write my own .cls for this document eventually so it has to be more like the flow of a \newcommand.