Added new package option wrapfooter to allow very long chapter names to wrap (multilines).

This commit is contained in:
Ricardo Langner
2015-10-05 01:13:21 +02:00
parent 0acc638525
commit b87146a4af
5 changed files with 15 additions and 2 deletions

View File

@@ -92,6 +92,10 @@
\define@choicekey*[ct]{cthesis}{bibstyle}[\val\bibstylenr]{alphabetic,numeric,authoryear}[alphabetic]{\def\cthesis@bibstyle{#1}}
\setkeys[ct]{cthesis}{bibstyle=alphabetic}
% OPTION wrapfooter
% --> values = true|false
\define@boolkey[ct]{cthesis}{wrapfooter}[false]{}
\setkeys[ct]{cthesis}{wrapfooter=false}
\DeclareOptionX*{
\PackageWarning{cleanthesis}{Unknown option \CurrentOption}%
@@ -361,7 +365,11 @@
\footnotesize%
{\color{ctcolorfootermark}\textbf{\chaptername\ \thechapter}}%
\quad%
{\color{ctcolorfootertitle}#1}%
\ifct@cthesis@wrapfooter%
{\color{ctcolorfootertitle}\parbox[t]{.7\textwidth}{#1}}%
\else%
{\color{ctcolorfootertitle}#1}%
\fi%
}{}%
}
\renewcommand{\sectionmark}[1]{%