Skip to content

Instantly share code, notes, and snippets.

@zuxfoucault
Last active October 13, 2016 12:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zuxfoucault/2461e3561013334f3a663f6c20003222 to your computer and use it in GitHub Desktop.
Save zuxfoucault/2461e3561013334f3a663f6c20003222 to your computer and use it in GitHub Desktop.
Latex costom template
<+ +> !comp! !exe!
% !TEX TS-program = pdflatexmk
\documentclass[paper=a4,fontsize=14pt]{scrreprt}
\usepackage[american]{babel}
\usepackage{csquotes}
\usepackage[sorting=nyt,style=apa,backend=biber]{biblatex}
\DeclareLanguageMapping{american}{american-apa}
%\addbibresource{~/bibtexData/MEG.bib}
% default: pdfLaTeX
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage[utf8]{inputenc}
\usepackage[babel=true]{microtype}
\usepackage[top=1cm, bottom=1.2cm, left=1cm, right=1cm]{geometry}
%: set margins
\usepackage{setspace} %line spacing
\linespread{1.5}
\usepackage[usenames,dvipsnames]{xcolor}
\definecolor{soBrBlack}{RGB}{0,43,54}
\definecolor{soBrWhite}{RGB}{253,246,227}
\definecolor{soWhite}{RGB}{238 232 213}
\definecolor{soBrCyan}{RGB}{147 161 161}
\definecolor{soYellow}{RGB}{181,137,0}
\pagecolor{soBrBlack}
\usepackage{framed}
\definecolor{shadecolor}{rgb}{1,0.8,0.3}
\definecolor{shadecolor}{RGB}{150,75,22}
\usepackage{tikz}
\usetikzlibrary{mindmap,trees,arrows, decorations.markings,positioning}
\usetikzlibrary{backgrounds, fit, decorations.pathmorphing}
% for double arrows a la chef
% adapt line thickness and line width, if needed
\tikzstyle{vecArrow} = [thick, decoration={markings,mark=at position
1 with {\arrow[semithick]{open triangle 60}}},
double distance=1.4pt, shorten >= 5.5pt,
preaction = {decorate},
postaction = {draw,line width=1.4pt, white,shorten >= 4.5pt}]
\tikzstyle{innerWhite} = [semithick, white,line width=1.4pt, shorten >= 4.5pt]
\usepackage[breaklinks]{hyperref}
\usepackage[normalem]{ulem}
\usepackage{fancyhdr}
\fancypagestyle{Aplain}{%
\fancyhf{} % clear all header and footer fields
\fancyfoot[C]{\textcolor{soBrCyan} \thepage} % except the center
\renewcommand{\headrulewidth}{0pt}% .4pt header rule
\renewcommand{\footrulewidth}{0pt}% No footer rule
}
% set indent
\newlength\tindent
\setlength{\tindent}{\parindent plus 1em}
%\setlength{\parindent}{0pt}
\renewcommand{\indent}{\hspace*{\tindent}}
%: colitem
\newcommand{\colitem}{\item[\color{soWhite} resp.]}
%: for tabular line
\usepackage{arydshln}
%: ref
\color{soYellow}
\setcounter{secnumdepth}{5} % about document structure
\setcounter{tocdepth}{5}
\usepackage[ampersand]{easylist}
\usepackage{textpos}
\setlength{\TPHorizModule}{30mm}
\setlength{\TPVertModule}{\TPHorizModule}
\setlength{\parindent}{0cm}
\renewcommand*{\chapterheadstartvskip}{\vspace*{-\topskip}}
\renewcommand{\chapterheadstartvskip}{\vspace *{-\baselineskip }}
\usepackage{titlesec}
\titlespacing*{\section}{0pt}{1ex plus 1ex minus .2ex}{1ex plus .2ex}
%: 1. begin document
\begin{document}
\pagestyle{Aplain} % correspond to "\fancypagestyle{Aplain}{%"
\color{soYellow}
\renewcommand\footnoterule{\color{soWhite} \kern-3pt \hrule width 0.4\columnwidth \kern 2.6pt}
\begin{spacing}{1}
\section{<++>}
\end{spacing}
<++>
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment