TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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? – TriSSSe Jun 13 '12 at 17:47

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:




share|improve this answer

Your Answer


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.