From 4e059491c0b121b8e613a6a46bc6946dd9197b99 Mon Sep 17 00:00:00 2001 From: Joseph LaFreniere Date: Fri, 14 Sep 2018 04:13:44 -0500 Subject: [PATCH] [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. --- ox-moderncv.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ox-moderncv.el b/ox-moderncv.el index 8f5374e..10ba444 100644 --- a/ox-moderncv.el +++ b/ox-moderncv.el @@ -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)