Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I want to renew the section command so each section will follow by a fully two columns tabular. it seems that it should be like:

\renewcommand{\section}[1]
{ 
\hfill\newline {#1}:\newline 
\begin{tabular}{ll}
}

the problem is \end{tabular} which I don't know where should I put it without need of something like endsection.

any idea?

share|improve this question

migrated from stackoverflow.com Mar 28 '11 at 18:55

This question came from our site for professional and enthusiast programmers.

3  
This seems like a very odd thing to do. What effect are you trying to achieve? Maybe there's another way to do what you want. –  Alan Munn Mar 28 '11 at 19:05
    
I need all the sections to have two columns! that's all. –  MBZ Mar 30 '11 at 10:46
    
So what you want is a two column document, but with section headings that span both columns? –  Alan Munn Mar 30 '11 at 11:07

1 Answer 1

up vote 3 down vote accepted

If you want two columns in your document you should use the twocolumn class option. If you only want two-column style in your section (which is kind of funny) it would be better to use the multicol package and its {multicols}{<number>} environment instead of tabular. I would then still avoid redefining \section and simply adding this environments by hand.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.