moderncvstylebanking.sty 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. %% start of file `moderncvstylebanking.sty'.
  2. %% Copyright 2006-2015 Xavier Danaux (xdanaux@gmail.com).
  3. %
  4. % This work may be distributed and/or modified under the
  5. % conditions of the LaTeX Project Public License version 1.3c,
  6. % available at http://www.latex-project.org/lppl/.
  7. %-------------------------------------------------------------------------------
  8. % identification
  9. %-------------------------------------------------------------------------------
  10. \NeedsTeXFormat{LaTeX2e}
  11. \ProvidesPackage{moderncvstylebanking}[2015/07/28 v2.0.0 modern curriculum vitae and letter style scheme: banking]
  12. % body rules type options: "fullrules", "shortrules", "mixedrules" (default) or "norules"
  13. \@initializecommand{\moderncvstylebodyoptions}{}
  14. \DeclareOption{fullrules} {\edef\moderncvstylebodyoptions{\moderncvstylebodyoptions,fullrules}}
  15. \DeclareOption{shortrules} {\edef\moderncvstylebodyoptions{\moderncvstylebodyoptions,shortrules}}
  16. \DeclareOption{mixedrules} {\edef\moderncvstylebodyoptions{\moderncvstylebodyoptions,mixedrules}}
  17. \DeclareOption{norules} {\edef\moderncvstylebodyoptions{\moderncvstylebodyoptions,norules}}
  18. % body section alignment options: "left" (default), "center" or "right"
  19. \DeclareOption{left} {\edef\moderncvstylebodyoptions{\moderncvstylebodyoptions,left}}
  20. \DeclareOption{center} {\edef\moderncvstylebodyoptions{\moderncvstylebodyoptions,center}}
  21. \DeclareOption{right} {\edef\moderncvstylebodyoptions{\moderncvstylebodyoptions,right}}
  22. \DeclareOption*{}% avoid choking on unknown options
  23. \ExecuteOptions{mixedrules,left}
  24. \ProcessOptions*\relax% \ProcessOptions* processes the options in the order provided (i.e., with the later ones possibly overriding the former ones), while \ProcessOptions processes them in the order of the package
  25. %-------------------------------------------------------------------------------
  26. % fonts & icons
  27. %-------------------------------------------------------------------------------
  28. % TeX Gyre Pagella font
  29. %\ifxetexorluatex
  30. % \setmainfont{Tex-Gyre Pagella}
  31. % \setsansfont{Tex-Gyre Pagella}
  32. % \setmathfont{Tex-Gyre Pagella}
  33. % \setmathfont[range=\mathit,\mathsfit]{Tex-Gyre Pagella Italic}
  34. % \setmathfont[range=\mathbfup,\mathbfsfup]{Tex-Gyre Pagella Bold}
  35. % \setmathfont[range=\mathbfit,\mathbfsfit]{Tex-Gyre Pagella Bold Italic}
  36. %\else
  37. \IfFileExists{tgpagella.sty}%
  38. {%
  39. \RequirePackage{tgpagella}%
  40. \renewcommand*{\familydefault}{\rmdefault}}%
  41. {}
  42. %\fi
  43. % symbols
  44. \moderncvicons{awesome}
  45. %-------------------------------------------------------------------------------
  46. % header, body & footer
  47. %-------------------------------------------------------------------------------
  48. \moderncvhead{3}
  49. \moderncvbody[\moderncvstylebodyoptions]{3}
  50. \endinput
  51. %% end of file `moderncvstylebanking.sty'.