Set different margins with twoside in LaTeX
I am trying to set different margins for the first page of my document. As I am not sure about the content of the first page, the afterpage
command has been used to achieve the required effect. However, I have noticed that the first paragraph on the second page (the red ellipse on top of Page 2) still has the margins of the first page (please check the example below).
- Is there any way where I can force the new margins on the entire content of the second page?
Starting from the second page, is there a way where I can have a grey rectangle (Page 2 and Page 3 currently are drawn by hand only to demonstrate what I am after) covering the entire wide margin of the page (edge-to-edge vertically and edge-to-text on the wide margin horizontally)?
documentclass[11pt,a4paper,twoside]{article}
usepackage{lipsum,afterpage}
usepackage[left=1.5cm, top=1.5cm, right=3cm, bottom=1.5cm, nohead, nofoot]{geometry}
begin{document}
newgeometry{left=7.5cm, top=1cm, right=1cm, bottom=1cm}
afterpage{globaldefs=1 restoregeometry}
lipsumlipsumlipsum
end{document}
Thank you.
tikz-pgf margins
New contributor
|
show 3 more comments
I am trying to set different margins for the first page of my document. As I am not sure about the content of the first page, the afterpage
command has been used to achieve the required effect. However, I have noticed that the first paragraph on the second page (the red ellipse on top of Page 2) still has the margins of the first page (please check the example below).
- Is there any way where I can force the new margins on the entire content of the second page?
Starting from the second page, is there a way where I can have a grey rectangle (Page 2 and Page 3 currently are drawn by hand only to demonstrate what I am after) covering the entire wide margin of the page (edge-to-edge vertically and edge-to-text on the wide margin horizontally)?
documentclass[11pt,a4paper,twoside]{article}
usepackage{lipsum,afterpage}
usepackage[left=1.5cm, top=1.5cm, right=3cm, bottom=1.5cm, nohead, nofoot]{geometry}
begin{document}
newgeometry{left=7.5cm, top=1cm, right=1cm, bottom=1cm}
afterpage{globaldefs=1 restoregeometry}
lipsumlipsumlipsum
end{document}
Thank you.
tikz-pgf margins
New contributor
You are probably looking for clearpage, not afterpage.
– Johannes_B
7 mins ago
1
Personally, i consider using this hocus pocus for the first page of a document completely unneeded.
– Johannes_B
6 mins ago
Welcome to TeX.SE. Please mark up code as such by selecting it, clicking on the{}
- symbol in the editor or pressingCTRL-K
– Christian Hupfer
6 mins ago
@Johannes_B but I do not know the content of the first page beforehand. My understanding is thatclearpage
has a similar effect tonewpage
.
– It's me again
3 mins ago
@ChristianHupfer thank you for your comment. I have tried that but for some reasons the code did not get the correct format :(
– It's me again
2 mins ago
|
show 3 more comments
I am trying to set different margins for the first page of my document. As I am not sure about the content of the first page, the afterpage
command has been used to achieve the required effect. However, I have noticed that the first paragraph on the second page (the red ellipse on top of Page 2) still has the margins of the first page (please check the example below).
- Is there any way where I can force the new margins on the entire content of the second page?
Starting from the second page, is there a way where I can have a grey rectangle (Page 2 and Page 3 currently are drawn by hand only to demonstrate what I am after) covering the entire wide margin of the page (edge-to-edge vertically and edge-to-text on the wide margin horizontally)?
documentclass[11pt,a4paper,twoside]{article}
usepackage{lipsum,afterpage}
usepackage[left=1.5cm, top=1.5cm, right=3cm, bottom=1.5cm, nohead, nofoot]{geometry}
begin{document}
newgeometry{left=7.5cm, top=1cm, right=1cm, bottom=1cm}
afterpage{globaldefs=1 restoregeometry}
lipsumlipsumlipsum
end{document}
Thank you.
tikz-pgf margins
New contributor
I am trying to set different margins for the first page of my document. As I am not sure about the content of the first page, the afterpage
command has been used to achieve the required effect. However, I have noticed that the first paragraph on the second page (the red ellipse on top of Page 2) still has the margins of the first page (please check the example below).
- Is there any way where I can force the new margins on the entire content of the second page?
Starting from the second page, is there a way where I can have a grey rectangle (Page 2 and Page 3 currently are drawn by hand only to demonstrate what I am after) covering the entire wide margin of the page (edge-to-edge vertically and edge-to-text on the wide margin horizontally)?
documentclass[11pt,a4paper,twoside]{article}
usepackage{lipsum,afterpage}
usepackage[left=1.5cm, top=1.5cm, right=3cm, bottom=1.5cm, nohead, nofoot]{geometry}
begin{document}
newgeometry{left=7.5cm, top=1cm, right=1cm, bottom=1cm}
afterpage{globaldefs=1 restoregeometry}
lipsumlipsumlipsum
end{document}
Thank you.
tikz-pgf margins
tikz-pgf margins
New contributor
New contributor
edited 7 mins ago
Christian Hupfer
147k14192384
147k14192384
New contributor
asked 9 mins ago
It's me again
1
1
New contributor
New contributor
You are probably looking for clearpage, not afterpage.
– Johannes_B
7 mins ago
1
Personally, i consider using this hocus pocus for the first page of a document completely unneeded.
– Johannes_B
6 mins ago
Welcome to TeX.SE. Please mark up code as such by selecting it, clicking on the{}
- symbol in the editor or pressingCTRL-K
– Christian Hupfer
6 mins ago
@Johannes_B but I do not know the content of the first page beforehand. My understanding is thatclearpage
has a similar effect tonewpage
.
– It's me again
3 mins ago
@ChristianHupfer thank you for your comment. I have tried that but for some reasons the code did not get the correct format :(
– It's me again
2 mins ago
|
show 3 more comments
You are probably looking for clearpage, not afterpage.
– Johannes_B
7 mins ago
1
Personally, i consider using this hocus pocus for the first page of a document completely unneeded.
– Johannes_B
6 mins ago
Welcome to TeX.SE. Please mark up code as such by selecting it, clicking on the{}
- symbol in the editor or pressingCTRL-K
– Christian Hupfer
6 mins ago
@Johannes_B but I do not know the content of the first page beforehand. My understanding is thatclearpage
has a similar effect tonewpage
.
– It's me again
3 mins ago
@ChristianHupfer thank you for your comment. I have tried that but for some reasons the code did not get the correct format :(
– It's me again
2 mins ago
You are probably looking for clearpage, not afterpage.
– Johannes_B
7 mins ago
You are probably looking for clearpage, not afterpage.
– Johannes_B
7 mins ago
1
1
Personally, i consider using this hocus pocus for the first page of a document completely unneeded.
– Johannes_B
6 mins ago
Personally, i consider using this hocus pocus for the first page of a document completely unneeded.
– Johannes_B
6 mins ago
Welcome to TeX.SE. Please mark up code as such by selecting it, clicking on the
{}
- symbol in the editor or pressing CTRL-K
– Christian Hupfer
6 mins ago
Welcome to TeX.SE. Please mark up code as such by selecting it, clicking on the
{}
- symbol in the editor or pressing CTRL-K
– Christian Hupfer
6 mins ago
@Johannes_B but I do not know the content of the first page beforehand. My understanding is that
clearpage
has a similar effect to newpage
.– It's me again
3 mins ago
@Johannes_B but I do not know the content of the first page beforehand. My understanding is that
clearpage
has a similar effect to newpage
.– It's me again
3 mins ago
@ChristianHupfer thank you for your comment. I have tried that but for some reasons the code did not get the correct format :(
– It's me again
2 mins ago
@ChristianHupfer thank you for your comment. I have tried that but for some reasons the code did not get the correct format :(
– It's me again
2 mins ago
|
show 3 more comments
active
oldest
votes
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
});
}
});
It's me again is a new contributor. Be nice, and check out our Code of Conduct.
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%2f467767%2fset-different-margins-with-twoside-in-latex%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
It's me again is a new contributor. Be nice, and check out our Code of Conduct.
It's me again is a new contributor. Be nice, and check out our Code of Conduct.
It's me again is a new contributor. Be nice, and check out our Code of Conduct.
It's me again is a new contributor. Be nice, and check out our Code of Conduct.
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%2f467767%2fset-different-margins-with-twoside-in-latex%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
You are probably looking for clearpage, not afterpage.
– Johannes_B
7 mins ago
1
Personally, i consider using this hocus pocus for the first page of a document completely unneeded.
– Johannes_B
6 mins ago
Welcome to TeX.SE. Please mark up code as such by selecting it, clicking on the
{}
- symbol in the editor or pressingCTRL-K
– Christian Hupfer
6 mins ago
@Johannes_B but I do not know the content of the first page beforehand. My understanding is that
clearpage
has a similar effect tonewpage
.– It's me again
3 mins ago
@ChristianHupfer thank you for your comment. I have tried that but for some reasons the code did not get the correct format :(
– It's me again
2 mins ago