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'm trying to write a document using LaTeX using IEEEtran.cls (two sided by default). In my document, I have a portion of code, which has a big width. It would look nice to switch from the two sided mode to a one side, write the code and switch bag again. How can I do this in LaTeX?

I have tried \setboolean{@twoside}{false} but it doesn't work (no error, it just doesn't do what expected). Using \onecolumn before the code it works, but it begins with a new page.

There is any way to solve this? Btw, I'm using MiKTeX.

share|improve this question
1  
Welcome to TeX.SX! Are you meaning "two column" rather than "two side"? –  egreg Jun 13 '12 at 17:44
    
What do you mean by "code"? An equation? Actual source code? –  Christian Jun 13 '12 at 17:47

1 Answer 1

You can use the figure* or table* environments (the contents will appear in the top of the next page where you write it); those environments can be used to typeset material that span both columns:

\documentclass{IEEEtran}
\usepackage{lipsum}

\begin{document}

\lipsum[2]
\begin{figure*}
\lipsum[1]
\end{figure*}
\lipsum[1-20]

\end{document}
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.