How to force output to a left (or right) page?












60














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?










share|improve this question





























    60














    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?










    share|improve this question



























      60












      60








      60


      14





      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?










      share|improve this question















      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






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Oct 17 '12 at 13:40









      lockstep

      190k52585719




      190k52585719










      asked Feb 22 '11 at 10:14









      Little Bobby Tables

      5,87794255




      5,87794255






















          3 Answers
          3






          active

          oldest

          votes


















          70














          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.






          share|improve this answer































            16














            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 style empty, as is the default in KOMA-script.) See section 3.13 of the KOMA-script manual for other available commands.


            • With memoir, use cleartoverso to force a break to an even page. See section 18.13 of the memoir manual for other available commands.







            share|improve this answer























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





















            3














            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





            share|improve this answer























              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
              });


              }
              });














              draft saved

              draft discarded


















              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









              70














              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.






              share|improve this answer




























                70














                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.






                share|improve this answer


























                  70












                  70








                  70






                  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.






                  share|improve this answer














                  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.







                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited Oct 15 '11 at 21:11









                  doncherry

                  34.7k23134208




                  34.7k23134208










                  answered Feb 22 '11 at 10:33









                  Martin Scharrer

                  198k45632814




                  198k45632814























                      16














                      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 style empty, as is the default in KOMA-script.) See section 3.13 of the KOMA-script manual for other available commands.


                      • With memoir, use cleartoverso to force a break to an even page. See section 18.13 of the memoir manual for other available commands.







                      share|improve this answer























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


















                      16














                      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 style empty, as is the default in KOMA-script.) See section 3.13 of the KOMA-script manual for other available commands.


                      • With memoir, use cleartoverso to force a break to an even page. See section 18.13 of the memoir manual for other available commands.







                      share|improve this answer























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
















                      16












                      16








                      16






                      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 style empty, as is the default in KOMA-script.) See section 3.13 of the KOMA-script manual for other available commands.


                      • With memoir, use cleartoverso to force a break to an even page. See section 18.13 of the memoir manual for other available commands.







                      share|improve this answer














                      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 style empty, as is the default in KOMA-script.) See section 3.13 of the KOMA-script manual for other available commands.


                      • With memoir, use cleartoverso to force a break to an even page. See section 18.13 of the memoir manual for other available commands.








                      share|improve this answer














                      share|improve this answer



                      share|improve this answer








                      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




















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













                      3














                      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





                      share|improve this answer




























                        3














                        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





                        share|improve this answer


























                          3












                          3








                          3






                          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





                          share|improve this answer














                          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






                          share|improve this answer














                          share|improve this answer



                          share|improve this answer








                          edited 1 hour ago









                          Jopie

                          304312




                          304312










                          answered Apr 18 '17 at 8:54









                          Jorge

                          312




                          312






























                              draft saved

                              draft discarded




















































                              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%2f11707%2fhow-to-force-output-to-a-left-or-right-page%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

                              Accessing regular linux commands in Huawei's Dopra Linux

                              Can't connect RFCOMM socket: Host is down

                              Kernel panic - not syncing: Fatal Exception in Interrupt