Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Descartes Research
Templates
Thesis
Commits
4c186c0a
Commit
4c186c0a
authored
Oct 19, 2022
by
Stefan Herrnleben
Browse files
Remove tailing period after chapter and section numbering
implements
#2
parent
6ef16128
Changes
2
Hide whitespace changes
Inline
Side-by-side
appendix.tex
View file @
4c186c0a
%!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
}
...
...
thesisclass.cls
View file @
4c186c0a
...
...
@@ -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 ****
Stefan Herrnleben
@sth43ru
mentioned in issue
#2 (closed)
·
Oct 19, 2022
mentioned in issue
#2 (closed)
mentioned in issue #2
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment