Introduction
LaTeX is much like the R statistical package: it forces you to load the parts of the program you will need. In contrast, most word processors load these options straight away in a standard installation - yet you may have noticed that you need to install language packs separately, for example. In LaTeX, you need to load all of it. Brilliant.
There is a good reason for this bad behaviour. It's not necessarily speed, because that doesn't seem to be a restricting factor anymore. It's rather the extensibility of the program, as well as the problems that go with it: sometimes one package conflicts with another, so we can't have both. I still think it's a serious design flaw, but it's not going to change anytime soon, I guess. So here's how to (learn to) live with it.
Packages
This is the list of packages I use in my most complex document.
Lay-out
- Framed: provides the commans -shaded-, -snugshade- and -leftbar-. I use snugshade for background-filled boxes. You need to define the 'shadecolor' with the color-package.
- Color: define the colours you will use when loading this package
http://www.slideshare.net/linjaaho/how-to-make-boxed-text-with-latex
http://en.wikibooks.org/wiki/LaTeX/Colors
Fonts
- Inputenc: allows French characters with option utf8
- Fontenc: I don't know what it does but I set the option to T1. I believe it matters for BibLaTeX
- Csquotes: use option autostyle=try. This interpretes quotes, so you don't need LaTeX code to use them.
% styles: http://www.emerson.emory.edu/services/latex/latex_168.html#SEC168D
% Option clash
Tables and figures
- Graphicx
- Caption
- Tabularx
- Booktabs
- Array - permits justification options and fixed column width
- Pgfplots: this load the TikZ language
In the preamble, specify \graphicspath{{/Users/macuser/folder/}} or anything similar on Windows so LaTeX knows where you put your graphics. I honestly love this orderly behaviour.
Bibliography
I have written a separate post on BibLaTeX. It's a pain in the X$$.
%http://texblog.org/2007/11/14/hyper-links-to-the-pdfs/
% ISSUE !!! Several capital letters in a row.
% http://forums.zotero.org/discussion/19721/bibtex-export-for-corporate-authors-single-name-only/
% http://tex.stackexchange.com/questions/69594/biber-fails-at-supporting-in-author-names
% Info BibLaTeX http://tex.stackexchange.com/questions/5091/what-to-do-to-switch-to-biblatex
%\usepackage[dutch]{babel}
\usepackage[american]{babel}
%\selectlanguage{dutch}
\selectlanguage{american}
\usepackage[style=apa, backend=biber, url=false, doi=false]{biblatex}
% , natbib=true
% , style=apa/authoryear/verbose/numeric(default)/alphabetic/authortitle
% \usepackage[safeinputenc]{biblatex}
\DeclareLanguageMapping{american}{american-apa} % for apa
% \DeclareLanguageMapping{dutch}{dutch-apa} % for apa
%\addbibresource{/Users/name/Dropbox/KeepCloud/zoterobibtex.bib} % MAC
\addbibresource{C:/Users/name/Dropbox/KeepCloud/zoterobibtex.bib} % PC
% zotero biblatex exporter misses out on dates
% problem with zotero bib files: too many brackets
% solution: biber.conf in working folder or anjo biblatex translator / robintan bibtex translator
%\usepackage[backend=biber, style=authoryear-icomp, sortlocale=nl_NL, natbib=true, url=false,
% doi=true, eprint=false]{biblatex}
% http://tex.stackexchange.com/questions/54833/biblatex-apa-biber
%%% Language %%%
% http://www.kronto.org/thesis/tips/multiple-languages.html
Math
- Amsmath: it's more or less mandatory
- Amsfonts
- Amssymb
- Xfrac: provides slant frac / through \sfrac{}
User modifcations
There are a lot of tweaks you may way to do to make your work look good. In doing so, you change the LaTeX wonderful defaults, so you may have used Word after all. But once you got that far, you're probably to tired to start over and you'll fuck up LaTeX till you get results without visible collateral damage.
%\usepackage[all]{nowidow}
%\clubpenalty=9996
%\widowpenalty=9999
%\usepackage[hmargin=3cm,vmargin=3.5cm]{geometry}
%\newcommand{\myparagraph}[1]{\paragraph{#1}\mbox{}\\}
%http://hapticity.net/2007/03/23/latex-itemize-bullet-characters/
\def\labelitemi{--}
%\usepackage{needspace}
%\needspace{8\baselineskip}
%$\newcommand{\E}{\mathrm{E}}$
\newcommand{\E}{\mathbb E}
\newcommand{\Var}{\mathrm{Var}}
\newcommand{\Cov}{\mathrm{Cov}}
\synctex=1
Meta-info
\author{name}
\title{title}
\date{date}