emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Bastien Guerry <bzg@altern.org>
To: emacs-orgmode@gnu.org
Subject: [Accepted] Allow inclusion of author's email in LaTeX export
Date: Mon, 17 Jan 2011 20:18:36 +0100 (CET)	[thread overview]
Message-ID: <20110117191836.45FAD46626@myhost.localdomain> (raw)
In-Reply-To: 1294928979-14439-1-git-send-email-wence@gmx.li

Patch 536 (http://patchwork.newartisans.com/patch/536/) is now "Accepted".

Maintainer comment: none

This relates to the following submission:

http://mid.gmane.org/%3C1294928979-14439-1-git-send-email-wence%40gmx.li%3E

Here is the original message containing the patch:

> Content-Type: text/plain; charset="utf-8"
> MIME-Version: 1.0
> Content-Transfer-Encoding: 7bit
> Subject: [Orgmode] Allow inclusion of author's email in LaTeX export
> Date: Thu, 13 Jan 2011 19:29:39 -0000
> From: Lawrence Mitchell <wence@gmx.li>
> X-Patchwork-Id: 536
> Message-Id: <1294928979-14439-1-git-send-email-wence@gmx.li>
> To: emacs-orgmode@gnu.org
> Cc: Lawrence Mitchell <wence@gmx.li>
> 
> * 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.
> 
> ---
> lisp/org-latex.el |   12 +++++++++---
>  1 files changed, 9 insertions(+), 3 deletions(-)
> 
> diff --git a/lisp/org-latex.el b/lisp/org-latex.el
> index 8a9f9eb..4b36273 100644
> --- a/lisp/org-latex.el
> +++ b/lisp/org-latex.el
> @@ -1276,7 +1276,9 @@ TITLE is the current title from the buffer or region.
>  OPT-PLIST is the options plist for current buffer."
>    (let ((toc (plist-get opt-plist :table-of-contents))
>  	(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
>       (if (plist-get opt-plist :time-stamp-file)
>  	 (format-time-string "%% Created %Y-%m-%d %a %H:%M\n"))
> @@ -1300,8 +1302,12 @@ OPT-PLIST is the options plist for current buffer."
>        (org-export-latex-fontify-headline title))
>       ;; insert author info
>       (if (plist-get opt-plist :author-info)
> -	 (format "\\author{%s}\n"
> -		 (org-export-latex-fontify-headline (or author user-full-name)))
> +	 (format "\\author{%s%s}\n"
> +		 (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"
>  	       (org-export-latex-fontify-headline (or author user-full-name))))
>       ;; insert the date
> 

  reply	other threads:[~2011-01-17 19:18 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-13 14:29 [PATCH] Allow inclusion of author's email in LaTeX export Lawrence Mitchell
2011-01-17 19:18 ` Bastien Guerry [this message]
2011-01-17 19:21 ` Bastien
2011-02-22 21:25   ` Hsiu-Khuern Tang
2011-02-26 16:31     ` Bastien
2011-02-28 23:47       ` Hsiu-Khuern Tang
2011-03-01 17:36         ` Bastien
2011-03-01 18:59           ` Hsiu-Khuern Tang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110117191836.45FAD46626@myhost.localdomain \
    --to=bzg@altern.org \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).