Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I am using the labbook document class which is based on scrbook. labbook doesn't number the chapters, but the figure numbering still behaves the way it was in scrbook: it's not running, but each chapter starts with "Figure 1". I tried

\usepackage{chngcntr}
\counterwithout{figure}{addchap}

but I get the error that addchap is not a counter (which absolutely makes sense). How can I get running figure numbering throughout the document?

MWE:

\documentclass[oneside]{labbook}
\usepackage[]{graphicx} 
\begin{document}

\labday{Monday}

\begin{figure}
\centering
\includegraphics{Figure1.jpg}
\caption{Figure1}
\label{fig:Figure1}
\end{figure}

\labday{Tuesday}

\begin{figure}
\centering
\includegraphics{Figure2.jpg}
\caption{Figure2}
\label{fig:Figure2}
\end{figure}

\end{document}
share|improve this question
add comment

1 Answer 1

up vote 3 down vote accepted

The figure counter is tied to the labday counter (while \addchap is the macro used to add another \labday and therefore does not constitute a counter). So, using

\usepackage{chngcntr}% http://ctan.org/pkg/chngcntr
\counterwithout{figure}{labday}

provides running figures from labday to labday.

share|improve this answer
    
Thanks a lot, this works! –  Anja Feb 23 '12 at 15:22
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.