Set different margins with twoside in LaTeX












0














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).




  1. Is there any way where I can force the new margins on the entire content of the second page?


  2. 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.



Page 1Page 2Page 3









share









New contributor




It's me again is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • 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 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










  • @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
















0














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).




  1. Is there any way where I can force the new margins on the entire content of the second page?


  2. 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.



Page 1Page 2Page 3









share









New contributor




It's me again is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • 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 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










  • @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














0












0








0







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).




  1. Is there any way where I can force the new margins on the entire content of the second page?


  2. 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.



Page 1Page 2Page 3









share









New contributor




It's me again is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











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).




  1. Is there any way where I can force the new margins on the entire content of the second page?


  2. 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.



Page 1Page 2Page 3







tikz-pgf margins





share









New contributor




It's me again is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.










share









New contributor




It's me again is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.








share



share








edited 7 mins ago









Christian Hupfer

147k14192384




147k14192384






New contributor




It's me again is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 9 mins ago









It's me again

1




1




New contributor




It's me again is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





It's me again is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






It's me again is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












  • 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 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










  • @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






  • 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 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










  • @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















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.










draft saved

draft discarded


















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.










draft saved

draft discarded


















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.




draft saved


draft discarded














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





















































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







Popular posts from this blog

サソリ

広島県道265号伴広島線

Setup Asymptote in Texstudio