3

Is available to use newgeometry command with nopagebreak?

\documentclass{article}
\usepackage[left=5cm,right=5cm,top=2.5cm,bottom=2cm]{geometry}
\usepackage{xcolor}
\usepackage{lipsum}
\begin{document}
\lipsum[1-15]
\newgeometry{left=5cm,right=5cm,top=2.5cm,bottom=2cm}
\textcolor{red}{\lipsum}
\restoregeometry
\end{document}
  • 3
    You cannot use \newgeometry without a page break, but depending on your overall goal, other solutions might be found. What is your overall goal? – Steven B. Segletes Feb 6 '18 at 14:07
  • In my persian project I have to use \reversemarginpar.In some environments my contents go out of paper.for example in two column environments created by adjmulticolumns{2}.I've tried \ifoddpage too but it does'nt work. – Mrt Feb 6 '18 at 14:22
  • 1
    Is it possible to edit your question to provide an additional MWE showing that problem? – Steven B. Segletes Feb 6 '18 at 14:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.