Skip to content

Instantly share code, notes, and snippets.

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[french]{babel}
\usepackage[style=authoryear]{biblatex}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@phdthesis{normalthesis,
author = {Author Normal},
@moewew
moewew / mapy-compat.tex
Last active April 27, 2018 08:22
https://tex.stackexchange.com/q/426644/35864 - version without biblatex-ext, should be compatible with biblatex < 3.3
\documentclass[british]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{mathpazo}
\usepackage{babel}
\usepackage[autostyle=true]{csquotes}
\usepackage[backend=biber, style=authoryear,
firstinits=true, uniquename=init, maxbibnames=999, maxcitenames=3,
doi=false, isbn=false, url=false,
@moewew
moewew / test.tex
Created April 30, 2018 12:20
https://tex.stackexchange.com/q/429297/35864 - ONLY RUN THIS IN AN EMPTY FOLDER - FILES WILL BE OVERWRITTEN WITHOUT PREVIOUS WARNING
\documentclass[british]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage{csquotes}
\usepackage{filecontents}
\begin{filecontents}{custom-abbrv.bbx}
\ProvidesFile{custom-abbrv.bbx}[2017/10/18 v1.0.0 Custom abbrv Bibliography Style]
\documentclass{article}
\begin{filecontents*}{\jobname.bib}
@online{AGHH:dynamic-cm,
eprinttype = {arxiv},
eprint = {1606.07639},
title = {Mixing Times of Random Walks on Dynamic Configuration Models},
date = {2016-06-24},
author = {Avena, Luca and G{\"u}lda{\c s}, Hakan and van der Hofstad, Remco and den Hollander, Frank},
options = {useprefix=true}
\documentclass[12]{article}
\usepackage[english]{babel}
\usepackage{gb4e}
\usepackage{etoolbox}
\noautomath
\let\eachwordone\itshape
\makeatletter
\pretocmd{\@footnotetext}{%
\@noftnotefalse\setcounter{fnx}{0}%
\documentclass[british]{article}
% example of a badly spaced command
\def\goo#1{
X#1
Y
}
%example of a command that is propely spaced
\def\hoo#1{%
A#1%
B%
@moewew
moewew / ascite.tex
Last active May 23, 2018 19:03
https://tex.stackexchange.com/q/433066/35864 - test in an empty directory to make sure the .bib file is created
\documentclass{article}
\usepackage[numbers]{natbib}
%\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@book{AS,
editor = {Milton Abramowitz and Irene Stegun},
title = {Handbook of Mathematical Functions with Formulas, Graphs, and Mathematical Tables},
year = {1970},
publisher = {Dover},
\newcommand{\example}{%
\subsection{Example \arabic{section}.\arabic{subsection}}%
\label{ex:\arabic{section}-\arabic{subsection}}}
\documentclass[british]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage{booktabs}
\usepackage{siunitx}
\begin{document}
\begin{table}
\centering
% BibTeX bibliography style `plain-ul'
% based on plain (Version 0.99b (8-Dec-10 release) by Howard Trickey and Oren Patashnik ((C) 1984, 1985, 1988, 2010)
% changes to support ulem's \uline for entire entries
% original license statement follows:
% Unlimited copying and redistribution of this file are permitted as long as
% it is unmodified. Modifications (and redistribution of modified versions)
% are also permitted, but only if the resulting file is renamed to something
% besides btxbst.doc, plain.bst, unsrt.bst, alpha.bst, and abbrv.bst.
% This restriction helps ensure that all standard styles are identical.
% The file btxbst.doc has the documentation for this style.