From e0d60a5da60505004ba67d2c9da58937ccf6cf6e Mon Sep 17 00:00:00 2001
From: Chris Cox <chris@mathematicaster.org>
Date: Mon, 12 Oct 2020 10:13:17 -0500
Subject: CV updates

---
 cv.tex | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

(limited to 'cv.tex')

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{}}
 
 
-- 
cgit v1.2.3

