support one line address

This commit is contained in:
Óscar Nájera 2018-03-23 01:44:30 +01:00
parent 5ed3886b61
commit fad1070eca

View file

@ -24,6 +24,7 @@
:options-alist :options-alist
'((:mobile "MOBILE" nil nil parse) '((:mobile "MOBILE" nil nil parse)
(:homepage "HOMEPAGE" nil nil parse) (:homepage "HOMEPAGE" nil nil parse)
(:address "ADDRESS" nil nil parse)
(:gitlab "GITLAB" nil nil parse) (:gitlab "GITLAB" nil nil parse)
(:github "GITHUB" nil nil parse) (:github "GITHUB" nil nil parse)
(:linkedin "LINKEDIN" nil nil parse) (:linkedin "LINKEDIN" nil nil parse)
@ -77,6 +78,9 @@ holding export options."
;; linkedin ;; linkedin
(let ((linkedin (org-export-data (plist-get info :linkedin) info))) (let ((linkedin (org-export-data (plist-get info :linkedin) info)))
(when linkedin (format "\\social[linkedin]{%s}\n" linkedin))) (when linkedin (format "\\social[linkedin]{%s}\n" linkedin)))
;; address
(let ((address (org-export-data (plist-get info :address) info)))
(when address (format "\\address{%s}\n" address)))
;; Date. ;; Date.
(let ((date (and (plist-get info :with-date) (org-export-get-date info)))) (let ((date (and (plist-get info :with-date) (org-export-get-date info))))
(format "\\date{%s}\n" (org-export-data date info))) (format "\\date{%s}\n" (org-export-data date info)))