Skip to content

Instantly share code, notes, and snippets.

\documentclass{article}
\usepackage{graphicx}
\usepackage{soul}
\usepackage{mwe}% for the example image
\begin{document}
Consider the sample graph given in Figure \ref{fig:example_graph}, which consists of 3 communities.
\begin{figure}[hbt!]
\documentclass[british]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage{csquotes}
\usepackage[style=authoryear, backend=biber]{biblatex}
\begin{filecontents}{\jobname.bib}
\documentclass{article}
\usepackage{natbib}
\usepackage{bibentry}
\bibliographystyle{plain}
\begin{document}
\nobibliography*
\bibentry{incollection-full}
\documentclass[british]{article}
\usepackage[utf8]{inputenc}
\usepackage{babel,csquotes}
\usepackage[backend=bibtex, style=authoryear]{biblatex}
\addbibresource{biblatex-examples.bib}
\begin{document}
\fullcite{sigfridsson}
\end{document}
%%%% amsalpha-authoronly
%%%% version of amsalpha without year in label
%%%% https://tex.stackexchange.com/q/551022/35864
%%%% 2020-06-25 MW
%%%%
%%%% an unmodified amsalpha.bst can be obtained from
%%%% https://ctan.org/tex-archive/macros/latex/required/amscls
%%%%
%%%% original (unchanged) copyright header follows
%%%%
%% alpha-fg
%% 2020-06-20 MW
%% https://tex.stackexchange.com/q/550269/35864
%% alpha.bst with family, given order, given initials and colon
% BibTeX standard bibliography style `alpha'
% Version 0.99b (8-Dec-10 release) for BibTeX versions 0.99a or later.
% Copyright (C) 1984, 1985, 1988, 2010 Howard Trickey and Oren Patashnik.
% 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
\documentclass[11pt,english]{scrbook}
\usepackage{fontspec}
\usepackage[paperwidth=16cm,paperheight=24cm]{geometry}
\geometry{verbose,tmargin=2.5cm,bmargin=2.5cm,lmargin=2cm,rmargin=2cm}
\usepackage{polyglossia}
\setdefaultlanguage{english}
\setmainfont{Gentium Plus}
% !BIB program = biber
\documentclass[british]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage{todonotes}
\newcommand\A[1]{\todo[inline,color=yellow]{A: #1}}
\begin{document}
Lorem \A{ipsum}
\documentclass{tufte-book}
\begin{document}
\allcapsspacing{The Title}
\MakeTextUppercase{The Title}
\allcapsspacing{\MakeTextUppercase{The Title}}
Lorem
\documentclass{tufte-book}
\begin{document}
\title{The Title}
\maketitle
Lorem
\end{document}