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 have a simple documentclass with onecolumn title and twocolumn body. When When switching back to twocolumn for the body text, it will goes to the next page instead of continuing under the title:

\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{article2}
\newcommand\@ptsize{}

\DeclareOption{letterpaper}
   {\setlength\paperheight {11in}%
    \setlength\paperwidth  {8.5in}}

\DeclareOption{10pt}{\renewcommand\@ptsize{0}}

\DeclareOption{final}{\setlength\overfullrule{0pt}}
\DeclareOption{onecolumn}{\@twocolumnfalse}
\DeclareOption{twocolumn}{\@twocolumntrue}

\ExecuteOptions{letterpaper,10pt,twocolumn,final}
\ProcessOptions
\input{size1\@ptsize.clo}

\newenvironment{titlex}
    {%
        \onecolumn
    }%
\twocolumn
\endinput

How to switch back to twocolumn by continuing right after the title (in the same page).

UPDATE: My point is how to safely switch from onecolumn to twocolumn and vice versa. An example is putting a long formula in the middle of a two-column text.

share|improve this question
    
Are you allowed to use multicol? It allows for much easier switching between column formats. –  Werner Apr 17 '12 at 5:20
    
@Werner multicol is sometimes very useful, but it is also limiting, for example when playing with figures within text. –  All Apr 17 '12 at 6:10
add comment

1 Answer 1

up vote 3 down vote accepted

\twocolumn allows to put one-column header stuff in an optional argument. So you could try

\twocolumn[header stuff]

Although the \titlepage definition looks strange to me. The whole idea of \titlepage is that it's on a page of its own.

share|improve this answer
    
I understand your point of titlepage, but it is not the issue here. I want to learn how switching from onecolumn to twocolumn works. Imagine we switch to onecolumn again to put a long formula within a twocolumn text. –  All Apr 17 '12 at 6:06
3  
The latter is not possible by using \onecolumn and \twocolumn. You can look at the multicols package or put your formulas in floating figures. –  Stephan Lehmke Apr 17 '12 at 6:12
    
Thanks for clarification! –  All Apr 17 '12 at 6:19
add comment

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.