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'm using the documentclass scrbook. When starting the appendix it will give me something like:

A. Some chapter
A.1. Some section
A.2. Some section
A.2.1. Some subsection

The figures will be like A.1, A.2, etc.

I'm looking for a way to remove the Chapter-Counter from the (sub)section-titles in order to get:

A. Some chapter
1. Some section
2. Some section
2.1. Some subsection

While the figures should still be A.1, A.2, etc.

Is this possible?

share|improve this question
    
the answer by @cmhughes will nicely do what you ask, but a warning: if you want to \ref them elsewhere, the useful/necessary context won't be there. –  barbara beeton Jun 16 '13 at 16:05
    
Thanks for pointing this out, but my appendices will be independent from the rest of the document. Everything can be understood without reading anything there. It is intended for these who are not familiar with some aspects of mathematics or physics and therefore I will never \ref anything directly. Nevertheless this is a good point for those who want something like this on other intentions. –  DL6ER Jun 16 '13 at 16:40
add comment

1 Answer

up vote 2 down vote accepted

If you add the line

\renewcommand{\thesection}{\arabic{section}}

immediately after \appendix then you get the output you want.

screenshot

Here's a complete MWE

% arara: pdflatex
\documentclass{scrbook}

\begin{document}

\appendix
\renewcommand{\thesection}{\arabic{section}}
\chapter{first chapter}
\section{section}
\section{section}
\section{section}
\section{section}
\subsection{subsection}
\subsection{subsection}
\subsection{subsection}
\end{document}
share|improve this answer
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.