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

Binary file not shown.

View File

@@ -205,6 +205,10 @@ Sets whether to use an \texttt{alphabetic}, a \texttt{numeric}, or an \texttt{au
For further information please check out the biblatex documentation\footnote{\url{http://www.ctan.org/pkg/biblatex}}. For further information please check out the biblatex documentation\footnote{\url{http://www.ctan.org/pkg/biblatex}}.
The default is \texttt{alphabetic}. The default is \texttt{alphabetic}.
\boolitem[false]{wrapfooter}
Sets whether to wrap the name of a chapter in the footer or not.
\end{optionlist} \end{optionlist}
\end{document} \end{document}

View File

@@ -1,4 +1,4 @@
% !TEX root = thesis-example.tex % !TEX root = my-thesis.tex
% ************************************************** % **************************************************
@@ -58,6 +58,7 @@
bibsys=bibtex,% bibsys=bibtex,%
bibfile=bib-refs,% bibfile=bib-refs,%
bibstyle=alphabetic,% bibstyle=alphabetic,%
wrapfooter=false,%
}{cleanthesis} }{cleanthesis}
\usepackage{cleanthesis} \usepackage{cleanthesis}

Binary file not shown.