<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Counters in LaTex</title>
	<atom:link href="http://texblog.wordpress.com/2007/07/25/counters-in-latex/feed/" rel="self" type="application/rss+xml" />
	<link>http://texblog.wordpress.com/2007/07/25/counters-in-latex/</link>
	<description>Reporting without troubles</description>
	<lastBuildDate>Sun, 25 Oct 2009 15:55:04 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: chstef</title>
		<link>http://texblog.wordpress.com/2007/07/25/counters-in-latex/#comment-2238</link>
		<dc:creator>chstef</dc:creator>
		<pubDate>Mon, 16 Mar 2009 17:29:55 +0000</pubDate>
		<guid isPermaLink="false">http://texblog.wordpress.com/2007/07/25/counters-in-latex/#comment-2238</guid>
		<description>Hi again, 

I have finished the book I was writing (Programming in MATLAB). The book is written in greek. Now, I am trying to generate a multilingual index (greek + english) using makeindex package without success. Can you give me any suggestion on which package do I have to use?

Thanks in advance.</description>
		<content:encoded><![CDATA[<p>Hi again, </p>
<p>I have finished the book I was writing (Programming in MATLAB). The book is written in greek. Now, I am trying to generate a multilingual index (greek + english) using makeindex package without success. Can you give me any suggestion on which package do I have to use?</p>
<p>Thanks in advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: emurray</title>
		<link>http://texblog.wordpress.com/2007/07/25/counters-in-latex/#comment-2214</link>
		<dc:creator>emurray</dc:creator>
		<pubDate>Sun, 08 Feb 2009 01:44:35 +0000</pubDate>
		<guid isPermaLink="false">http://texblog.wordpress.com/2007/07/25/counters-in-latex/#comment-2214</guid>
		<description>Ah, nevermind, I figured out a way around it.  I added a new counter using 

\newcounter{assumpt}[chapter]

which keeps the total of the assumptions in a chapter.  Then I changed the last two lines of the above code to:

{\usecounter{assump}}\addtocounter{assump}{\value{assumpt}}}
{\end{list}\setcounter{assumpt}{\value{assump}}}

Thanks though!</description>
		<content:encoded><![CDATA[<p>Ah, nevermind, I figured out a way around it.  I added a new counter using </p>
<p>\newcounter{assumpt}[chapter]</p>
<p>which keeps the total of the assumptions in a chapter.  Then I changed the last two lines of the above code to:</p>
<p>{\usecounter{assump}}\addtocounter{assump}{\value{assumpt}}}<br />
{\end{list}\setcounter{assumpt}{\value{assump}}}</p>
<p>Thanks though!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: emurray</title>
		<link>http://texblog.wordpress.com/2007/07/25/counters-in-latex/#comment-2212</link>
		<dc:creator>emurray</dc:creator>
		<pubDate>Fri, 06 Feb 2009 23:18:29 +0000</pubDate>
		<guid isPermaLink="false">http://texblog.wordpress.com/2007/07/25/counters-in-latex/#comment-2212</guid>
		<description>Hi,

I&#039;m a little stuck with list numbering.  I&#039;m creating a list of assumptions in a paper.  However, I would like the assumption counter to reset ONLY when the chapter number changes.  In other words, I&#039;d like the text to read:

Chapter 1, Section 1
~
Assumption 1.1
Assumption 1.2
~
Chapter 1, Section 2
~
Assumption 1.3
Assumption 1.4
~
Chapter 2, Section 1
~
Assumption 2.1
~

Currently though, the assumption counter resets every time I call the assumption environment.  Here&#039;s my code for the environment:

\newcounter{assump}
\newenvironment{assumption}
    {\begin{list}{Assumption \arabic{chapter}.\arabic{assump}:}
        {\usecounter{assump}}}
    {\end{list}}

I&#039;ve tried adding &quot;[chapter]&quot; to the end of the counter definition, but it still doesn&#039;t ensure that the counter is reset only when the chapter changes.  Any ideas?   Thanks!</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I&#8217;m a little stuck with list numbering.  I&#8217;m creating a list of assumptions in a paper.  However, I would like the assumption counter to reset ONLY when the chapter number changes.  In other words, I&#8217;d like the text to read:</p>
<p>Chapter 1, Section 1<br />
~<br />
Assumption 1.1<br />
Assumption 1.2<br />
~<br />
Chapter 1, Section 2<br />
~<br />
Assumption 1.3<br />
Assumption 1.4<br />
~<br />
Chapter 2, Section 1<br />
~<br />
Assumption 2.1<br />
~</p>
<p>Currently though, the assumption counter resets every time I call the assumption environment.  Here&#8217;s my code for the environment:</p>
<p>\newcounter{assump}<br />
\newenvironment{assumption}<br />
    {\begin{list}{Assumption \arabic{chapter}.\arabic{assump}:}<br />
        {\usecounter{assump}}}<br />
    {\end{list}}</p>
<p>I&#8217;ve tried adding &#8220;[chapter]&#8221; to the end of the counter definition, but it still doesn&#8217;t ensure that the counter is reset only when the chapter changes.  Any ideas?   Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tip: Showing page 4 of 65 &#171; Blog on Latex Matters</title>
		<link>http://texblog.wordpress.com/2007/07/25/counters-in-latex/#comment-1966</link>
		<dc:creator>Tip: Showing page 4 of 65 &#171; Blog on Latex Matters</dc:creator>
		<pubDate>Wed, 15 Oct 2008 21:26:07 +0000</pubDate>
		<guid isPermaLink="false">http://texblog.wordpress.com/2007/07/25/counters-in-latex/#comment-1966</guid>
		<description>[...] I recently posted a comment on how to count the number of figures within your document.  View [...]</description>
		<content:encoded><![CDATA[<p>[...] I recently posted a comment on how to count the number of figures within your document.  View [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chstef</title>
		<link>http://texblog.wordpress.com/2007/07/25/counters-in-latex/#comment-1907</link>
		<dc:creator>chstef</dc:creator>
		<pubDate>Fri, 10 Oct 2008 08:41:02 +0000</pubDate>
		<guid isPermaLink="false">http://texblog.wordpress.com/2007/07/25/counters-in-latex/#comment-1907</guid>
		<description>It worked!!! Not only for the tables and figures, but also for a user-defined floating environment as well. Thanks a lot for your prompt help.</description>
		<content:encoded><![CDATA[<p>It worked!!! Not only for the tables and figures, but also for a user-defined floating environment as well. Thanks a lot for your prompt help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: thurnherr</title>
		<link>http://texblog.wordpress.com/2007/07/25/counters-in-latex/#comment-1878</link>
		<dc:creator>thurnherr</dc:creator>
		<pubDate>Sun, 05 Oct 2008 19:06:05 +0000</pubDate>
		<guid isPermaLink="false">http://texblog.wordpress.com/2007/07/25/counters-in-latex/#comment-1878</guid>
		<description>Hi,

Thanks for your question, which was rather tricky to answer :-). The problem is, that you first have to run through the document in order to know the number of figures.
I propose you write a macro with the code given below, so you don&#039;t mess up your tex-file:

	1. Open a new text-file and call numberfigure.sty.
	2. Copy-paste the code below into the file and save it.
	3. Add the &lt;code&gt;numberfigure&lt;/code&gt; package to your Latex-document.
4. Use &lt;code&gt;\pageref{NumberFigures}&lt;/code&gt; to print the number of figures.

I have to admit, the solution is not very nice and I would be happy if someone who is familiar with macros would post a better solution.

Here is the macro code for numberfigure.sty:

&lt;code&gt;\newcounter{myfigure}
\setcounter{myfigure}{0}
\newcommand{\mycaption}[1]{
\stepcounter{myfigure}
\caption{#1}}

\def\numberfigures@putlabel{\addtocounter{myfigure}{0}%
\immediate\write\@auxout{\string
\newlabel{NumberFigures}{{}{\themyfigure}}}%
\addtocounter{myfigure}{1}}
\AtEndDocument{%
\clearpage\numberfigures@putlabel}%
\endinput&lt;/code&gt;

Cheers,
Tom





</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Thanks for your question, which was rather tricky to answer <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> . The problem is, that you first have to run through the document in order to know the number of figures.<br />
I propose you write a macro with the code given below, so you don&#8217;t mess up your tex-file:</p>
<p>	1. Open a new text-file and call numberfigure.sty.<br />
	2. Copy-paste the code below into the file and save it.<br />
	3. Add the <code>numberfigure</code> package to your Latex-document.<br />
4. Use <code>\pageref{NumberFigures}</code> to print the number of figures.</p>
<p>I have to admit, the solution is not very nice and I would be happy if someone who is familiar with macros would post a better solution.</p>
<p>Here is the macro code for numberfigure.sty:</p>
<p><code>\newcounter{myfigure}<br />
\setcounter{myfigure}{0}<br />
\newcommand{\mycaption}[1]{<br />
\stepcounter{myfigure}<br />
\caption{#1}}</p>
<p>\def\numberfigures@putlabel{\addtocounter{myfigure}{0}%<br />
\immediate\write\@auxout{\string<br />
\newlabel{NumberFigures}{{}{\themyfigure}}}%<br />
\addtocounter{myfigure}{1}}<br />
\AtEndDocument{%<br />
\clearpage\numberfigures@putlabel}%<br />
\endinput</code></p>
<p>Cheers,<br />
Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chstef</title>
		<link>http://texblog.wordpress.com/2007/07/25/counters-in-latex/#comment-1868</link>
		<dc:creator>chstef</dc:creator>
		<pubDate>Fri, 03 Oct 2008 08:51:38 +0000</pubDate>
		<guid isPermaLink="false">http://texblog.wordpress.com/2007/07/25/counters-in-latex/#comment-1868</guid>
		<description>Hi,

I am writing a book that contains a certain number of tables and figures. 

I would like to include the total number of figures and the total number of tables in the front page.

I was wondering if there is way to do so automatically.

Thanks in advance.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I am writing a book that contains a certain number of tables and figures. </p>
<p>I would like to include the total number of figures and the total number of tables in the front page.</p>
<p>I was wondering if there is way to do so automatically.</p>
<p>Thanks in advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 1sy8</title>
		<link>http://texblog.wordpress.com/2007/07/25/counters-in-latex/#comment-1794</link>
		<dc:creator>1sy8</dc:creator>
		<pubDate>Sat, 20 Sep 2008 12:20:57 +0000</pubDate>
		<guid isPermaLink="false">http://texblog.wordpress.com/2007/07/25/counters-in-latex/#comment-1794</guid>
		<description>Tom, 

Your last tip can solve Troy C.&#039; s problem :

To change chapter number each time changing part, add in your preamble
\makeatletter
\@addtoreset{chapter}{part}
\makeatother</description>
		<content:encoded><![CDATA[<p>Tom, </p>
<p>Your last tip can solve Troy C.&#8217; s problem :</p>
<p>To change chapter number each time changing part, add in your preamble<br />
\makeatletter<br />
\@addtoreset{chapter}{part}<br />
\makeatother</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: application</title>
		<link>http://texblog.wordpress.com/2007/07/25/counters-in-latex/#comment-1737</link>
		<dc:creator>application</dc:creator>
		<pubDate>Thu, 11 Sep 2008 23:26:06 +0000</pubDate>
		<guid isPermaLink="false">http://texblog.wordpress.com/2007/07/25/counters-in-latex/#comment-1737</guid>
		<description>Thanks a lot!</description>
		<content:encoded><![CDATA[<p>Thanks a lot!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: thurnherr</title>
		<link>http://texblog.wordpress.com/2007/07/25/counters-in-latex/#comment-1732</link>
		<dc:creator>thurnherr</dc:creator>
		<pubDate>Thu, 11 Sep 2008 11:50:14 +0000</pubDate>
		<guid isPermaLink="false">http://texblog.wordpress.com/2007/07/25/counters-in-latex/#comment-1732</guid>
		<description>Hi!

What you would need to do is the following.
Define a new counter:
&lt;code&gt;\newcouter{myfigure}&lt;/code&gt;
and tell Latex how you want your figure counter to look like:
&lt;code&gt;\renewcommand{\thefigure}{\addtocounter{myfigure}{1}\thesection.\themyfigure}%&lt;/code&gt;

If you want Latex to reset the counter everytime you start a new chapter you need to add this piece of code:
&lt;code&gt;\makeatletter
\@addtoreset{myfigure}{chapter}
\makeatother&lt;/code&gt;

Hope this is what you were looking for,
Tom</description>
		<content:encoded><![CDATA[<p>Hi!</p>
<p>What you would need to do is the following.<br />
Define a new counter:<br />
<code>\newcouter{myfigure}</code><br />
and tell Latex how you want your figure counter to look like:<br />
<code>\renewcommand{\thefigure}{\addtocounter{myfigure}{1}\thesection.\themyfigure}%</code></p>
<p>If you want Latex to reset the counter everytime you start a new chapter you need to add this piece of code:<br />
<code>\makeatletter<br />
\@addtoreset{myfigure}{chapter}<br />
\makeatother</code></p>
<p>Hope this is what you were looking for,<br />
Tom</p>
]]></content:encoded>
	</item>
</channel>
</rss>
