Advertisement
Guest User

Untitled

a guest
Jan 16th, 2021
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Latex 2.45 KB | None | 0 0
  1. %vim: set filetype=tex
  2. \NeedsTeXFormat{LaTeX2e}
  3. \ProvidesClass{factiontemplate}[2020/12/25]
  4.  
  5. \LoadClass[14pt]{extarticle}
  6.  
  7. \RequirePackage[landscape,left=1cm,right=1cm,bottom=1cm,headsep=1cm,headheight=20pt]{geometry}
  8. \RequirePackage[T1]{fontenc}
  9. \RequirePackage{fontspec}
  10. % This needs to be installed on the system to actually work
  11. % Due to this package (fontspec) the file has to be compiled by either lualatex or xelatex
  12. \setsansfont{OPTICopperplate-Heavy}
  13. \RequirePackage[utf8]{inputenc}
  14. \RequirePackage{xcolor}
  15. \RequirePackage[nostruts]{titlesec}
  16. \RequirePackage{tikz}
  17. \RequirePackage{tikzpagenodes}
  18. \RequirePackage{enumitem}
  19. \RequirePackage{etoolbox}
  20. \RequirePackage{fancyhdr}
  21. \RequirePackage{graphicx}
  22. \RequirePackage{microtype}
  23. \RequirePackage[colaction]{multicol}
  24. \RequirePackage{changepage}
  25.  
  26. \RequirePackage{caladea}
  27.  
  28. \pagestyle{fancy}
  29. \fancyhf{}
  30.  
  31. \fancyhead[C]{%
  32. \begin{tikzpicture}[remember picture, overlay]
  33.   \filldraw[fill=FT@maincolor, draw=FT@maincolor!80]
  34.   ([yshift=1.5cm,xshift=1cm]current page text area.north west) rectangle
  35.   ([yshift=0.4cm]current page text area.north east);
  36. %
  37.   \node at ([yshift=-1.65cm]current page.north)
  38.   {\color{white}\bfseries\LARGE\MakeUppercase{\textsf{\FT@name}}};
  39.  \node at ([xshift=1.5cm]current page text area.north west)
  40.  {\includegraphics[width=4cm]{\FT@logo}};
  41. \end{tikzpicture}
  42. }
  43. \renewcommand{\headrulewidth}{0pt}
  44.  
  45. \setlength{\columnsep}{2cm}
  46.  
  47. \newcommand{\FT@name}{CHANGE ME}
  48. \newcommand{\FT@logo}{example-image}
  49.  
  50. \newcommand{\setcolor}[1]{\colorlet{FT@maincolor}{#1}}
  51. \newcommand{\name}[1]{\renewcommand{\FT@name}{#1}}
  52. \newcommand{\logo}[1]{\renewcommand{\FT@logo}{#1}}
  53.  
  54. \titleformat{\section}
  55. [display]
  56. {\centering\Large\bfseries}
  57. {}
  58. {1cm}
  59. {
  60. \begin{tikzpicture}[remember picture, overlay]
  61.  \node (O) at (0,-0.3){};
  62.  \node (O1) at (0,0.6){};
  63.   % We need to change the shift based on which column we are in
  64.   \docolaction{
  65.    \filldraw[fill=FT@maincolor,draw=FT@maincolor!80]
  66.      ([xshift=0cm]current page text area.west |- O) rectangle
  67.      ([xshift=-1cm]current page text area.north |- O1);
  68.  }{}{
  69.    \filldraw[fill=FT@maincolor,draw=FT@maincolor!80]
  70.      ([xshift=14cm]current page text area.west |- O) rectangle
  71.      ([xshift=13cm]current page text area.north |- O1);
  72.  }
  73. \end{tikzpicture}
  74. \color{white}
  75. }
  76. []
  77. \newenvironment{advantages}[1]{%
  78. \section*{\small\MakeUppercase{\textsf{#1}}}
  79. \begin{description}[leftmargin=0pt]
  80. }
  81. {\end{description}}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement