LaTeX Question (formating section headings)

  • LaTeX
  • Thread starter Metazeno
  • Start date
  • #1
2
0

Main Question or Discussion Point

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?
 

Answers and Replies

  • #2
1,254
3
I'd recommend using a table instead.
 
  • #3
2
0
//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.
 

Related Threads on LaTeX Question (formating section headings)

  • Last Post
Replies
3
Views
5K
Replies
3
Views
1K
Replies
5
Views
3K
  • Last Post
Replies
3
Views
2K
  • Last Post
Replies
2
Views
2K
  • Last Post
Replies
4
Views
4K
  • Last Post
Replies
2
Views
3K
Replies
5
Views
24K
Replies
2
Views
2K
Top