-
Notifications
You must be signed in to change notification settings - Fork 0
/
Macros.tex
45 lines (34 loc) · 1.73 KB
/
Macros.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
% Collection of macros and stuff to use in the user-guide.
% A command for printing VTK-m. It is printed such that the hyphen is not
% split across lines (which looks weird).
\newcommand{\VTKm}{\mbox{VTK-m}\xspace}
%-------------------------------------------------------------------------------
% stuff for "boxed text" used for didyouknow and common error boxes.
%-------------------------------------------------------------------------------
\usepackage[tikz]{bclogo}
\usepackage[framemethod=tikz]{mdframed}
\usepackage{ifthen}
\definecolor{bgblue}{RGB}{245,243,253}
\definecolor{ttblue}{RGB}{91,194,224}
\definecolor{bgyellow}{RGB}{255,255,204}
% change title color.
\renewcommand\bcStyleTitre[1]{\large\textcolor{ttblue}{#1}}
%\begin{bclogo}[couleur=bgblue, arrondi =0 , logo=\bcbombe, barre=none,noborder=true]{Commom Programming Error}
%\itshape\lipsum[4]
%\end{bclogo}
\newenvironment{commonerrors}%
{\vspace{1em}\begin{bclogo}[couleur=bgblue, arrondi =0 , logo=\bcbombe, barre=snake,noborder=true]{Common Errors}\itshape}%
{\end{bclogo}\vspace{1em}}
\newenvironment{didyouknow}%
{\vspace{1em}\begin{bclogo}[couleur=bgblue, arrondi =0 , logo=\bcinfo, barre=snake,noborder=true]{Did you know?}\itshape}%
{\end{bclogo}\vspace{1em}}
% Cite commands I use to abstract away the different ways to reference an
% entry in the bibliography (superscripts, numbers, dates, or author
% abbreviations). \scite is a short cite that is used immediately after
% when the authors are mentioned. \lcite is a full citation that is used
% anywhere. Both should be used right next to the text being cited without
% any spacing.
\newcommand*{\lcite}[1]{~\cite{#1}}
\newcommand*{\scite}[1]{~\cite{#1}}
\newcommand{\etal}{et al.}
\newcommand*{\keyterm}[1]{\emph{#1}}