emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Bastien Guerry <bzg@altern.org>
To: emacs-orgmode@gnu.org
Subject: [Accepted] individual markups for active and inactive time stamps on export
Date: Fri,  1 Jul 2011 11:04:20 +0200 (CEST)	[thread overview]
Message-ID: <20110701090420.4A98766FF@myhost.localdomain> (raw)
In-Reply-To: 874o373spj.fsf@ucl.ac.uk

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

Maintainer comment: none

This relates to the following submission:

http://mid.gmane.org/%3C874o373spj.fsf%40ucl.ac.uk%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: [O] individual markups for active and inactive time stamps on export
> Date: Fri, 01 Jul 2011 02:38:48 -0000
> From: Eric S Fraga <e.fraga@ucl.ac.uk>
> X-Patchwork-Id: 816
> Message-Id: <874o373spj.fsf@ucl.ac.uk>
> To: emacs-orgmode@gnu.org
> 
> Hello again,
> 
> okay, I will answer my own post with a possible solution to my feature
> request earlier today.  
> 
> Attached is a patch that does the job; whether it is elegant enough or
> not is another question.  I've not addressed the documentation at all
> yet.  I will wait to see what the response to this simple patch might
> be...
> 
> Thanks,
> eric
> 
> 
> * Allow for a different markup for inactive time stamps on latex export
> 
> 
> diff --git a/lisp/org-latex.el b/lisp/org-latex.el
> index 1baa5f9..694f65b 100644
> --- a/lisp/org-latex.el
> +++ b/lisp/org-latex.el
> @@ -292,6 +292,11 @@ markup defined, the first one in the association list will be used."
>    :group 'org-export-latex
>    :type 'string)
>  
> +(defcustom org-export-latex-timestamp-inactive-markup "\\textit{%s}"
> +  "A printf format string to be applied to inactive time stamps."
> +  :group 'org-export-latex
> +  :type 'string)
> +
>  (defcustom org-export-latex-timestamp-keyword-markup "\\texttt{%s}"
>    "A printf format string to be applied to time stamps."
>    :group 'org-export-latex
> @@ -1613,7 +1618,9 @@ links, keywords, lists, tables, fixed-width"
>        (org-if-unprotected-at (1- (point))
>         (replace-match
>  	(org-export-latex-protect-string
> -	 (format org-export-latex-timestamp-markup
> +	 (format (if (string= "<" (substring (match-string 0) 0 1))
> +		     org-export-latex-timestamp-markup
> +		   org-export-latex-timestamp-inactive-markup)
>  		 (substring (org-translate-time (match-string 0)) 1 -1)))
>  	t t)))))
>  
> 

  reply	other threads:[~2011-07-01  9:03 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-30 15:49 feature request: individual markups for active and inactive time stamps on export Eric S Fraga
2011-06-30 21:38 ` [PATCH] " Eric S Fraga
2011-07-01  9:04   ` Bastien Guerry [this message]
2011-07-01  9:11     ` [Accepted] " Eric S Fraga
2011-07-01  9:04   ` [PATCH] " Bastien

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=20110701090420.4A98766FF@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).