[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] ox-koma-letter: how to use @@LaTeX:@@ specific commands in #+ di
From: |
Rasmus |
Subject: |
Re: [O] ox-koma-letter: how to use @@LaTeX:@@ specific commands in #+ directives |
Date: |
Thu, 18 Jun 2015 10:47:15 +0200 |
User-agent: |
Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.0.50 (gnu/linux) |
Eric S Fraga <address@hidden> writes:
> On Thursday, 18 Jun 2015 at 00:03, Nicolas Goaziou wrote:
>
> [...]
>
>> I cannot reproduce it. koma-letter back-ends explicitly allows latex
>> export snippets, e.g.,
>>
>> #+title: @@latex:\something@@
>>
>> produces the expected \something.
>
> Ummm, I thought I was going crazy as, for once, I had tested using emacs
> -Q before posting something silly to the list...
>
> You are correct in that it works with #+title:. It also works with
> #+subject:. However, it does *not* work with #+author:. I've not tried
> any of the other org setting directives. It was author I was playing
> with yesterday...
Right. #+author is not parsed. In the patch I enable parsing on this and
others.
Nicolas: are there any of the keywords in the patch that shouldn't be
parsed?
Also, I left out FROM_ADDRESS as I remember it interprets newlines and I
don't have time ATM to properly check if this depends on the newline
behavior.
Rasmus
--
El Rey ha muerto. ¡Larga vida al Rey!
>From 0dc981a8d223a0f41dc5d1f7227ae1d32e7abf2d Mon Sep 17 00:00:00 2001
From: Rasmus <address@hidden>
Date: Thu, 18 Jun 2015 10:34:17 +0200
Subject: [PATCH 1/2] ox-koma-letter: Parse more keywords
* ox-koma-letter.el (koma-letter): Parse author, phone-number,
opening, closing and signature.
fix
---
contrib/lisp/ox-koma-letter.el | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/contrib/lisp/ox-koma-letter.el b/contrib/lisp/ox-koma-letter.el
index 119ffe9..aeb8f01 100644
--- a/contrib/lisp/ox-koma-letter.el
+++ b/contrib/lisp/ox-koma-letter.el
@@ -381,17 +381,17 @@ e.g. \"title-subject:t\"."
:options-alist
'((:latex-class "LATEX_CLASS" nil org-koma-letter-default-class t)
(:lco "LCO" nil org-koma-letter-class-option-file)
- (:author "AUTHOR" nil (org-koma-letter--get-value org-koma-letter-author)
t)
+ (:author "AUTHOR" nil (org-koma-letter--get-value org-koma-letter-author)
parse)
(:author-changed-in-buffer-p "AUTHOR" nil nil t)
(:from-address "FROM_ADDRESS" nil org-koma-letter-from-address newline)
- (:phone-number "PHONE_NUMBER" nil org-koma-letter-phone-number)
+ (:phone-number "PHONE_NUMBER" nil org-koma-letter-phone-number parse)
(:email "EMAIL" nil (org-koma-letter--get-value org-koma-letter-email) t)
(:to-address "TO_ADDRESS" nil nil newline)
- (:place "PLACE" nil org-koma-letter-place)
+ (:place "PLACE" nil org-koma-letter-place parse)
(:subject "SUBJECT" nil nil parse)
- (:opening "OPENING" nil org-koma-letter-opening)
- (:closing "CLOSING" nil org-koma-letter-closing)
- (:signature "SIGNATURE" nil org-koma-letter-signature newline)
+ (:opening "OPENING" nil org-koma-letter-opening parse)
+ (:closing "CLOSING" nil org-koma-letter-closing parse)
+ (:signature "SIGNATURE" nil org-koma-letter-signature parse)
(:special-headings nil "special-headings"
org-koma-letter-prefer-special-headings)
(:special-tags nil nil (append
--
2.4.4
- [O] ox-koma-letter: how to use @@LaTeX:@@ specific commands in #+ directives, Eric S Fraga, 2015/06/17
- Re: [O] ox-koma-letter: how to use @@LaTeX:@@ specific commands in #+ directives, Rasmus, 2015/06/17
- Re: [O] ox-koma-letter: how to use @@LaTeX:@@ specific commands in #+ directives, Nicolas Goaziou, 2015/06/17
- Re: [O] ox-koma-letter: how to use @@LaTeX:@@ specific commands in #+ directives, Rasmus, 2015/06/17
- Re: [O] ox-koma-letter: how to use @@LaTeX:@@ specific commands in #+ directives, Eric S Fraga, 2015/06/18
- Re: [O] ox-koma-letter: how to use @@LaTeX:@@ specific commands in #+ directives,
Rasmus <=
- Re: [O] ox-koma-letter: how to use @@LaTeX:@@ specific commands in #+ directives, Eric S Fraga, 2015/06/18
- Re: [O] ox-koma-letter: how to use @@LaTeX:@@ specific commands in #+ directives, Rasmus, 2015/06/18
- Re: [O] ox-koma-letter: how to use @@LaTeX:@@ specific commands in #+ directives, Eric S Fraga, 2015/06/19
- Re: [O] ox-koma-letter: how to use @@LaTeX:@@ specific commands in #+ directives, Eric S Fraga, 2015/06/19
- Re: [O] ox-koma-letter: how to use @@LaTeX:@@ specific commands in #+ directives, Nicolas Goaziou, 2015/06/18