From 7cd4f317840d7b51357fc5fe6fcdc8acc76ba297 Mon Sep 17 00:00:00 2001 From: "Mark E. Fuller" Date: Fri, 18 Mar 2022 14:09:16 +0200 Subject: [PATCH] fix PDF title metadata for blank CV title --- moderncv.cls | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/moderncv.cls b/moderncv.cls index aa93433..d7180c4 100644 --- a/moderncv.cls +++ b/moderncv.cls @@ -114,7 +114,8 @@ bookmarksopen = true, bookmarksdepth= 2,% to show sections and subsections pdfauthor = {\@firstname{}~\@lastname{}}, - pdftitle = {\@firstname{}~\@lastname{}\notblank{\@title}{ -- \@title}{}}, + pdftitle = + {\@firstname{}~\@lastname{}\expandafter\notblank\expandafter{\@title}{ -- \@title}{}}, %\notblank does not expand argument automatically pdfsubject = {R\'{e}sum\'{e} of \@firstname{}~\@lastname{}}, pdfkeywords = {\@firstname{}~\@lastname{}, curriculum vit\ae{}, r\'{e}sum\'{e}}}}