From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: ox-koma-letter: how to use @@LaTeX:@@ specific commands in #+ directives Date: Thu, 18 Jun 2015 23:01:52 +0200 Message-ID: <871th891dr.fsf@gmx.us> References: <87y4jimeai.fsf@delle7240.chemeng.ucl.ac.uk> <87bngexeyv.fsf@gmx.us> <87twu66lh1.fsf@selenimh.access.network> <87616lcufl.fsf@delle7240.chemeng.ucl.ac.uk> <87lhfh8kto.fsf@gmx.us> <87oakdqt5w.fsf@pinto.chemeng.ucl.ac.uk> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53675) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z5gwh-00072e-Lg for emacs-orgmode@gnu.org; Thu, 18 Jun 2015 17:02:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z5gwe-0001gy-FZ for emacs-orgmode@gnu.org; Thu, 18 Jun 2015 17:01:59 -0400 Received: from mout.gmx.net ([212.227.17.20]:51483) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z5gwe-0001gn-6J for emacs-orgmode@gnu.org; Thu, 18 Jun 2015 17:01:56 -0400 Received: from W530 ([46.166.188.193]) by mail.gmx.com (mrgmx102) with ESMTPSA (Nemesis) id 0MPIvU-1ZA4fL0GBc-004PVz for ; Thu, 18 Jun 2015 23:01:55 +0200 In-Reply-To: <87oakdqt5w.fsf@pinto.chemeng.ucl.ac.uk> (Eric S. Fraga's message of "Thu, 18 Jun 2015 10:09:47 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Eric S Fraga writes: > with this patch, exporting to koma-letter doesn't work for me. I've not > investigated properly yet but thought I'd give you a heads up on > this. Thanks. I don't really know where exactly it breaks with a minimal example. It works on my PC. Anyway, this patch adds only a few parsed keywords. Does it work with your letter? -- A page of history is worth a volume of logic --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0002-ox-koma-letter-Parse-more-keywords.patch >From fc999a651773353d105fca59a0044d4945a6241d Mon Sep 17 00:00:00 2001 From: Rasmus Date: Thu, 18 Jun 2015 10:34:17 +0200 Subject: [PATCH 2/2] ox-koma-letter: Parse more keywords * ox-koma-letter.el (koma-letter): Parse author, phone-number, opening, closing and signature. (org-koma-letter-template): parse closing. --- contrib/lisp/ox-koma-letter.el | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/contrib/lisp/ox-koma-letter.el b/contrib/lisp/ox-koma-letter.el index 119ffe9..e907fd7 100644 --- a/contrib/lisp/ox-koma-letter.el +++ b/contrib/lisp/ox-koma-letter.el @@ -381,7 +381,7 @@ 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) @@ -389,8 +389,8 @@ e.g. \"title-subject:t\"." (:to-address "TO_ADDRESS" nil nil newline) (:place "PLACE" nil org-koma-letter-place) (:subject "SUBJECT" nil nil parse) - (:opening "OPENING" nil org-koma-letter-opening) - (:closing "CLOSING" nil org-koma-letter-closing) + (:opening "OPENING" nil org-koma-letter-opening parse) + (:closing "CLOSING" nil org-koma-letter-closing parse) (:signature "SIGNATURE" nil org-koma-letter-signature newline) (:special-headings nil "special-headings" org-koma-letter-prefer-special-headings) @@ -665,7 +665,7 @@ holding export options." ;; Letter body. contents ;; Closing. - (format "\n\\closing{%s}\n" (plist-get info :closing)) + (format "\n\\closing{%s}\n" (org-export-data (plist-get info :closing) info)) (org-koma-letter--special-contents-as-macro (plist-get info :with-after-closing)) ;; Letter end. -- 2.4.4 --=-=-=--