1
0
Fork 1
mirror of https://gitlab.com/Titan-C/org-cv.git synced 2025-04-17 18:49:29 +00:00

feat(ox-moderncv.el): allow specify of last name with regexp string

It looks at the string value of "author" and using a regexp (to be
enhanced) it puts the last name(s) in the the appropriate second
argument of the LaTeX macro of moderncv "\name{first-name}{last-name}"
This commit is contained in:
Louis Vigneras 2025-01-05 15:51:41 +01:00
parent cdccd2cdcf
commit 965edbc983

View file

@ -102,7 +102,11 @@ holding export options."
(let ((author (and (plist-get info :with-author)
(let ((auth (plist-get info :author)))
(and auth (org-export-data auth info))))))
<<<<<<< HEAD
(if (string-match "u\\([a-z]*.[a-z]*\\).:last.\\([a-z]*.[a-z]*\\)" author)
=======
(if (string-match "\\([a-z]*.[a-z]*\\).:last.\\([a-z]*.[a-z]*\\)" author)
>>>>>>> a5eb129 (feat(ox-moderncv.el): allow specify of last name with regexp string)
(let ((first-name (match-string 1 author))
(last-name (match-string 2 author)))
(format "\\name{%s}{%s}\n" first-name last-name))