From: Rasmus <rasmus@gmx.us>
To: emacs-orgmode@gnu.org
Subject: Re: ox-koma-letter: how to use @@LaTeX:@@ specific commands in #+ directives
Date: Thu, 18 Jun 2015 10:47:15 +0200 [thread overview]
Message-ID: <87lhfh8kto.fsf@gmx.us> (raw)
In-Reply-To: 87616lcufl.fsf@delle7240.chemeng.ucl.ac.uk
[-- Attachment #1: Type: text/plain, Size: 1025 bytes --]
Eric S Fraga <e.fraga@ucl.ac.uk> 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!
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-ox-koma-letter-Parse-more-keywords.patch --]
[-- Type: text/x-diff, Size: 1995 bytes --]
From 0dc981a8d223a0f41dc5d1f7227ae1d32e7abf2d Mon Sep 17 00:00:00 2001
From: Rasmus <rasmus@gmx.us>
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
next prev parent reply other threads:[~2015-06-18 8:47 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-17 17:32 ox-koma-letter: how to use @@LaTeX:@@ specific commands in #+ directives Eric S Fraga
2015-06-17 20:22 ` Rasmus
2015-06-17 22:03 ` Nicolas Goaziou
2015-06-17 22:55 ` Rasmus
2015-06-18 8:06 ` Eric S Fraga
2015-06-18 8:47 ` Rasmus [this message]
2015-06-18 9:09 ` Eric S Fraga
2015-06-18 21:01 ` Rasmus
2015-06-19 14:24 ` Eric S Fraga
2015-06-19 15:28 ` Eric S Fraga
2015-06-18 14:07 ` Nicolas Goaziou
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=87lhfh8kto.fsf@gmx.us \
--to=rasmus@gmx.us \
--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).