Subsection pagebreak

I have a table in one of my subsections such that I’d like to start the subsection on a new page.

I use Scrivener with LaTeX, so there are a number of ways I could issue a newpage command. What I’d really like, however, is for Scrivener to start just this one subsection, not all subsections, with a page break.

After a bit of research, it appears I may need to create a new type of subsection, that starts with a page break, and apply that new type of subsection for the subsection that I’d like to start with a page break.

I’ve read section ‘24.2.5 New Pages’ in the Scrivener manual, but it doesn’t appear to apply for what I am looking for. Searching for “page break” gives me 33 matches, and I’m hoping someone can help me zero in on the appropriate section in the manual.

If someone could point me to the appropriate place in the documentation that deals with this issue, I’d be grateful.

thanks,
scrive
:thinking:

I don’t know where it is in the manual, but :

Create a new section type and assign it to that specific document (the one with the table in it) :

image

Create a new section layout in your compile format, then ( → Main compile panel) match it to the section type you just created.

In your compile format, set that new section layout to this :

“STANDARD” is just a section layout I happened to have in my actual project. You can name yours whatever you’d like. Like “table” for e.g..

1 Like

My approach to problems like this is to ask the following questions of myself:

  • Is this something I anticipate doing more than once in the future, even if there is only one case right now?
  • Is what I’m trying to say semantic or is it a matter of presentation. Do I want this break here in this one spot because it means something structural, or am I just trying to push an awkward subheading break to the next page (for example)?

If the answer is no to either of these, then the overhead of creating a new Type/Layout isn’t worth it, and particularly for the second one, it starts to pollute the integrity of the purpose of this feature. For true one-offs, or layout adjustments (which generally you would never concern yourself until the very end of the project for obvious reasons), just keep it simple! Type in \newpage and move on.

And of course there is also LaTeX good practices to consider as well. In most cases if the answer to the second question is yes, if this is a semantic thing, then it’s probably not something you should be forcing with a manual page break and instead modifying the stylesheet somehow. I mean, that’s not even just LaTeX advice, that’s good practices for even word processors. Chapter breaks, as a function of the style used for the heading, in a word processor should be declaring page breaks, not manual page break characters (something Scrivener doesn’t do well, and a reason I would never use the “Page Break” separator anywhere in my settings were I to use word processors, but that’s another matter).

Specifically to the above advice, using the “New Page” setting in a plain-text file won’t do anything useful. You need to use the Custom setting and type in \newpage for LaTeX.

1 Like

Hi Vincent_Vincent,

Thank you for so carefully outlining the steps I needed to take to implement an initial page break into a subsection type including creating a new subsection type matched to a section layout. I particularly appreciated the screen images and your highlighting of the critical text.

My mental CPU is not running as fast as it used to, so it took me longer than it should have to adapt your Windows response to my Mac version of Scrivener. This my first foray into section types and layouts, so my limited perception and memory capacity was a bit taxed.

Unfortunately, I must have missed something in the translation, as my implementation of what I called the ‘SubsectionWPageBreak’ did not result in an actual new page at the beginning of the subsection where the relevant table exists.

I did check the pre-typeset compiled .tex file to see if Scrivener had placed some sort of a page break at the beginning of the pertinent subsection, but I did not see anything to indicate that Scrivener attempted to place a page break at the beginning of the subsection where I had applied the ‘SubsectionWPageBreak’ subsection type and layout.

I even checked in the ‘Assign Section Layouts’ on the compile screen to confirm that I had correctly assigned the ‘SubsectionWPageBreak’ to the appropriate ‘SubsectionWPageBreak’ documents.

As shown in the image above, you can see the subtle

-------------------------- Page Break -------------------------------

as it appears in the ‘Assign Section Layouts’ for the ‘SubsectionWPageBreak’ Section Type.

But still no page break at the beginning of the ‘SubsectionWPageBreak’ subsection …

I’ll dither around to see if I can discern where I may have missed the necessary changes to the code to start the ‘SubsectionWPageBreak’ subsection on a new page, but I may have to resort to other means if I am unsuccessful.

For completeness, I’m including screen shots of both the compile Section Layouts and Separators screens that display the code for the ‘SubsectionWPageBreak’ subsection:

Question: On the following Section Layouts screen under Formatting, am I supposed to insert a ‘\newpage’ line of code just before the ‘\subsection{Section Title}’ line of code?

Thank you again for your efforts,
scrive
:thinking:

Are you positive your document is properly assigned the section type in the metadata panel ?

And how about Amber’s \newpage advice?

1 Like

Hi Vincent_Vincent,

As far as I can tell, and as displayed in the following screen capture:

I believe the ‘The Big Oil & Metals Markets Table’ subsection is assigned to the ‘SubsectionWPageBreak’ subsection.

As for Amber’s \newpage advice, it’s the reason I asked:

Question : On the following Section Layouts screen, under Formatting, am I supposed to insert a ‘\newpage’ line of code just before the ‘\subsection{Section Title} ’ line of code (screen shot repeated below)?

Thanks,
scrive
:thinking:

I’d put it in the prefix tab. Before anything else you may or may not have in there.
(Note that I don’t really know much about latex’s specifics tho.)
…But if I properly understood what @AmberV said, just type \newpage where you want the page break to be. That simple. So, in this case: topmost. Which would be the very first item in the “prefix” tab.

More even, I think she meant don’t bother with a new section type and layout, and just type \newpage at the end of the previous document. (?) But that wouldn’t work if you use sections suffixes.

1 Like

Hi Vincent_Vincent,

AmberV had it right from the beginning … being a little slow, I just did not comprehend what they were referring to …

So in the compile screen for Separators, for the ‘SubsectionWPageBreak’ Section Layout, in the Separator before sections: field I’ve selected the Custom option, and entered \newpage in the text field alongside the Custom option, as shown below.

It worked!

Thank you AmberV and Vincent_Vincent for all your help!!

Back to writing!
scrive
:thinking:

1 Like

That is kind of a constant. :upside_down_face:
Happy you got it to work.

1 Like