5

I want to use running figure numbering so I used a trick form this website http://www.tex.ac.uk/cgi-bin/texfaq2html?label=running-nos.

\documentclass[a4paper, 11pt]{scrbook}
\usepackage{chngcntr}
\counterwithout{figure}{chapter}
...
\begin{appendix}
\chapter{Algorithms}
...
\end{appendix}

It kind-of-works: The figures numbers look like this e.g. Figure 2.:, Figure 3.: ... How can i get rid of the .?

Is there a fix or a better solution?

5
  • Does the . form part of the number? When you use \ref{<some figure>}, do you get a number plus .?
    – Werner
    Nov 23 '11 at 20:59
  • No just the number.
    – Joachim
    Nov 23 '11 at 21:24
  • 3
    Since this is not the output I receive, could you post a minimal working example (MWE) that duplicates your problem? There may be other definitions in your preamble that causes this behaviour since it is not the expected output given your setup. Without an MWE it will be difficult to correct it.
    – Werner
    Nov 23 '11 at 21:31
  • Welcome to TeX.SE. As Werner has suggested, it is always best to compose a MWE that illustrates the problem including the \documentclass and the appropriate packages. Personally, I have often solved my own problems in the process of reducing the amount of code actually required to reproduce the problem. Nov 24 '11 at 3:18
  • Thanks for the advince. Due to a little bit ouf time pressure I couldn't provide a MWE before my deadline. Sorry for that! But now lockstep solved the problem.
    – Joachim
    Nov 27 '11 at 13:01
8

Just a guess: Do you use the KOMA-Script class scrbook or scrreprt and does your document exhibit an appendix chapter? If so, a closing dot will automatically be added to the numbering of sectioning titles and float captions. To remove the dot, add \KOMAoptions{numbers=noendperiod} to your preamble.

\documentclass{scrreprt}

% \KOMAoptions{numbers=noendperiod}

\usepackage{chngcntr}
\counterwithout{figure}{chapter}

\begin{document}

\chapter{foo}

\begin{figure}
\centering
\rule{1cm}{1cm}
\caption{A figure}
\end{figure}

\appendix

\chapter{bar}

\end{document}
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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