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 amsthm for theorems, propositions, and so on. But I altered the section numbering style so that it's '§1 First Section', hence my theorems are numbered (since I base them on sections) 'Proposition §1.1' or similar. How can I change this behaviour to just the numbers without '§', but also without having to change my sectioning style again?

\documentclass[a4paper,10pt]{scrreprt}
\usepackage{amsmath,amsthm}

\addtokomafont{sectioning}{\rmfamily}
\renewcommand{\thesection}{\S\arabic{section}}

\newtheorem{prop}{Proposition}[section]

\begin{document}
\chapter{Prerequisites}
\section{First Section}
\begin{prop}
Blub
\end{prop}
\end{document}

Thank you very much in advance!

share|improve this question
add comment

2 Answers

up vote 2 down vote accepted

You could use

\renewcommand{\theprop}{\arabic{section}.\arabic{prop}}
share|improve this answer
    
Hello @cmhughes, and thank you for your answer. I can't test it right now, but I'll do it first thing tomorrow. One question: Is \theprop something that will be defined by amsthm automatically once I define \newtheorem{prop}{Proposition}[section] (i.e., there are similar \the... commands for my other theorem environments as well)? –  InvisiblePanda Jul 13 '12 at 21:34
    
@Randal'Thor yep :) –  cmhughes Jul 13 '12 at 21:44
add comment

Use this:

\documentclass[a4paper,10pt]{scrreprt}
\usepackage{amsmath,amsthm}
\makeatletter 
‎\renewcommand\@seccntformat[1]{\S‎ 
{\csname ‎the#1\endcsname}‎} 
\makeatother ‎‎‎
\addtokomafont{sectioning}{\rmfamily}
\newtheorem{prop}{Proposition}[section]
\begin{document}
\chapter{Prerequisites}
\section{First Section}
\begin{prop}
Blub
\end{prop}
‎\end{document}‎‎
share|improve this answer
    
This would add "§" also to subsections (if numbered). –  egreg Jul 13 '12 at 21:36
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.