Commit 4c186c0a authored by Stefan Herrnleben's avatar Stefan Herrnleben
Browse files

Remove tailing period after chapter and section numbering

implements #2
parent 6ef16128
%!TEX root = thesis.tex
%% appendix.tex
%%
%% ==============================
%\chapter{Appendix}
%\label{ch:Appendix}
%% ==============================
\appendix
\iflanguage{english}
{\addchap{Appendix}} % english style
{\addchap{Anhang}} % german style
\chapter{Appendix}
\label{ch:Appendix}
\section{First Appendix Section}
\label{Anhang-Implementierung}
......
......@@ -11,7 +11,7 @@
\NeedsTeXFormat{LaTeX2e} % We do need LaTeX2e
\ProvidesClass{thesisclass}
\LoadClass[a4paper,11pt,titlepage]{scrbook} % Class based on scrbook
\LoadClass[a4paper,11pt,titlepage,numbers=noendperiod]{scrbook} % Class based on scrbook
%Alt, war kauptt: \RequirePackage{ngerman} % New german orthography
\RequirePackage[english,ngerman]{babel}
......@@ -121,7 +121,7 @@
%% | Headings |
%% -------------------------------
\pagestyle{fancy}
\renewcommand{\chaptermark}[1]{\markboth{\thechapter.\ #1}{}}
\renewcommand{\chaptermark}[1]{\markboth{\thechapter\ #1}{}}
\fancyhf{}
\fancyhead[LE,RO]{{\headfont\thepage}} % Left/right header for even/odd pages
\fancyhead[LO]{\headfont\nouppercase{\rightmark}} % Header for left page (odd)
......@@ -200,7 +200,7 @@
{\parindent \z@ \raggedright \normalfont
\ifnum \c@secnumdepth >\m@ne
\if@mainmatter
\savebox{\chapno}{\chapterheadfont\huge\bfseries \thechapter.}
\savebox{\chapno}{\chapterheadfont\huge\bfseries \thechapter}
\settowidth{\chapnolen}{\usebox{\chapno}}
\parbox[t]{\chapnolen}{\usebox{\chapno}}\nobreak\leavevmode
\fi
......@@ -237,17 +237,4 @@
%% --- End of content directory style ---
%% ----------------------------------
%% | Style of appendix numbering |
%% ----------------------------------
\renewcommand\appendix{\par
\setcounter{section}{0}%
\setcounter{subsection}{0}%
\setcounter{figure}{0}%
\renewcommand\thesection{\Alph{section}}%
\renewcommand\thefigure{\Alph{section}.\arabic{figure}}
\renewcommand\thetable{\Alph{section}.\arabic{table}}}
%% --- End of appenix numbering style ---
%% **** END OF CLASS ****
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment