summaryrefslogtreecommitdiff
path: root/cv.tex
diff options
context:
space:
mode:
Diffstat (limited to 'cv.tex')
-rw-r--r--cv.tex8
1 files changed, 7 insertions, 1 deletions
diff --git a/cv.tex b/cv.tex
index b226f37..4f223b6 100644
--- a/cv.tex
+++ b/cv.tex
@@ -25,12 +25,18 @@
\newcommand*{\arXiv}[1]{\href{http://arxiv.org/abs/#1}{arXiv:#1}}
% \published{title}{coauthors}{journal}{vol}{no}{pp}{date}
-\newcommand*{\published}[7]{{\nopagebreak #1. \textit{#3}, vol #4, no #5, pp #6, #7.\with{#2.}}}
+\newcommand*{\published}[7]{{\nopagebreak #1. \textit{#3}, \ifthere{vol}{#4}\ifthere{no}{#5}\ifthere{pp}{#6}#7.\with{#2.}}}
% \accepted{title}{coauthors}{journal}{arXiv}
\newcommand*{\accepted}[4]{#1. \textit{#3}, \arXiv{#4}.\with{#2.}}
% \submitted{title}{coauthors}{arXiv}
\newcommand*{\submitted}[3]{#1. \arXiv{#3}.\with{#2.}}
+\def\ifthere#1#2{%
+ \if\relax\detokenize{#2}\relax%
+ \else%
+ {#1 #2,}
+ \fi}
+
\def\doc{Curriculum Vit\ae{}}