[ox-moderncv] Remove the default cvcolor option

Not including a default value allows users to customize the output colors as
LaTeX header options.  The moderncv LaTeX package already defaults to black.
This commit is contained in:
Joseph LaFreniere 2018-09-14 04:13:44 -05:00 committed by Óscar Nájera
parent 3900071b8d
commit 4e059491c0

View file

@ -54,7 +54,7 @@
:options-alist
'((:latex-class "LATEX_CLASS" nil "moderncv" t)
(:cvstyle "CVSTYLE" nil "classic" t)
(:cvcolor "CVCOLOR" nil "blue" t)
(:cvcolor "CVCOLOR" nil nil t)
(:mobile "MOBILE" nil nil parse)
(:homepage "HOMEPAGE" nil nil parse)
(:address "ADDRESS" nil nil newline)
@ -92,7 +92,7 @@ holding export options."
(when cvstyle (format "\\moderncvstyle{%s}\n" cvstyle)))
;; cvcolor
(let ((cvcolor (org-export-data (plist-get info :cvcolor) info)))
(when cvcolor (format "\\moderncvcolor{%s}\n" cvcolor)))
(when (not (string-empty-p cvcolor)) (format "\\moderncvcolor{%s}\n" cvcolor)))
;; Possibly limit depth for headline numbering.
(let ((sec-num (plist-get info :section-numbers)))
(when (integerp sec-num)