<?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: Controlling the page count in LaTeX</title>
	<atom:link href="http://hreidarsson.com/2009/10/controlling-the-page-count-in-latex/feed/" rel="self" type="application/rss+xml" />
	<link>http://hreidarsson.com/2009/10/controlling-the-page-count-in-latex/</link>
	<description></description>
	<lastBuildDate>Mon, 30 Aug 2010 09:42:02 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: makeatother</title>
		<link>http://hreidarsson.com/2009/10/controlling-the-page-count-in-latex/comment-page-1/#comment-121</link>
		<dc:creator>makeatother</dc:creator>
		<pubDate>Sat, 27 Mar 2010 12:30:29 +0000</pubDate>
		<guid isPermaLink="false">http://hreidarsson.com/?p=24#comment-121</guid>
		<description>[...] These two commands are necessary, as @ isn&#039;t treated as a normal ... Name (required) ...Controlling the page count in LaTeX g:hControlling the page count in LaTeX. I&#039;ve been working on a project which involves generation of [...]</description>
		<content:encoded><![CDATA[<p>[...] These two commands are necessary, as @ isn&#39;t treated as a normal &#8230; Name (required) &#8230;Controlling the page count in LaTeX g:hControlling the page count in LaTeX. I&#39;ve been working on a project which involves generation of [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gummi</title>
		<link>http://hreidarsson.com/2009/10/controlling-the-page-count-in-latex/comment-page-1/#comment-107</link>
		<dc:creator>gummi</dc:creator>
		<pubDate>Mon, 15 Mar 2010 16:21:25 +0000</pubDate>
		<guid isPermaLink="false">http://hreidarsson.com/?p=24#comment-107</guid>
		<description>Great -- thanks a lot! Looks much more hard-core than my solution ;)</description>
		<content:encoded><![CDATA[<p>Great &#8212; thanks a lot! Looks much more hard-core than my solution <img src='http://hreidarsson.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kongo09</title>
		<link>http://hreidarsson.com/2009/10/controlling-the-page-count-in-latex/comment-page-1/#comment-106</link>
		<dc:creator>kongo09</dc:creator>
		<pubDate>Mon, 15 Mar 2010 13:19:16 +0000</pubDate>
		<guid isPermaLink="false">http://hreidarsson.com/?p=24#comment-106</guid>
		<description>Problem solved:

\usepackage{atbegshi}
\newcounter{abspage}
\AtBeginShipout{\stepcounter{abspage}}
\makeatletter
\AtBeginDocument{%
  \AtEndDocument{%
    \if@twoside %
      \cleardoublepage
      \pagestyle{empty}
      \begingroup
        \@tempcnta=\value{abspage}
        \divide\@tempcnta by 4
        \multiply\@tempcnta by 4
        \ifnum \@tempcnta=\value{abspage} \else \null\cleardoublepage\fi
      \endgroup
    \fi
  }%
}
\makeatother</description>
		<content:encoded><![CDATA[<p>Problem solved:</p>
<p>\usepackage{atbegshi}<br />
\newcounter{abspage}<br />
\AtBeginShipout{\stepcounter{abspage}}<br />
\makeatletter<br />
\AtBeginDocument{%<br />
  \AtEndDocument{%<br />
    \if@twoside %<br />
      \cleardoublepage<br />
      \pagestyle{empty}<br />
      \begingroup<br />
        \@tempcnta=\value{abspage}<br />
        \divide\@tempcnta by 4<br />
        \multiply\@tempcnta by 4<br />
        \ifnum \@tempcnta=\value{abspage} \else \null\cleardoublepage\fi<br />
      \endgroup<br />
    \fi<br />
  }%<br />
}<br />
\makeatother</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kongo09</title>
		<link>http://hreidarsson.com/2009/10/controlling-the-page-count-in-latex/comment-page-1/#comment-101</link>
		<dc:creator>kongo09</dc:creator>
		<pubDate>Fri, 12 Mar 2010 17:20:18 +0000</pubDate>
		<guid isPermaLink="false">http://hreidarsson.com/?p=24#comment-101</guid>
		<description>I struggled a lot with this now. Tried all sorts of other counters, etc... but I can&#039;t get it working. I&#039;m suprprised that there is no package solving this everyday printing problem.

Should I come across something, I&#039;ll post it here.</description>
		<content:encoded><![CDATA[<p>I struggled a lot with this now. Tried all sorts of other counters, etc&#8230; but I can&#8217;t get it working. I&#8217;m suprprised that there is no package solving this everyday printing problem.</p>
<p>Should I come across something, I&#8217;ll post it here.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gummi</title>
		<link>http://hreidarsson.com/2009/10/controlling-the-page-count-in-latex/comment-page-1/#comment-100</link>
		<dc:creator>gummi</dc:creator>
		<pubDate>Fri, 12 Mar 2010 11:47:39 +0000</pubDate>
		<guid isPermaLink="false">http://hreidarsson.com/?p=24#comment-100</guid>
		<description>You&#039;re right. Actually leaving out the front-matter was exactly what I needed, but in general you of course want to count that in. I don&#039;t know of any other counter to use for this -- let me know if you find a way to count everything in.</description>
		<content:encoded><![CDATA[<p>You&#8217;re right. Actually leaving out the front-matter was exactly what I needed, but in general you of course want to count that in. I don&#8217;t know of any other counter to use for this &#8212; let me know if you find a way to count everything in.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kongo09</title>
		<link>http://hreidarsson.com/2009/10/controlling-the-page-count-in-latex/comment-page-1/#comment-99</link>
		<dc:creator>kongo09</dc:creator>
		<pubDate>Fri, 12 Mar 2010 10:20:04 +0000</pubDate>
		<guid isPermaLink="false">http://hreidarsson.com/?p=24#comment-99</guid>
		<description>Thanks. This works - kind of.

Apparently, \value{page} uses the current page number for the calculation. That is fine unless you have some preface with its own page numbering, like a table of contents. In that case, you end up with a main content part being treated correctly, but not necessarily with the full document having the right number of pages.</description>
		<content:encoded><![CDATA[<p>Thanks. This works &#8211; kind of.</p>
<p>Apparently, \value{page} uses the current page number for the calculation. That is fine unless you have some preface with its own page numbering, like a table of contents. In that case, you end up with a main content part being treated correctly, but not necessarily with the full document having the right number of pages.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gummi</title>
		<link>http://hreidarsson.com/2009/10/controlling-the-page-count-in-latex/comment-page-1/#comment-96</link>
		<dc:creator>gummi</dc:creator>
		<pubDate>Wed, 10 Mar 2010 14:43:29 +0000</pubDate>
		<guid isPermaLink="false">http://hreidarsson.com/?p=24#comment-96</guid>
		<description>Yes, at least that is how I use it myself. Technically you can put the \def anywhere you&#039;d like, but it&#039;s customary to put it in the preamble, that is, before the document starts.</description>
		<content:encoded><![CDATA[<p>Yes, at least that is how I use it myself. Technically you can put the \def anywhere you&#8217;d like, but it&#8217;s customary to put it in the preamble, that is, before the document starts.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kongo09</title>
		<link>http://hreidarsson.com/2009/10/controlling-the-page-count-in-latex/comment-page-1/#comment-95</link>
		<dc:creator>kongo09</dc:creator>
		<pubDate>Wed, 10 Mar 2010 14:32:00 +0000</pubDate>
		<guid isPermaLink="false">http://hreidarsson.com/?p=24#comment-95</guid>
		<description>Thanks for the great suggestion!

Does that mean I put the \def part in my TeX file
before the \begin{document} and the \makepagesmultipleof4
just before the closing \end{document}?</description>
		<content:encoded><![CDATA[<p>Thanks for the great suggestion!</p>
<p>Does that mean I put the \def part in my TeX file<br />
before the \begin{document} and the \makepagesmultipleof4<br />
just before the closing \end{document}?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
