Document ClassesDocumentclass: change from oneside mode to twoside

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
sergiotv
Posts: 1
Joined: Wed Jan 31, 2007 4:28 pm

Documentclass: change from oneside mode to twoside

Post by sergiotv »

Hi! :D

I'm writing a report in LaTex (MiKTeX distribution) and I need to change from oneside mode to twoside mode at middle of the document.
I started the document, for example, with
\documentclass[12pt,a4paper,oneside]{report}
and in some section I need to start use the mode "twoside".
Do you known some package to do this?

Thanks!

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
GandalfTheWhite
Posts: 1
Joined: Tue Mar 06, 2007 7:16 pm

Documentclass: change from oneside mode to twoside

Post by GandalfTheWhite »

Hi,

thats very easy (but i have searchead myself for a few hours...wanted to use it for my diplomarbeit)

Code: Select all

Code, edit and compile here:
\documentclass[12pt, headsepline, a4paper, fleqn, oneside] {scrreprt} % (for example)
\begin{document}
% then the first part would be "oneside"
..
..
\setboolean{@twoside}{true}
% now you will have the "twoside" Layout!
..
..
\setboolean{@twoside}{false}
% back to normal
\end{document}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
i hope i could help

Gandi
Last edited by GandalfTheWhite on Tue Mar 06, 2007 7:22 pm, edited 1 time in total.
pfjorgeo
Posts: 6
Joined: Fri Mar 30, 2007 11:28 pm

Re: Documentclass: change from oneside mode to twoside

Post by pfjorgeo »

Hi. I guess it's a little late for an answer, but here it is in case you still need it.

All you need is to use the MULTICOL package:

\usepackage{multicol}

and, when you need to change from 1 column to ### columns you write:

\begin{multicols}{###}
...
\end{multicols}

where ### is the number of columns (wasn't it clear above?) and ... is the text you need to put in ### columns. Notice that after "\end{multicols}" you get back to the one column standard layout of LaTeX. Just one more thing, you don't need to invoque the "twocolumn" option in the "\documentclass" instruction.

Bye!
vivelafete
Posts: 11
Joined: Fri Nov 27, 2009 12:38 pm

Re: Documentclass: change from oneside mode to twoside

Post by vivelafete »

Thx GandalfTheWhite!

a little supplementation:

for usage of \setboolean you need the package : \usepackage{ifthen}
Post Reply