Wieland Brendel edited header.tex  almost 8 years ago

Commit id: 85acd9db5df03230daaf6475167f59fe23303f0a

deletions | additions      

       

\usepackage[utf8]{inputenc}  \usepackage{tikz}  \usepackage{multirow}  \usepackage{xcolor}  \usepackage{calc}  \usepackage{tabularx}  \def\tabularxcolumn#1{m{#1}}  \definecolor{ocre}{RGB}{165,30,45}  \definecolor{complement}{RGB}{180,160,105}  \definecolor{gray}{RGB}{50,65,75}  %----------------------------------------------------------------------------------------  % GENERAL TABLE STYLE  %----------------------------------------------------------------------------------------  \usepackage{setspace}  \usepackage{array}  \newcolumntype{C}[1]{>{\centering\let\newline\\\onlyPDF{\arraybackslash}\hspace{0pt}}m{#1}}  %----------------------------------------------------------------------------------------  % TIMELINE FIGURE  %----------------------------------------------------------------------------------------  % length \usepackage{fullpage}  \usepackage[table,dvipsnames]{xcolor}  \usepackage{xspace}  \usepackage{listings}  \usepackage{pifont}  \lstset{ %  backgroundcolor=\color{white}, % choose the background color  basicstyle=\footnotesize, % size  of columns  \newlength{\tasklength}  \newlength{\personlength}  \newlength{\yearlength}  \setlength{\tasklength}{5cm}%  \setlength{\personlength}{2.5cm}%  \setlength{\yearlength}{(\textwidth-\tasklength-\personlength) / 4}%  % define single rows programmatically  \newcommand\timelinerow[4]{%  \gdef\task{#1}%  \gdef\person{#2}%  \gdef\beginning{#3}%  \gdef\ending{#4}%  \timelinerowcond% fonts used for the code  breaklines=true, % automatic line breaking only at whitespace  captionpos=b, % sets the caption-position to bottom  commentstyle=\color{OliveGreen}, % comment style  keywordstyle=\color{BlueViolet}, % keyword style  stringstyle=\color{black}, % string literal style  language=[AlLaTeX]TeX, % Set your language (you can change the language for each code-block optionally)  frame=lrtb, %  xleftmargin=\fboxsep, %  xrightmargin=-\fboxsep, %  moretexcs={lstset,color,colorlet, cellcolor, newcolumntype, columncolor, rowcolor, multirow, xspace, LaTeX, TeX},  }  \def\authorea{\href{http://en.wikipedia.org/wiki/Authorea}{Authorea}\xspace}  \def\latexml{\href{https://en.wikipedia.org/wiki/LaTeXML}{LaTeXML}\xspace}  \def\latex{\href{https://en.wikipedia.org/wiki/LaTeX}{\LaTeX}\xspace}  \usepackage{latexml,lxRDFa}  \def\onlyHTML#1{\iflatexml #1\fi}  \def\onlyPDF#1{\iflatexml\else #1\fi}  \newcommand\timelinerowcond{%  \task & \person &   \onlyPDF{\begin{tikzpicture}[baseline=0.1]  \draw[white] (0,0) -- (4 * \yearlength,0);  \draw[ocre, ultra thick] (\beginning * \yearlength,0.25) -- (\ending * \yearlength,0.25);  \end{tikzpicture} & & & &}\onlyHTML{{\color{red}export} & as PDF & % style  \usepackage[T1]{fontenc}  \renewcommand*\familydefault{\sfdefault} %% Only if the base font of the document is  to see & graph } \tabularnewline  } be sans serif  % paragraph  \setlength{\parindent}{0em}  \setlength{\parskip}{0.5em}  \renewcommand{\baselinestretch}{1.0}  % borders  \usepackage[left=4cm, right=2.5cm,   top=1.5cm, bottom=1.5cm,   includeheadfoot, asymmetric,  headheight=1cm, headsep=5mm,  twoside]{geometry}  % spacing around headers  \onlyPDF{\usepackage{titlesec}}  \onlyPDF{\titlespacing\section{0pt}{12pt plus 4pt minus 2pt}{0pt plus 2pt minus 2pt}}  \onlyPDF{\titlespacing\subsection{0pt}{12pt plus 4pt minus 2pt}{0pt plus 2pt minus 2pt}}  \onlyPDF{\titlespacing\subsubsection{0pt}{12pt plus 4pt minus 2pt}{0pt plus 2pt minus 2pt}}  %%% TABLE FORMAT  \usepackage{tabularx}  \def\tabularxcolumn#1{m{#1}}  \usepackage{hhline}  % Define some custom colors  \colorlet{FreshGray}{gray!20!white}  \colorlet{FreshGreen}{green!20!white}  % Define shorthand macros for coloring individual cells  \def\no{\cellcolor{FreshGray}}  \def\task{\cellcolor{FreshGreen}}  \def\nocell{\cellcolor{FreshGray}}  % A new column type, adding a FreshGray background to the centered type  \newcolumntype{g}{>{\columncolor{FreshGray}}c}  \newcolumntype{G}{>{\columncolor{FreshGray}}X}  \newcolumntype{C}[1]{>{\centering\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}  \newcommand{\cellbox}[2][c]{%  \begin{tabular}[#1]{@{}l@{}}#2\end{tabular}}  % header and footer  \pagestyle{empty}  \usepackage{fancyhdr}  \usepackage{rotating}  \makeatletter  \def\title#1{\gdef\@title{#1}\gdef\THETITLE{#1}}  \makeatother  \pagestyle{fancy}  \fancyhead[RO,LE]{\THETITLE}  \fancyhead[RE,LO]{}  \fancyfoot[RO,LE]{\thepage}  \fancyfoot[C]{}  % repeat (got lost on the way...)  \setlength{\parindent}{0pt}    % redefine maketitle to avoid title + authors  \makeatletter  \usepackage{natbib}  \bibliographystyle{plain}  \def\maketitle{%  \par}  % define header and footer of table  \def\starttimeline{%  \begin{spacing}{0.8}  \begingroup\setlength{\tabcolsep}{0em}  \begin{tabular}[t]{p{\tasklength}p{\personlength}C{\yearlength}C{\yearlength}C{\yearlength}C{\yearlength}C{0cm}}  \textbf{Task} & \textbf{Person} & \textbf{2016} & \textbf{2017} & \textbf{2018} & \textbf{2019} & \\[0.3cm]  \hline \onlyPDF{\rule{-3pt}{2\normalbaselineskip}}  \begingroup\small\begingroup  }  \def\endtimeline{\endgroup\endgroup\end{tabular}\endgroup\end{spacing}\vspace{0.5cm}} \makeatother