-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmacros.tex
More file actions
144 lines (116 loc) · 3.97 KB
/
Copy pathmacros.tex
File metadata and controls
144 lines (116 loc) · 3.97 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
% ------------------------------------------
% Text editing
% ------------------------------------------
\newcommand\todo[1]{{\color{purple}{TODO: #1}}}
% ------------------------------------------
% Custom styles
% ------------------------------------------
\newcommand\toolname{\textsc}
\newcommand\taxonname{\textit}
\newcommand\fileformat{\texttt}
\newcommand\nucleobase[1]{\texttt{#1}}
% Epigraph
% https://tex.stackexchange.com/questions/193178/specific-epigraph-style
\usepackage{epigraph}
\setlength\epigraphwidth{.8\textwidth}
\setlength\epigraphrule{0pt}
\urlstyle{tt}
% ------------------------------------------
% References
% ------------------------------------------
\newcommand\secref[1]{Section~\ref{#1}}
\newcommand\chpref[1]{Chapter~\ref{#1}}
\newcommand\appref[1]{Appendix~\ref{#1}}
\newcommand\figref[1]{Figure~\ref{#1}}
\newcommand\tabref[1]{Table~\ref{#1}}
\newcommand\eqnref[1]{Equation~\ref{#1}}
\renewcommand\algref[1]{Algorithm~\ref{#1}}
% \newcommand\suppfigref[1]{S\ref{#1}~Fig}
\newcommand\citea[1]{\citeauthor{#1} \cite{#1}}
\newcommand\citeay[1]{\citeauthor{#1} (\citeyear{#1}) \cite{#1}}
% ------------------------------------------
% abbreviations
% ------------------------------------------
\def\eg{e.\,g.\ }
\def\ie{i.\,e.\ }
\def\cf{c.\,f.\ }
\DeclareSIUnit\basepair{bp}
% Remove hyperlink color boxes from acronyms.
% https://tex.stackexchange.com/questions/73063/acronym-hyperlink-without-special-color/73068
\makeatletter
\AtBeginDocument{%
\renewcommand*{\AC@hyperlink}[2]{%
\begingroup
\hypersetup{hidelinks}%
\hyperlink{#1}{#2}%
\endgroup
}%
}
\makeatother
% \makeatletter
% \AtBeginEnvironment{acronym}{%
% \def\NRorg@descriptionlabel#1{\hspace{\labelsep}#1}%
% \setkomafont{descriptionlabel}{\normalfont}%
% \renewcommand*{\aclabelfont}[1]{\spacedlowsmallcaps{#1}}%
% }
% \makeatother
% ------------------------------------------
% Math operators
% ------------------------------------------
\def\avg{\mathop{\mathgroup\symoperators avg}}
% https://tex.stackexchange.com/a/5255
\DeclareMathOperator*{\argmax}{arg\,max}
\DeclareMathOperator*{\argmin}{arg\,min}
% ------------------------------------------
% Page Handling
% ------------------------------------------
% Leerseite, nächste Seite rechts
\newcommand{\blankpage}{
\clearpage{\pagestyle{fancy}\cleardoublepage}
}
% marker for lowercase references
% (see http://tex.stackexchange.com/questions/1655/correct-case-in-namerefs)
\newcommand{\mlr}{}
% use marker to define lowercase reference command...
\newcommand{\lnameref}[1]{%
\bgroup
\let\mlr\MakeLowercase
\nameref{#1}\egroup}
% ... and first upper, rest lowercase command
\newcommand{\fnameref}[1]{%
\bgroup
\def\mlr{\let\mlr\MakeLowercase}%
\nameref{#1}\egroup}
% ------------------------------------------
% Papers References and Boxes
% ------------------------------------------
% ART Paper
\newcommand\paperart{
\item[] \textbf{Lucas Czech}, Pierre Barbera, and Alexandros Stamatakis.
``Methods for Automatic Reference Trees and Multilevel Phylogenetic Placement.''
\textit{Bioinformatics}, 2018, Volume 35, Issue 7, Pages 1151--1158. %, https://doi.org/10.1093/bioinformatics/bty767
}
% Phylogenetic Postprocessing Paper
\newcommand\paperpppp{
\item[] \textbf{Lucas Czech} and Alexandros Stamatakis.
``Scalable Methods for Analyzing and Visualizing Phylogenetic Placement of Metagenomic Samples.''
\textit{PLOS ONE}, 2019, Volume 14, Issue 5, Page e0217050. %, https://doi.org/10.1371/journal.pone.0217050
}
% Genesis Paper
\newcommand\papergenesis{
\item[] \textbf{Lucas Czech}, Pierre Barbera, and Alexandros Stamatakis.
``Genesis and Gappa: Processing, Analyzing and Visualizing Phylogenetic (Placement) Data.''
\textit{bioRxiv}, 2019, Page 647958. %, https://doi.org/10.1101/647958
}
% Command for framed boxes.
\newcommand\paperbox[3]{
\begin{framed}
% \noindent
#1
\begin{itemize}
#2
\end{itemize}
% \noindent
#3
\end{framed}
}