Added new package option bibfile: allows you to link/use arbitrary bibtex files
This commit is contained in:
@@ -6,6 +6,7 @@ cleanthesis repository.
|
|||||||
=== Latest Dev ===
|
=== Latest Dev ===
|
||||||
- Created this changelog text file
|
- Created this changelog text file
|
||||||
- Fixed broken package option/parameter colorize (hrzbrg)
|
- Fixed broken package option/parameter colorize (hrzbrg)
|
||||||
|
- New package option bibfile: allows you to link/use arbitrary bibtex files
|
||||||
|
|
||||||
=== v0.2.3 ===
|
=== v0.2.3 ===
|
||||||
- Fixed line breaks for long chapter headlines (caused text overlapping)
|
- Fixed line breaks for long chapter headlines (caused text overlapping)
|
||||||
|
BIN
cleanthesis.pdf
BIN
cleanthesis.pdf
Binary file not shown.
@@ -1,7 +1,7 @@
|
|||||||
% **************************************************
|
% **************************************************
|
||||||
% Clean Thesis
|
% Clean Thesis
|
||||||
% -- A LaTeX Style for Thesis Documents --
|
% -- A LaTeX Style for Thesis Documents --
|
||||||
%
|
%
|
||||||
% Copyright (C) 2011-2014 Ricardo Langner
|
% Copyright (C) 2011-2014 Ricardo Langner
|
||||||
% **************************************************
|
% **************************************************
|
||||||
%
|
%
|
||||||
@@ -12,21 +12,21 @@
|
|||||||
% for my diplom thesis (Diplomarbeit). The style can be understood
|
% for my diplom thesis (Diplomarbeit). The style can be understood
|
||||||
% as my personal compromise - a typical clean looking scientific
|
% as my personal compromise - a typical clean looking scientific
|
||||||
% document combined and polished with minor beautifications.
|
% document combined and polished with minor beautifications.
|
||||||
%
|
%
|
||||||
% The design of this "Clean Thesis" style is inspired
|
% The design of this "Clean Thesis" style is inspired
|
||||||
% by user guide documents from Apple Inc.
|
% by user guide documents from Apple Inc.
|
||||||
%
|
%
|
||||||
% Note: If you are looking for an exact and correct style regarding
|
% Note: If you are looking for an exact and correct style regarding
|
||||||
% typographic rules, please have a look at the "Classic Thesis Style"
|
% typographic rules, please have a look at the "Classic Thesis Style"
|
||||||
% (see http://www.miede.de/index.php?page=classicthesis).
|
% (see http://www.miede.de/index.php?page=classicthesis).
|
||||||
%
|
%
|
||||||
% *** Donation = Postcard ***
|
% *** Donation = Postcard ***
|
||||||
% Based on the idea of Andr\'e Miede: If you like the "Clean Thesis"
|
% Based on the idea of Andr\'e Miede: If you like the "Clean Thesis"
|
||||||
% style I would be very pleased about a donation in the form of a
|
% style I would be very pleased about a donation in the form of a
|
||||||
% POSTCARD. You can find my address at http://cleanthesis.der-ric.de/
|
% POSTCARD. You can find my address at http://cleanthesis.der-ric.de/
|
||||||
% as well as in the file Clean-Thesis.pdf. I am going to collect all
|
% as well as in the file Clean-Thesis.pdf. I am going to collect all
|
||||||
% postcards and exhibit them at the website I mentioned.
|
% postcards and exhibit them at the website I mentioned.
|
||||||
%
|
%
|
||||||
% *** Idea and Inspiration ***
|
% *** Idea and Inspiration ***
|
||||||
% The idea of providing my customized style for thesis documents
|
% The idea of providing my customized style for thesis documents
|
||||||
% passed through my mind while writing my own thesis. Motivated and
|
% passed through my mind while writing my own thesis. Motivated and
|
||||||
@@ -35,20 +35,20 @@
|
|||||||
% (thanks to Andr\'e for doing a great job) I decided to collect all
|
% (thanks to Andr\'e for doing a great job) I decided to collect all
|
||||||
% design and style related functionality in a separate LaTeX style and
|
% design and style related functionality in a separate LaTeX style and
|
||||||
% provide this style to other thesis writers.
|
% provide this style to other thesis writers.
|
||||||
%
|
%
|
||||||
%
|
%
|
||||||
% License Information:
|
% License Information:
|
||||||
% ----------------------------------------
|
% ----------------------------------------
|
||||||
% "Clean Thesis" is free software: you can redistribute it and/or modify
|
% "Clean Thesis" is free software: you can redistribute it and/or modify
|
||||||
% it under the terms of the GNU General Public License as published by
|
% it under the terms of the GNU General Public License as published by
|
||||||
% the Free Software Foundation, either version 3 of the License, or
|
% the Free Software Foundation, either version 3 of the License, or
|
||||||
% (at your option) any later version.
|
% (at your option) any later version.
|
||||||
%
|
%
|
||||||
% "Clean Thesis" is distributed in the hope that it will be useful,
|
% "Clean Thesis" is distributed in the hope that it will be useful,
|
||||||
% but WITHOUT ANY WARRANTY; without even the implied warranty of
|
% but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
% GNU General Public License for more details.
|
% GNU General Public License for more details.
|
||||||
%
|
%
|
||||||
% You should have received a copy of the GNU General Public License
|
% You should have received a copy of the GNU General Public License
|
||||||
% along with this program. If not, see <http://www.gnu.org/licenses/>.
|
% along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
% **************************************************
|
% **************************************************
|
||||||
@@ -58,7 +58,7 @@
|
|||||||
% **************************************************
|
% **************************************************
|
||||||
% Package options
|
% Package options
|
||||||
% **************************************************
|
% **************************************************
|
||||||
%
|
%
|
||||||
% -- process all available package options
|
% -- process all available package options
|
||||||
%
|
%
|
||||||
%
|
%
|
||||||
@@ -106,6 +106,12 @@
|
|||||||
\define@choicekey*[ct]{cthesis}{bibsys}[\val\bibsysnr]{biber,bibtex}[bibtex]{\def\cthesis@bibsys{#1}}
|
\define@choicekey*[ct]{cthesis}{bibsys}[\val\bibsysnr]{biber,bibtex}[bibtex]{\def\cthesis@bibsys{#1}}
|
||||||
\setkeys[ct]{cthesis}{bibsys=bibtex}
|
\setkeys[ct]{cthesis}{bibsys=bibtex}
|
||||||
|
|
||||||
|
% OPTION bibfile
|
||||||
|
% --> values = file name of your bibtex file
|
||||||
|
\define@key[ct]{cthesis}{bibfile}[bib-refs]{\def\cthesis@bibfile{#1}}
|
||||||
|
\setkeys[ct]{cthesis}{bibfile=bib-refs}
|
||||||
|
|
||||||
|
|
||||||
\DeclareOptionX*{
|
\DeclareOptionX*{
|
||||||
\PackageWarning{cleanthesis}{Unknown option ‘\CurrentOption’}%
|
\PackageWarning{cleanthesis}{Unknown option ‘\CurrentOption’}%
|
||||||
}
|
}
|
||||||
@@ -116,7 +122,7 @@
|
|||||||
% **************************************************
|
% **************************************************
|
||||||
% Color Definitions
|
% Color Definitions
|
||||||
% **************************************************
|
% **************************************************
|
||||||
%
|
%
|
||||||
% -- defines color themes and color commands
|
% -- defines color themes and color commands
|
||||||
%
|
%
|
||||||
%
|
%
|
||||||
@@ -144,7 +150,7 @@
|
|||||||
% --> text colors
|
% --> text colors
|
||||||
\colorlet{ctcolorfloatlabel}{ctcoloraccessory}
|
\colorlet{ctcolorfloatlabel}{ctcoloraccessory}
|
||||||
\colorlet{ctcolorlistlabel}{ctcolormain}
|
\colorlet{ctcolorlistlabel}{ctcolormain}
|
||||||
|
|
||||||
\ifcase\cthesis@colorize
|
\ifcase\cthesis@colorize
|
||||||
% case = 0 (colorize == full)
|
% case = 0 (colorize == full)
|
||||||
% do nothing
|
% do nothing
|
||||||
@@ -276,7 +282,7 @@
|
|||||||
left=3.75cm, % - total body: left margin (odd pages)
|
left=3.75cm, % - total body: left margin (odd pages)
|
||||||
right=0.75cm, % - total body: right margin (odd pages)
|
right=0.75cm, % - total body: right margin (odd pages)
|
||||||
bottom=1.5cm, % - total body: bottom margin
|
bottom=1.5cm, % - total body: bottom margin
|
||||||
marginparwidth=1.75cm, % - width for side note
|
marginparwidth=1.75cm, % - width for side note
|
||||||
marginparsep=10pt, % - space between notes and body text (content)
|
marginparsep=10pt, % - space between notes and body text (content)
|
||||||
footskip=2cm, % - footer skip size
|
footskip=2cm, % - footer skip size
|
||||||
]{geometry}
|
]{geometry}
|
||||||
@@ -304,7 +310,7 @@
|
|||||||
maxcitenames=2,%
|
maxcitenames=2,%
|
||||||
mincitenames=1%
|
mincitenames=1%
|
||||||
]{biblatex}
|
]{biblatex}
|
||||||
\bibliography{bib-refs}
|
\bibliography{\cthesis@bibfile}
|
||||||
\DefineBibliographyStrings{ngerman}{%
|
\DefineBibliographyStrings{ngerman}{%
|
||||||
andothers = {{et\,al\adddot}}, % 'et al.' instead of 'u.a.'
|
andothers = {{et\,al\adddot}}, % 'et al.' instead of 'u.a.'
|
||||||
backrefpage = {{zitiert auf Seite}},%
|
backrefpage = {{zitiert auf Seite}},%
|
||||||
@@ -318,7 +324,7 @@
|
|||||||
\setlength{\parindent}{0em} % value for paragraph indentation
|
\setlength{\parindent}{0em} % value for paragraph indentation
|
||||||
\clubpenalty = 10000 % prevent single lines at the beginning of a paragraph (Schusterjungen)
|
\clubpenalty = 10000 % prevent single lines at the beginning of a paragraph (Schusterjungen)
|
||||||
\widowpenalty = 10000 % prevent single lines at the end of a paragraph (Hurenkinder)
|
\widowpenalty = 10000 % prevent single lines at the end of a paragraph (Hurenkinder)
|
||||||
\displaywidowpenalty = 10000 %
|
\displaywidowpenalty = 10000 %
|
||||||
|
|
||||||
% **************************************************
|
% **************************************************
|
||||||
% List Definitions
|
% List Definitions
|
||||||
@@ -342,7 +348,7 @@
|
|||||||
\newenvironment{ct_version_list}
|
\newenvironment{ct_version_list}
|
||||||
{\begin{itemize}[topsep=-5pt,partopsep=0pt,parsep=2pt,itemsep=3pt]}
|
{\begin{itemize}[topsep=-5pt,partopsep=0pt,parsep=2pt,itemsep=3pt]}
|
||||||
{\end{itemize}}%
|
{\end{itemize}}%
|
||||||
|
|
||||||
\newenvironment{ct_version_list_sub}
|
\newenvironment{ct_version_list_sub}
|
||||||
{\begin{itemize}[topsep=-0pt,partopsep=0pt,parsep=0pt,itemsep=0pt]}
|
{\begin{itemize}[topsep=-0pt,partopsep=0pt,parsep=0pt,itemsep=0pt]}
|
||||||
{\end{itemize}}%
|
{\end{itemize}}%
|
||||||
@@ -486,7 +492,7 @@
|
|||||||
% **************************************************
|
% **************************************************
|
||||||
% Sectioning Commands
|
% Sectioning Commands
|
||||||
% **************************************************
|
% **************************************************
|
||||||
%
|
%
|
||||||
\newcommand*{\ctSetFont}[3]{%
|
\newcommand*{\ctSetFont}[3]{%
|
||||||
arg1=#1, arg2=#2, arg3=#3%
|
arg1=#1, arg2=#2, arg3=#3%
|
||||||
}
|
}
|
||||||
@@ -521,11 +527,11 @@
|
|||||||
% **************************************************
|
% **************************************************
|
||||||
% Sectioning
|
% Sectioning
|
||||||
% **************************************************
|
% **************************************************
|
||||||
%
|
%
|
||||||
% -- modifications regarding sectioning (structural) commands,
|
% -- modifications regarding sectioning (structural) commands,
|
||||||
% i.e. \part, \chapter, \section, \subsection, \subsubsection, \paragraph
|
% i.e. \part, \chapter, \section, \subsection, \subsubsection, \paragraph
|
||||||
%
|
%
|
||||||
%
|
%
|
||||||
% The package titlesec enables us to modify (style) the sectioning commands
|
% The package titlesec enables us to modify (style) the sectioning commands
|
||||||
% -- usage: \titlespacing{\command}{left}{before-sep}{after-sep}[right-sep]
|
% -- usage: \titlespacing{\command}{left}{before-sep}{after-sep}[right-sep]
|
||||||
% -- usage: \titleformat{\command}[shape]{format}{label}{sep}{before}[after]
|
% -- usage: \titleformat{\command}[shape]{format}{label}{sep}{before}[after]
|
||||||
@@ -535,7 +541,7 @@
|
|||||||
\RequirePackage{titlesec}
|
\RequirePackage{titlesec}
|
||||||
%
|
%
|
||||||
% > formats: \part
|
% > formats: \part
|
||||||
\titleclass{\part}{top} % <-- display:
|
\titleclass{\part}{top} % <-- display:
|
||||||
\assignpagestyle{\part}{empty} % <-- no page numbers/decorations
|
\assignpagestyle{\part}{empty} % <-- no page numbers/decorations
|
||||||
\titleformat{\part}%
|
\titleformat{\part}%
|
||||||
[display]%
|
[display]%
|
||||||
@@ -629,7 +635,7 @@
|
|||||||
% **************************************************
|
% **************************************************
|
||||||
% ToC, LoF, LoT
|
% ToC, LoF, LoT
|
||||||
% **************************************************
|
% **************************************************
|
||||||
%
|
%
|
||||||
% -- modifications regarding the table of contents,
|
% -- modifications regarding the table of contents,
|
||||||
% the list of figures and the list of tables
|
% the list of figures and the list of tables
|
||||||
%
|
%
|
||||||
@@ -637,7 +643,7 @@
|
|||||||
% The tocloft package enables us to control the typographic design of the
|
% The tocloft package enables us to control the typographic design of the
|
||||||
% table of contents, list of figures and list of tables
|
% table of contents, list of figures and list of tables
|
||||||
\RequirePackage{tocloft}
|
\RequirePackage{tocloft}
|
||||||
%
|
%
|
||||||
% > adjusts the indention for figure and table entries (lof and lot)
|
% > adjusts the indention for figure and table entries (lof and lot)
|
||||||
% -- \cftsetindents{entry}{indent}{numwidth} sets the entry's indent to
|
% -- \cftsetindents{entry}{indent}{numwidth} sets the entry's indent to
|
||||||
% the length indent and its numwidth to the length numwidth
|
% the length indent and its numwidth to the length numwidth
|
||||||
@@ -670,7 +676,7 @@
|
|||||||
\end{flushright}
|
\end{flushright}
|
||||||
\end{minipage}%
|
\end{minipage}%
|
||||||
\end{flushright}
|
\end{flushright}
|
||||||
\end{minipage}%
|
\end{minipage}%
|
||||||
\bigskip
|
\bigskip
|
||||||
}
|
}
|
||||||
%
|
%
|
||||||
|
@@ -140,6 +140,11 @@ The default (still) is \texttt{bibtex}.
|
|||||||
|
|
||||||
"\texttt{Biber} [is] a BibTeX replacement for users of BibLaTeX", see \url{http://biblatex-biber.sourceforge.net/}.
|
"\texttt{Biber} [is] a BibTeX replacement for users of BibLaTeX", see \url{http://biblatex-biber.sourceforge.net/}.
|
||||||
|
|
||||||
|
\optitem[bib-refs]{bibfile}{file name of your bibtex file}
|
||||||
|
|
||||||
|
Sets the file name of the bibtex file used for the bibliography.
|
||||||
|
If this option is not used (defined), the package looks for the default bibliography \texttt{bib-refs.bib}.
|
||||||
|
|
||||||
\end{optionlist}
|
\end{optionlist}
|
||||||
|
|
||||||
\end{document}
|
\end{document}
|
||||||
|
Reference in New Issue
Block a user