Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

LaTeX Question (formating section headings)

  1. Aug 21, 2010 #1
    I would like to divide the body of my document in to 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?
     
  2. jcsd
  3. Aug 21, 2010 #2
    I'd recommend using a table instead.
     
  4. Aug 21, 2010 #3
    //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.
     
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook