How to force output to a left (or right) page?
I am putting together a document that has several cover pages, both for front and back cover. The bulk of the document is two-sided. Cover pages, however, must be right-side (or left-side, for the back cover) pages.
How can I force the next page to specifically be a right-side-page or a left-side-page?
page-breaking double-sided
add a comment |
I am putting together a document that has several cover pages, both for front and back cover. The bulk of the document is two-sided. Cover pages, however, must be right-side (or left-side, for the back cover) pages.
How can I force the next page to specifically be a right-side-page or a left-side-page?
page-breaking double-sided
add a comment |
I am putting together a document that has several cover pages, both for front and back cover. The bulk of the document is two-sided. Cover pages, however, must be right-side (or left-side, for the back cover) pages.
How can I force the next page to specifically be a right-side-page or a left-side-page?
page-breaking double-sided
I am putting together a document that has several cover pages, both for front and back cover. The bulk of the document is two-sided. Cover pages, however, must be right-side (or left-side, for the back cover) pages.
How can I force the next page to specifically be a right-side-page or a left-side-page?
page-breaking double-sided
page-breaking double-sided
edited Oct 17 '12 at 13:40
lockstep
190k52585719
190k52585719
asked Feb 22 '11 at 10:14
Little Bobby Tables
5,87794255
5,87794255
add a comment |
add a comment |
3 Answers
3
active
oldest
votes
For odd / right-side pages you can use cleardoublepage
in two-sided documents. (In one-sided ones cleardoublepage
is identical to clearpage
)
To force even / left-side pages you would need to define your own macro based on cleardoublepage
, but with reversed logic:
documentclass{book}
newcommand*cleartoleftpage{%
clearpage
ifoddvalue{page}hbox{}newpagefi
}
% Demonstration / Test:
begin{document}
Title on right side
cleardoublepage
other title on right side
cleartoleftpage
on the left side
cleartoleftpage
also on the left side
cleardoublepage
right side again
end{document}
A more complex version which behaves nicely in single-sided documents and also supports two-column mode is:
makeatletter
newcommand*{cleartoleftpage}{%
clearpage
if@twoside
ifoddc@page
hbox{}newpage
if@twocolumn
hbox{}newpage
fi
fi
fi
}
makeatother
This is the definition of cleardoublepage
just with the else
removed to negate the logic, i.e. make it force even pages instead of odd.
add a comment |
As Martin explained, cleardoublepage
is a standard LaTeX command to force a break to an odd (right, recto) page in double-sided documents. The KOMA-script
classes and the memoir
class offer numerous custom commands for page-breaking:
With KOMA-script, use
cleardoubleevenemptypage
to force a break to an even (left, verso) page. (If necessary, this will produce an additional odd page with page styleempty
, as is the default in KOMA-script.) See section 3.13 of theKOMA-script
manual for other available commands.With memoir, use
cleartoverso
to force a break to an even page. See section 18.13 of thememoir
manual for other available commands.
@Martin Scharrer Thanks for the MWE. I need an output that should not add a white-numberd-page in between the forced even/odd pages. Could you help me out in finding this issue. Appreciate your attention. Thanks.
– learner123
May 6 '14 at 11:00
add a comment |
You can modify both cleardoublepage
(as in this answer) and @Martin Scharrer's code to insert, if necessary, an empty page:
makeatletter
defcleardoublepage{clearpageif@twoside
ifoddc@page
elsehbox{}thispagestyle{empty}newpage
if@twocolumnhbox{}newpagefififi}
makeatother
and
makeatletter
newcommand*{cleartoleftpage}{%
clearpage
if@twoside
ifoddc@page
hbox{}thispagestyle{empty}newpage
if@twocolumn
hbox{}newpage
fi
fi
fi
}
makeatother
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f11707%2fhow-to-force-output-to-a-left-or-right-page%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
For odd / right-side pages you can use cleardoublepage
in two-sided documents. (In one-sided ones cleardoublepage
is identical to clearpage
)
To force even / left-side pages you would need to define your own macro based on cleardoublepage
, but with reversed logic:
documentclass{book}
newcommand*cleartoleftpage{%
clearpage
ifoddvalue{page}hbox{}newpagefi
}
% Demonstration / Test:
begin{document}
Title on right side
cleardoublepage
other title on right side
cleartoleftpage
on the left side
cleartoleftpage
also on the left side
cleardoublepage
right side again
end{document}
A more complex version which behaves nicely in single-sided documents and also supports two-column mode is:
makeatletter
newcommand*{cleartoleftpage}{%
clearpage
if@twoside
ifoddc@page
hbox{}newpage
if@twocolumn
hbox{}newpage
fi
fi
fi
}
makeatother
This is the definition of cleardoublepage
just with the else
removed to negate the logic, i.e. make it force even pages instead of odd.
add a comment |
For odd / right-side pages you can use cleardoublepage
in two-sided documents. (In one-sided ones cleardoublepage
is identical to clearpage
)
To force even / left-side pages you would need to define your own macro based on cleardoublepage
, but with reversed logic:
documentclass{book}
newcommand*cleartoleftpage{%
clearpage
ifoddvalue{page}hbox{}newpagefi
}
% Demonstration / Test:
begin{document}
Title on right side
cleardoublepage
other title on right side
cleartoleftpage
on the left side
cleartoleftpage
also on the left side
cleardoublepage
right side again
end{document}
A more complex version which behaves nicely in single-sided documents and also supports two-column mode is:
makeatletter
newcommand*{cleartoleftpage}{%
clearpage
if@twoside
ifoddc@page
hbox{}newpage
if@twocolumn
hbox{}newpage
fi
fi
fi
}
makeatother
This is the definition of cleardoublepage
just with the else
removed to negate the logic, i.e. make it force even pages instead of odd.
add a comment |
For odd / right-side pages you can use cleardoublepage
in two-sided documents. (In one-sided ones cleardoublepage
is identical to clearpage
)
To force even / left-side pages you would need to define your own macro based on cleardoublepage
, but with reversed logic:
documentclass{book}
newcommand*cleartoleftpage{%
clearpage
ifoddvalue{page}hbox{}newpagefi
}
% Demonstration / Test:
begin{document}
Title on right side
cleardoublepage
other title on right side
cleartoleftpage
on the left side
cleartoleftpage
also on the left side
cleardoublepage
right side again
end{document}
A more complex version which behaves nicely in single-sided documents and also supports two-column mode is:
makeatletter
newcommand*{cleartoleftpage}{%
clearpage
if@twoside
ifoddc@page
hbox{}newpage
if@twocolumn
hbox{}newpage
fi
fi
fi
}
makeatother
This is the definition of cleardoublepage
just with the else
removed to negate the logic, i.e. make it force even pages instead of odd.
For odd / right-side pages you can use cleardoublepage
in two-sided documents. (In one-sided ones cleardoublepage
is identical to clearpage
)
To force even / left-side pages you would need to define your own macro based on cleardoublepage
, but with reversed logic:
documentclass{book}
newcommand*cleartoleftpage{%
clearpage
ifoddvalue{page}hbox{}newpagefi
}
% Demonstration / Test:
begin{document}
Title on right side
cleardoublepage
other title on right side
cleartoleftpage
on the left side
cleartoleftpage
also on the left side
cleardoublepage
right side again
end{document}
A more complex version which behaves nicely in single-sided documents and also supports two-column mode is:
makeatletter
newcommand*{cleartoleftpage}{%
clearpage
if@twoside
ifoddc@page
hbox{}newpage
if@twocolumn
hbox{}newpage
fi
fi
fi
}
makeatother
This is the definition of cleardoublepage
just with the else
removed to negate the logic, i.e. make it force even pages instead of odd.
edited Oct 15 '11 at 21:11
doncherry
34.7k23134208
34.7k23134208
answered Feb 22 '11 at 10:33
Martin Scharrer♦
198k45632814
198k45632814
add a comment |
add a comment |
As Martin explained, cleardoublepage
is a standard LaTeX command to force a break to an odd (right, recto) page in double-sided documents. The KOMA-script
classes and the memoir
class offer numerous custom commands for page-breaking:
With KOMA-script, use
cleardoubleevenemptypage
to force a break to an even (left, verso) page. (If necessary, this will produce an additional odd page with page styleempty
, as is the default in KOMA-script.) See section 3.13 of theKOMA-script
manual for other available commands.With memoir, use
cleartoverso
to force a break to an even page. See section 18.13 of thememoir
manual for other available commands.
@Martin Scharrer Thanks for the MWE. I need an output that should not add a white-numberd-page in between the forced even/odd pages. Could you help me out in finding this issue. Appreciate your attention. Thanks.
– learner123
May 6 '14 at 11:00
add a comment |
As Martin explained, cleardoublepage
is a standard LaTeX command to force a break to an odd (right, recto) page in double-sided documents. The KOMA-script
classes and the memoir
class offer numerous custom commands for page-breaking:
With KOMA-script, use
cleardoubleevenemptypage
to force a break to an even (left, verso) page. (If necessary, this will produce an additional odd page with page styleempty
, as is the default in KOMA-script.) See section 3.13 of theKOMA-script
manual for other available commands.With memoir, use
cleartoverso
to force a break to an even page. See section 18.13 of thememoir
manual for other available commands.
@Martin Scharrer Thanks for the MWE. I need an output that should not add a white-numberd-page in between the forced even/odd pages. Could you help me out in finding this issue. Appreciate your attention. Thanks.
– learner123
May 6 '14 at 11:00
add a comment |
As Martin explained, cleardoublepage
is a standard LaTeX command to force a break to an odd (right, recto) page in double-sided documents. The KOMA-script
classes and the memoir
class offer numerous custom commands for page-breaking:
With KOMA-script, use
cleardoubleevenemptypage
to force a break to an even (left, verso) page. (If necessary, this will produce an additional odd page with page styleempty
, as is the default in KOMA-script.) See section 3.13 of theKOMA-script
manual for other available commands.With memoir, use
cleartoverso
to force a break to an even page. See section 18.13 of thememoir
manual for other available commands.
As Martin explained, cleardoublepage
is a standard LaTeX command to force a break to an odd (right, recto) page in double-sided documents. The KOMA-script
classes and the memoir
class offer numerous custom commands for page-breaking:
With KOMA-script, use
cleardoubleevenemptypage
to force a break to an even (left, verso) page. (If necessary, this will produce an additional odd page with page styleempty
, as is the default in KOMA-script.) See section 3.13 of theKOMA-script
manual for other available commands.With memoir, use
cleartoverso
to force a break to an even page. See section 18.13 of thememoir
manual for other available commands.
edited Oct 17 '12 at 13:48
answered Feb 22 '11 at 14:47
lockstep
190k52585719
190k52585719
@Martin Scharrer Thanks for the MWE. I need an output that should not add a white-numberd-page in between the forced even/odd pages. Could you help me out in finding this issue. Appreciate your attention. Thanks.
– learner123
May 6 '14 at 11:00
add a comment |
@Martin Scharrer Thanks for the MWE. I need an output that should not add a white-numberd-page in between the forced even/odd pages. Could you help me out in finding this issue. Appreciate your attention. Thanks.
– learner123
May 6 '14 at 11:00
@Martin Scharrer Thanks for the MWE. I need an output that should not add a white-numberd-page in between the forced even/odd pages. Could you help me out in finding this issue. Appreciate your attention. Thanks.
– learner123
May 6 '14 at 11:00
@Martin Scharrer Thanks for the MWE. I need an output that should not add a white-numberd-page in between the forced even/odd pages. Could you help me out in finding this issue. Appreciate your attention. Thanks.
– learner123
May 6 '14 at 11:00
add a comment |
You can modify both cleardoublepage
(as in this answer) and @Martin Scharrer's code to insert, if necessary, an empty page:
makeatletter
defcleardoublepage{clearpageif@twoside
ifoddc@page
elsehbox{}thispagestyle{empty}newpage
if@twocolumnhbox{}newpagefififi}
makeatother
and
makeatletter
newcommand*{cleartoleftpage}{%
clearpage
if@twoside
ifoddc@page
hbox{}thispagestyle{empty}newpage
if@twocolumn
hbox{}newpage
fi
fi
fi
}
makeatother
add a comment |
You can modify both cleardoublepage
(as in this answer) and @Martin Scharrer's code to insert, if necessary, an empty page:
makeatletter
defcleardoublepage{clearpageif@twoside
ifoddc@page
elsehbox{}thispagestyle{empty}newpage
if@twocolumnhbox{}newpagefififi}
makeatother
and
makeatletter
newcommand*{cleartoleftpage}{%
clearpage
if@twoside
ifoddc@page
hbox{}thispagestyle{empty}newpage
if@twocolumn
hbox{}newpage
fi
fi
fi
}
makeatother
add a comment |
You can modify both cleardoublepage
(as in this answer) and @Martin Scharrer's code to insert, if necessary, an empty page:
makeatletter
defcleardoublepage{clearpageif@twoside
ifoddc@page
elsehbox{}thispagestyle{empty}newpage
if@twocolumnhbox{}newpagefififi}
makeatother
and
makeatletter
newcommand*{cleartoleftpage}{%
clearpage
if@twoside
ifoddc@page
hbox{}thispagestyle{empty}newpage
if@twocolumn
hbox{}newpage
fi
fi
fi
}
makeatother
You can modify both cleardoublepage
(as in this answer) and @Martin Scharrer's code to insert, if necessary, an empty page:
makeatletter
defcleardoublepage{clearpageif@twoside
ifoddc@page
elsehbox{}thispagestyle{empty}newpage
if@twocolumnhbox{}newpagefififi}
makeatother
and
makeatletter
newcommand*{cleartoleftpage}{%
clearpage
if@twoside
ifoddc@page
hbox{}thispagestyle{empty}newpage
if@twocolumn
hbox{}newpage
fi
fi
fi
}
makeatother
edited 1 hour ago
Jopie
304312
304312
answered Apr 18 '17 at 8:54
Jorge
312
312
add a comment |
add a comment |
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f11707%2fhow-to-force-output-to-a-left-or-right-page%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown