settings.tex 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. %%% settings.tex ---
  2. %%
  3. %% Filename: settings.tex
  4. %% Description:
  5. %% Author: Ola Leifler
  6. %% Maintainer:
  7. %% Created: Tue Oct 19 21:11:31 2010 (CEST)
  8. %% Version: $Id$
  9. %% Version:
  10. %% Last-Updated: Tue Apr 25 08:49:48 2017 (+0200)
  11. %% By: Ola Leifler
  12. %% Update #: 43
  13. %% URL:
  14. %% Keywords:
  15. %% Compatibility:
  16. %%
  17. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  18. %%
  19. %%% Commentary:
  20. %%
  21. %%
  22. %%
  23. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  24. %%
  25. %%% Change log:
  26. %%
  27. %%
  28. %% RCS $Log$
  29. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  30. %%
  31. %%% Code:
  32. \usepackage[backend=biber,hyperref]{biblatex}
  33. %% To set the font of your thesis, use the \setmainfont{} command,
  34. %% surrounded with \ifxetex if you want to switch between xelatex and pdflatex
  35. \ifxetex
  36. %\setmainfont [Scale=1]{Georgia}
  37. \fi
  38. %%%%%%%%%%%%
  39. %% The VZ43 chapter style, from Memoir contributed chapter styles: ftp://ftp.tex.ac.uk/ctan%3A/info/MemoirChapStyles/MemoirChapStyles.pdf
  40. %%%%%%%%%%%
  41. \usepackage{calc,color}
  42. \newif\ifNoChapNumber
  43. \newcommand\Vlines{%
  44. \def\VL{\rule[-2cm]{1pt}{5cm}\hspace{1mm}\relax}
  45. \VL\VL\VL\VL\VL\VL\VL}
  46. \makeatletter
  47. \setlength\midchapskip{0pt}
  48. \makechapterstyle{VZ43}{
  49. \renewcommand\chapternamenum{}
  50. \renewcommand\printchaptername{}
  51. \renewcommand\printchapternum{}
  52. \renewcommand\chapnumfont{\Huge\bfseries\centering}
  53. \renewcommand\chaptitlefont{\Huge\bfseries\raggedright}
  54. \renewcommand\printchaptertitle[1]{%
  55. \Vlines\hspace*{-2em}%
  56. \begin{tabular}{@{}p{1cm} p{\textwidth-3cm}}%
  57. \ifNoChapNumber\relax\else%
  58. \colorbox{black}{\color{white}%
  59. \makebox[.8cm]{\chapnumfont\strut \thechapter}}
  60. \fi
  61. & \chaptitlefont ##1
  62. \end{tabular}
  63. \NoChapNumberfalse
  64. }
  65. \renewcommand\printchapternonum{\NoChapNumbertrue}
  66. }
  67. \makeatother
  68. %% To set bibliography options, refer to the biblatex manual and use
  69. %% the ExecuteBibliographyOptions command below to set your options
  70. \ExecuteBibliographyOptions{maxnames=99}
  71. %% Change this to your appropriate BibTeX reference file (.bib)
  72. \addbibresource{references.bib}
  73. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  74. %%% settings.tex ends here
  75. %%% Local Variables:
  76. %%% mode: latex
  77. %%% TeX-master: "demothesis"
  78. %%% End: