<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: latex: adding pagebreaks at sections</title>
	<atom:link href="http://www.matusiak.eu/numerodix/blog/index.php/2007/05/12/latex-adding-pagebreaks-at-sections/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.matusiak.eu/numerodix/blog/index.php/2007/05/12/latex-adding-pagebreaks-at-sections/</link>
	<description>A blog about nothing</description>
	<lastBuildDate>Tue, 31 Jan 2012 20:14:03 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: swgreen</title>
		<link>http://www.matusiak.eu/numerodix/blog/index.php/2007/05/12/latex-adding-pagebreaks-at-sections/#comment-233082</link>
		<dc:creator>swgreen</dc:creator>
		<pubDate>Tue, 26 Jul 2011 20:43:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.matusiak.eu/numerodix/blog/index.php/2007/05/12/latex-adding-pagebreaks-at-sections/#comment-233082</guid>
		<description>Use with hyperref:

When using the solution here in combination with hyperref, section links point to the page *before* the beginning of the new section. To remedy this, I used the following:

\makeatletter
\renewcommand{\section}{\newpage{} \@startsection
{section}
{1}
{0mm}
{-3.5ex \@plus -1ex \@minus -.2ex}
{2.3ex \@plus.2ex}
{\normalfont\Large\bfseries}}
\makeatother</description>
		<content:encoded><![CDATA[<p>Use with hyperref:</p>
<p>When using the solution here in combination with hyperref, section links point to the page *before* the beginning of the new section. To remedy this, I used the following:</p>
<p>\makeatletter<br />
\renewcommand{\section}{\newpage{} \@startsection<br />
{section}<br />
{1}<br />
{0mm}<br />
{-3.5ex \@plus -1ex \@minus -.2ex}<br />
{2.3ex \@plus.2ex}<br />
{\normalfont\Large\bfseries}}<br />
\makeatother</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TX</title>
		<link>http://www.matusiak.eu/numerodix/blog/index.php/2007/05/12/latex-adding-pagebreaks-at-sections/#comment-142003</link>
		<dc:creator>TX</dc:creator>
		<pubDate>Thu, 19 Aug 2010 21:25:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.matusiak.eu/numerodix/blog/index.php/2007/05/12/latex-adding-pagebreaks-at-sections/#comment-142003</guid>
		<description>Thank you so much for the \pagebreak before sectioning. I was on the exact type of fruitless Google search you mentioned looking for it.

You&#039;re absolutely right that LaTeX documentation is spread all over the place. There&#039;s no one convention to write code, there are thousands of random packages to download, and therefore there is a huge learning curve to using this powerful typesetting language.

Too bad. If organized and given a sleek new standard in coding and more intuitive commands, LaTeX would become much easier to use.</description>
		<content:encoded><![CDATA[<p>Thank you so much for the \pagebreak before sectioning. I was on the exact type of fruitless Google search you mentioned looking for it.</p>
<p>You&#8217;re absolutely right that LaTeX documentation is spread all over the place. There&#8217;s no one convention to write code, there are thousands of random packages to download, and therefore there is a huge learning curve to using this powerful typesetting language.</p>
<p>Too bad. If organized and given a sleek new standard in coding and more intuitive commands, LaTeX would become much easier to use.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: numerodix</title>
		<link>http://www.matusiak.eu/numerodix/blog/index.php/2007/05/12/latex-adding-pagebreaks-at-sections/#comment-68179</link>
		<dc:creator>numerodix</dc:creator>
		<pubDate>Wed, 06 Aug 2008 00:08:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.matusiak.eu/numerodix/blog/index.php/2007/05/12/latex-adding-pagebreaks-at-sections/#comment-68179</guid>
		<description>Yikes. The quirks never end, do they?

Thank you, this works beautifully!</description>
		<content:encoded><![CDATA[<p>Yikes. The quirks never end, do they?</p>
<p>Thank you, this works beautifully!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gabriel Many</title>
		<link>http://www.matusiak.eu/numerodix/blog/index.php/2007/05/12/latex-adding-pagebreaks-at-sections/#comment-68154</link>
		<dc:creator>Gabriel Many</dc:creator>
		<pubDate>Tue, 05 Aug 2008 20:08:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.matusiak.eu/numerodix/blog/index.php/2007/05/12/latex-adding-pagebreaks-at-sections/#comment-68154</guid>
		<description>See http://www.math.upenn.edu/tex_docs/help/faq/uktug-faq/FAQ229.html

I did a quick google search for your error, and indeed, it is recommended that you place it like this (using \makeatletter and \makeatother):

\makeatletter
\renewcommand{\section}{\@startsection
{section}
{1}
{0mm}
{-3.5ex \@plus -1ex \@minus -.2ex}
{2.3ex \@plus.2ex}
{\clearpage\normalfont\Large\bfseries}}
\makeatother</description>
		<content:encoded><![CDATA[<p>See <a href="http://www.math.upenn.edu/tex_docs/help/faq/uktug-faq/FAQ229.html" rel="nofollow">http://www.math.upenn.edu/tex_docs/help/faq/uktug-faq/FAQ229.html</a></p>
<p>I did a quick google search for your error, and indeed, it is recommended that you place it like this (using \makeatletter and \makeatother):</p>
<p>\makeatletter<br />
\renewcommand{\section}{\@startsection<br />
{section}<br />
{1}<br />
{0mm}<br />
{-3.5ex \@plus -1ex \@minus -.2ex}<br />
{2.3ex \@plus.2ex}<br />
{\clearpage\normalfont\Large\bfseries}}<br />
\makeatother</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: numerodix</title>
		<link>http://www.matusiak.eu/numerodix/blog/index.php/2007/05/12/latex-adding-pagebreaks-at-sections/#comment-68151</link>
		<dc:creator>numerodix</dc:creator>
		<pubDate>Tue, 05 Aug 2008 19:34:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.matusiak.eu/numerodix/blog/index.php/2007/05/12/latex-adding-pagebreaks-at-sections/#comment-68151</guid>
		<description>Well, I don&#039;t know what it is, but it refuses to compile, even with a &quot;Hello world&quot; document. And I tried the code from that page you referenced. I keep getting the error &quot;You can&#039;t use `\spacefactor&#039; in vertical mode.&quot; on the line where I have \section, which I don&#039;t understand.

I tried this both on ubuntu, which ships texlive, and gentoo which still has tetex. I&#039;m not using lyx, just a regular editor.</description>
		<content:encoded><![CDATA[<p>Well, I don&#8217;t know what it is, but it refuses to compile, even with a &#8220;Hello world&#8221; document. And I tried the code from that page you referenced. I keep getting the error &#8220;You can&#8217;t use `\spacefactor&#8217; in vertical mode.&#8221; on the line where I have \section, which I don&#8217;t understand.</p>
<p>I tried this both on ubuntu, which ships texlive, and gentoo which still has tetex. I&#8217;m not using lyx, just a regular editor.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gabriel Many</title>
		<link>http://www.matusiak.eu/numerodix/blog/index.php/2007/05/12/latex-adding-pagebreaks-at-sections/#comment-68148</link>
		<dc:creator>Gabriel Many</dc:creator>
		<pubDate>Tue, 05 Aug 2008 19:19:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.matusiak.eu/numerodix/blog/index.php/2007/05/12/latex-adding-pagebreaks-at-sections/#comment-68148</guid>
		<description>I have tried it on two different machines running two different tex distributions on two different operating systems with two different version of Lyx and it has worked both times. I did note that the comments messed things up when I cut and pasted into the Lyx preamble in Windows, so it is possible that you are having some sort of error in that sense. Nevertheless, the link I provided in my previous post gives more detailed information about the options. As I said, I went into report.cls and copied the section definition to make sure that I got the font style right, since basically I am just redefining section to have a &quot;clearpage&quot; added to the style.

In the end, I don&#039;t really know that I&#039;ll use this, but it seems that it could be useful to have a style that causes a pagebreak without having to start a whole new chapter.

Here it is without the comments:

\renewcommand{\section}{\@startsection
{section}
{1}
{0mm}
{-3.5ex \@plus -1ex \@minus -.2ex}
{2.3ex \@plus.2ex}
{\clearpage\normalfont\Large\bfseries}}</description>
		<content:encoded><![CDATA[<p>I have tried it on two different machines running two different tex distributions on two different operating systems with two different version of Lyx and it has worked both times. I did note that the comments messed things up when I cut and pasted into the Lyx preamble in Windows, so it is possible that you are having some sort of error in that sense. Nevertheless, the link I provided in my previous post gives more detailed information about the options. As I said, I went into report.cls and copied the section definition to make sure that I got the font style right, since basically I am just redefining section to have a &#8220;clearpage&#8221; added to the style.</p>
<p>In the end, I don&#8217;t really know that I&#8217;ll use this, but it seems that it could be useful to have a style that causes a pagebreak without having to start a whole new chapter.</p>
<p>Here it is without the comments:</p>
<p>\renewcommand{\section}{\@startsection<br />
{section}<br />
{1}<br />
{0mm}<br />
{-3.5ex \@plus -1ex \@minus -.2ex}<br />
{2.3ex \@plus.2ex}<br />
{\clearpage\normalfont\Large\bfseries}}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: numerodix</title>
		<link>http://www.matusiak.eu/numerodix/blog/index.php/2007/05/12/latex-adding-pagebreaks-at-sections/#comment-68084</link>
		<dc:creator>numerodix</dc:creator>
		<pubDate>Tue, 05 Aug 2008 10:08:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.matusiak.eu/numerodix/blog/index.php/2007/05/12/latex-adding-pagebreaks-at-sections/#comment-68084</guid>
		<description>Have you tested this with \tableofcontents? I pasted your code right into the preamble of a report I&#039;m writing right now, changed the document type to report and I get this:

pdfTeX warning (ext4): destination with the
same identifier (name{page.1}) has been already used, duplicate ignored
&lt;to be read again&gt;
                   \relax
l.84 \newpage
              [1] (./main.tex
! You can&#039;t use `\spacefactor&#039; in vertical mode.
\@-&gt;\spacefactor
                 \@m
l.1 \section
            {Introduction}

Still evil lurking somewhere..&lt;/to&gt;</description>
		<content:encoded><![CDATA[<p>Have you tested this with \tableofcontents? I pasted your code right into the preamble of a report I&#8217;m writing right now, changed the document type to report and I get this:</p>
<p>pdfTeX warning (ext4): destination with the<br />
same identifier (name{page.1}) has been already used, duplicate ignored<br />
<to be read again><br />
                   \relax<br />
l.84 \newpage<br />
              [1] (./main.tex<br />
! You can&#8217;t use `\spacefactor&#8217; in vertical mode.<br />
\@->\spacefactor<br />
                 \@m<br />
l.1 \section<br />
            {Introduction}</p>
<p>Still evil lurking somewhere..</to></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gabriel Many</title>
		<link>http://www.matusiak.eu/numerodix/blog/index.php/2007/05/12/latex-adding-pagebreaks-at-sections/#comment-68021</link>
		<dc:creator>Gabriel Many</dc:creator>
		<pubDate>Tue, 05 Aug 2008 03:54:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.matusiak.eu/numerodix/blog/index.php/2007/05/12/latex-adding-pagebreaks-at-sections/#comment-68021</guid>
		<description>Well, after some research, it looks like a complex way of doing this is to redefine section formating in the preamble.  See: http://theoval.sys.uea.ac.uk/~nlct/latex/thesis/node9.html#tab:secnum

The basic format is:
\@startsection{}{}{}{}{}{} 

Which led me to create the following (using what I believe are the defaults for the report class):

\renewcommand{\section}{\@startsection
{section}%                   % the name
{1}%                         % the level
{0mm}%                       % the indent
{-3.5ex \@plus -1ex \@minus -.2ex}%
{2.3ex \@plus.2ex}%
{\clearpage\normalfont\Large\bfseries}}

The thing I added was the \clearpage
Now, I&#039;d prefer to tell it to just use class defaults for the beforeskip and afterskip commands, but I don&#039;t know how to do so, so I used the actual value I found in report.cls.

Do you have  something more elegant?</description>
		<content:encoded><![CDATA[<p>Well, after some research, it looks like a complex way of doing this is to redefine section formating in the preamble.  See: <a href="http://theoval.sys.uea.ac.uk/~nlct/latex/thesis/node9.html#tab:secnum" rel="nofollow">http://theoval.sys.uea.ac.uk/~nlct/latex/thesis/node9.html#tab:secnum</a></p>
<p>The basic format is:<br />
\@startsection{}{}{}{}{}{} </p>
<p>Which led me to create the following (using what I believe are the defaults for the report class):</p>
<p>\renewcommand{\section}{\@startsection<br />
{section}%                   % the name<br />
{1}%                         % the level<br />
{0mm}%                       % the indent<br />
{-3.5ex \@plus -1ex \@minus -.2ex}%<br />
{2.3ex \@plus.2ex}%<br />
{\clearpage\normalfont\Large\bfseries}}</p>
<p>The thing I added was the \clearpage<br />
Now, I&#8217;d prefer to tell it to just use class defaults for the beforeskip and afterskip commands, but I don&#8217;t know how to do so, so I used the actual value I found in report.cls.</p>
<p>Do you have  something more elegant?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: numerodix</title>
		<link>http://www.matusiak.eu/numerodix/blog/index.php/2007/05/12/latex-adding-pagebreaks-at-sections/#comment-67980</link>
		<dc:creator>numerodix</dc:creator>
		<pubDate>Mon, 04 Aug 2008 23:45:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.matusiak.eu/numerodix/blog/index.php/2007/05/12/latex-adding-pagebreaks-at-sections/#comment-67980</guid>
		<description>Actually, there is a numbering/toc bug with this method and I&#039;m unable to use it myself any longer. I don&#039;t know exactly why, and debugging latex is a nightmare.</description>
		<content:encoded><![CDATA[<p>Actually, there is a numbering/toc bug with this method and I&#8217;m unable to use it myself any longer. I don&#8217;t know exactly why, and debugging latex is a nightmare.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gabriel Many</title>
		<link>http://www.matusiak.eu/numerodix/blog/index.php/2007/05/12/latex-adding-pagebreaks-at-sections/#comment-67977</link>
		<dc:creator>Gabriel Many</dc:creator>
		<pubDate>Mon, 04 Aug 2008 23:05:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.matusiak.eu/numerodix/blog/index.php/2007/05/12/latex-adding-pagebreaks-at-sections/#comment-67977</guid>
		<description>So, this worked, but...it gave each of my unnumber sections (section*, I&#039;m using lyx) a number and stuck them namelessly (just an asterisk) into the table of contents. If you can, help me! I will post if I solve this.</description>
		<content:encoded><![CDATA[<p>So, this worked, but&#8230;it gave each of my unnumber sections (section*, I&#8217;m using lyx) a number and stuck them namelessly (just an asterisk) into the table of contents. If you can, help me! I will post if I solve this.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

