This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass[american]{article} | |
\usepackage[T1]{fontenc} | |
\usepackage[utf8]{inputenc} | |
\usepackage{babel} | |
\usepackage{csquotes} | |
\usepackage[style=apa, backend=biber]{biblatex} | |
\begin{filecontents}{\jobname.bib} | |
@VIDEO{10.12:86, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass{article} | |
\usepackage[backend=biber, style=authoryear-comp, giveninits]{biblatex} | |
\bibliography{biblatex-examples.bib} | |
\begin{document} | |
I get ``\textcite{knuth:ct:a,knuth:ct:b}" but I want ``Doe (1990; 1997)". | |
I get ``\autocite{knuth:ct:a,knuth:ct:b}" but I want ``(Doe 1990; 1997)". | |
\end{document} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\listfiles | |
\documentclass{beamer} | |
\usepackage{textcase} | |
\makeatletter | |
\newcommand*{\orig@secname}{} | |
\defbeamertemplate*{section page}{mytemplate}{% | |
\let\orig@secname\secname |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass{letter} | |
\usepackage{verbatim} | |
\usepackage{lipsum} | |
\begin{document} | |
\lipsum[1] | |
\begin{verbatim} | |
top = 0 | |
bottom = last | |
while top < bottom | |
middle = (top + bottom) / 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass{standalone} | |
\usepackage{calc} | |
\usepackage{tikz} | |
\begin{document} | |
\tikzset{ | |
pics/mypic/.style n args={1}{ | |
code={ | |
\foreach \i in {0,1,2}{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% based on https://tex.stackexchange.com/a/134836/35864 | |
% by percusse (https://tex.stackexchange.com/users/3235/percusse) | |
\documentclass[tikz]{standalone} | |
\usetikzlibrary{calc} | |
\begin{document} | |
\begin{tikzpicture} | |
\def\radi{{"\mathtt{a}","\mathtt{b}","\mathtt{c}","\mathtt{d}"}} | |
\foreach \x/\a [ | |
count=\n, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass{article} | |
\usepackage{etoolbox} | |
\newcommand{\fixsmpl}[1]{% | |
\edef\mytempstr{#1}% | |
\ifdefstring{\mytempstr}{l}% | |
{Sample runs from april to may}% | |
{\ifdefstring{\mytempstr}{s} | |
{Sample 2} | |
{\PackageError{fixsmpl}{Undefined option to fixsmpl command}{}}}% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass[british]{article} | |
\usepackage[T1]{fontenc} | |
\usepackage[utf8]{inputenc} | |
\usepackage{babel} | |
\usepackage{csquotes} | |
\usepackage[style=authoryear, backend=biber]{biblatex} | |
\addbibresource{biblatex-examples.bib} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass{article} | |
\usepackage{hyperref} | |
\begin{document} | |
\url{https://example.com} | |
\end{document} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass[AMA,STIX1COL]{WileyNJD-v2} | |
\usepackage{moreverb} | |
\usepackage{algpseudocode} | |
\usepackage{algorithm} | |
\usepackage{tabu} | |
\usepackage{tabularx} | |
\usepackage{rotating} | |
\usepackage{amsmath} | |
\newcommand\BibTeX{{\rmfamily B\kern-.05em \textsc{i\kern-.025em b}\kern-.08em | |
T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}} |