Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 656681
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T22:44:26+00:00 2026-05-13T22:44:26+00:00

How do I encourage/make Latex typeset some portion of text so that it will

  • 0

How do I encourage/make Latex typeset some portion of text so that it will all appear on a consecutive even-page, odd-page pair of pages?

With trial and error, \nopagebreak can be coaxed into doing this, but is there a strategy that Just Works? Something like a samepage environment would be ideal, but one that:

  1. Will force a pagebreak on odd pages if that is needed to get all the text on facing pages;
  2. Allows up to one page break anywhere in the environment body, and fails noisily if that can’t be ensured.
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T22:44:27+00:00Added an answer on May 13, 2026 at 10:44 pm

    You could put together an environment such as

    \newenvironment{twopage}{%
      \begingroup\setbox0\vbox\bgroup
    }{%
      \egroup
      \ifdim\ht0>\textheight
        \setbox1\vsplit0 to \textheight
        \cleardoublepage\unvbox1\clearpage
        \ifdim\ht0>\textheight
          \PackageWarning{twopage}{Overflow in twopage environment}%
        \fi
        \unvbox0\clearpage
      \else
        \clearpage\unvbox0\clearpage
      \fi\endgroup
    }
    

    If you want a noisier failure, change \PackageWarning into \PackageError, The \unvboxes should allow for notes/floats to work properly – if you don’t need that, you might consider changing them all to \boxes instead (although I’m a bit rusty on the behavior of \vsplit with respect to box depths and skips, so that might produce funny behavior, but it would guarantee that you only took two pages by flowing anything extra off the bottom of the second page).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'd like to encourage our users of our RCP application to send the problem
I've got a git-svn clone of an svn repo, and I want to encourage
Encouraged by SO, I'm trying to write an ASP.NET site that uses OpenID for
I remember from C days that we were encouraged to use i > -1
I read all over the place about how Spring encourages you to use interfaces
How often should you use git-gc? The manual page simply says: Users are encouraged
I'd like to produce a warning message when users compile code that references an
Does the HATEOAS (hypermedia as the engine of app state) recommendation imply that query
At various times in my career I have encouraged staff I worked with and/or
Possible Duplicates: Methodologies for designing a simple programming language Learning to write a compiler

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.