Skip to content

Instantly share code, notes, and snippets.

@vichango
Last active September 9, 2017 20:49
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save vichango/6000693 to your computer and use it in GitHub Desktop.
Save vichango/6000693 to your computer and use it in GitHub Desktop.
Scrivener LaTeX Compile options
\usepackage{authblk}
\title{\mytitle}
\author[*]{\myauthor}
\affil[*]{\affiliation}
% To remove the date
\date{}
\begin{document}
\maketitle
\tableofcontents
\documentclass[a4paper, 12pt]{report}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{verbatim}
\usepackage{amsmath}
\usepackage{graphicx}
\graphicspath{{images/}}
% Controls the percentage of text/float (fig & tables) per page
% \setcounter{topnumber}{2}
% \setcounter{bottomnumber}{2}
\setcounter{totalnumber}{4}
% \renewcommand{\topfraction}{0.85}
% \renewcommand{\bottomfraction}{0.85}
\renewcommand{\textfraction}{0.15}
\renewcommand{\floatpagefraction}{0.7}
% Enables subsubsections numbering and in TOC
\setcounter{secnumdepth}{3}
\setcounter{tocdepth}{3}
% Adds a TODO list
\usepackage{todo}
\renewcommand{\todoname}{TODO List}
% Mark changes in between drafts
\usepackage{changebar}
% Necessary for the \citep command
\usepackage[square, comma]{natbib}
% Necessary to compile MMD tables
\usepackage{tabulary}
\usepackage{booktabs}
% Necessary for the \autoref to work!
\usepackage[pdfborder={0 1 1 [0]}, colorlinks=true]{hyperref}
% Change the \autoref section labels
\addto\extrasenglish{%
\def\subsectionautorefname{section}%
\def\subsubsectionautorefname{section}%
}
% New command for concepts verbatim formatting
\newcommand{\concept}[1]{{\small\texttt{#1}}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment