\documentclass[12pt, a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[english]{babel} \usepackage{csquotes} \usepackage{listings} \usepackage{url} \usepackage{graphicx} \usepackage{float} \usepackage{xr} \title{let's have fun} \author{somebody} \begin{document} \maketitle \tableofcontents text \end{document}
Notes.
geometry
package is assumed, the a4paper
option is passed to it.cquotes
package goes together with the babel
package.Use Biblatex and Biber instead of Bibtex,
\usepackage[backend=biber]{biblatex}
In combination with footcite replacement (see below),
\usepackage[style=verbose-trad1,dashed=false,backend=biber,autolang=other]{biblatex}
Define your bib files using addbibresource
,
\addbibresource{latex}
Notes.
.bib
file extention is optional on e.g. here latex.bib
.babel=other
is depreceted. Use autloang=
instead.After that, eventually switch to footnodes instead of end of document references,
\let\cite=\footcite
Or simply print the bibliography at the end,
\printbibliography
The last defined language becomes the default (here french),
\usepackage[english,ngerman,frenchb]{babel}
Add this below the biblatex
package definition,
\renewcommand*{\mkbibnamelast}{\textsc}
Other Biblatex enhancements,
\DeclareNameAlias{sortname}{first-last} \renewcommand{\newunitpunct}{\addcomma\space} \renewcommand{\mkibid}{\emph}
Eventually rename the bibloography section header,
\addto\captionsfrenchb{\renewcommand\refname{Enquête et bibliographie}}
Built-in quoting feature: \quote{}
and \quotation{}
.
With \usepackage{csquotes}
(that goes with babel
) you can use \begin{displayquote}
or \enquote{quote here}
.
With \usepackage{dirtytalk}
you can use \say{quote here}
.
Refs.
Compile the shit,
latex latex biber latex latex latex #eventually twice, latex latex
vi preamble.tex \usepackage{xcolor} \usepackage{listings} \lstset{ basicstyle=\ttfamily, numbers=left, keywordstyle=\color[rgb]{0.13,0.29,0.53}\bfseries, stringstyle=\color[rgb]{0.31,0.60,0.02}, commentstyle=\color[rgb]{0.56,0.35,0.01}\itshape, numberstyle=\footnotesize, stepnumber=0, numbersep=5pt, backgroundcolor=\color[RGB]{248,248,248}, showspaces=false, showstringspaces=false, showtabs=false, tabsize=2, captionpos=b, breaklines=true, breakatwhitespace=true, breakautoindent=true, escapeinside={\%*}{*)}, linewidth=\textwidth, basewidth=0.5em, }
and you need to add either the listings
package manually in the preamble or with --listings
TODO
http://milq.github.io/install-latex-ubuntu-debian/
http://shelah.logic.at/eindex.html
Pandoc: code blocks in MarkDown with very long lines get cut off when outputting to PDF https://tex.stackexchange.com/questions/323329/pandoc-code-blocks-in-markdown-with-very-long-lines-get-cut-off-when-outputting
fvextra – Extensions and patches for fancyvrb https://tex.stackexchange.com/questions/179926/pandoc-markdown-to-pdf-without-cutting-off-code-block-lines-that-are-too-long/412316#412316 https://ctan.org/pkg/fvextra