mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-08-25 04:32:52 +00:00
Allow inclusion of author's email in LaTeX export
* org-latex.el (org-export-latex-make-header): Export email in author line if `org-export-email-info' is non-nil. Previously exporting to LaTeX would not include the document author's email address when org-export-email-info was set. This patch corrects this oversight using the \thanks command to add a footnote to the author line.
This commit is contained in:
parent
f4984b3205
commit
f705ab0966
|
@ -1266,7 +1266,9 @@ TITLE is the current title from the buffer or region.
|
||||||
OPT-PLIST is the options plist for current buffer."
|
OPT-PLIST is the options plist for current buffer."
|
||||||
(let ((toc (plist-get opt-plist :table-of-contents))
|
(let ((toc (plist-get opt-plist :table-of-contents))
|
||||||
(author (org-export-apply-macros-in-string
|
(author (org-export-apply-macros-in-string
|
||||||
(plist-get opt-plist :author))))
|
(plist-get opt-plist :author)))
|
||||||
|
(email (org-export-apply-macros-in-string
|
||||||
|
(plist-get opt-plist :email))))
|
||||||
(concat
|
(concat
|
||||||
(if (plist-get opt-plist :time-stamp-file)
|
(if (plist-get opt-plist :time-stamp-file)
|
||||||
(format-time-string "%% Created %Y-%m-%d %a %H:%M\n"))
|
(format-time-string "%% Created %Y-%m-%d %a %H:%M\n"))
|
||||||
|
@ -1290,8 +1292,12 @@ OPT-PLIST is the options plist for current buffer."
|
||||||
(org-export-latex-fontify-headline title))
|
(org-export-latex-fontify-headline title))
|
||||||
;; insert author info
|
;; insert author info
|
||||||
(if (plist-get opt-plist :author-info)
|
(if (plist-get opt-plist :author-info)
|
||||||
(format "\\author{%s}\n"
|
(format "\\author{%s%s}\n"
|
||||||
(org-export-latex-fontify-headline (or author user-full-name)))
|
(org-export-latex-fontify-headline (or author user-full-name))
|
||||||
|
(if (and org-export-email-info email
|
||||||
|
(string-match "\\S-" email))
|
||||||
|
(format "\\thanks{%s}" email)
|
||||||
|
""))
|
||||||
(format "%%\\author{%s}\n"
|
(format "%%\\author{%s}\n"
|
||||||
(org-export-latex-fontify-headline (or author user-full-name))))
|
(org-export-latex-fontify-headline (or author user-full-name))))
|
||||||
;; insert the date
|
;; insert the date
|
||||||
|
|
Loading…
Reference in a new issue