mirror of
https://gitlab.com/netravnen/NetworkLabNotes.git
synced 2024-11-29 19:37:53 +00:00
Added new user shorthands tsq, bsq, myquote
This commit is contained in:
parent
e26642ebc5
commit
8b785998b1
10
commands.tex
10
commands.tex
|
@ -50,6 +50,16 @@
|
|||
{\footnotesize #2}}
|
||||
|
||||
|
||||
\newcommand{\myquote}[2]{%
|
||||
\sbox0{#1}%
|
||||
\ifdim\wd0=0pt
|
||||
{\epigraph{#2}{\textit{{\tiny \theauthor}}}} %if #1 is empty
|
||||
\else
|
||||
{\epigraph{#2}{\textit{#1}}} %if quote is cited
|
||||
\fi
|
||||
}
|
||||
|
||||
|
||||
% Enviroment @var txt
|
||||
% changes code styling to: in frame, white bg.
|
||||
\lstnewenvironment{txt}{\lstset{style=plaintxt}}{}
|
||||
|
|
|
@ -37,6 +37,8 @@
|
|||
\usepackage{inconsolata}
|
||||
\usepackage{blindtext}
|
||||
\usepackage{expdlist}
|
||||
\usepackage{epigraph} % used to style quotes
|
||||
\usepackage{titling} % makes available \thetitle \theauthor \thedate
|
||||
|
||||
|
||||
\bibliographystyle{unsrtnat} %styles list https://www.sharelatex.com/learn/Natbib_bibliography_styles
|
||||
|
@ -207,3 +209,7 @@
|
|||
\renewcommand\theadfont{\bfseries}
|
||||
\renewcommand\theadgape{\Gape[4pt]}
|
||||
\renewcommand\cellgape{\Gape[4pt]}
|
||||
|
||||
\def\tsq#1{\textquotesingle{#1}}
|
||||
\def\bsq#1{%both single quotes
|
||||
\lq{#1}\rq}
|
||||
|
|
Loading…
Reference in a new issue