From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Org/LaTeX set-up for business letters? Date: Fri, 06 Jul 2012 21:44:50 +0200 Message-ID: <874npkr7wt.fsf@gmail.com> References: <8762a2l6f7.fsf@googlemail.com> <87mx3ejan4.fsf@googlemail.com> <87ipe1keow.fsf@googlemail.com> <20120706084728.GJ1204@mischka.fritz.box> <874npksv96.fsf@googlemail.com> <87zk7cr9h7.fsf@googlemail.com> <87y5mwsnh7.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:60795) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SnEVe-0006Li-9n for emacs-orgmode@gnu.org; Fri, 06 Jul 2012 15:48:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SnEVc-0004uT-KP for emacs-orgmode@gnu.org; Fri, 06 Jul 2012 15:48:09 -0400 In-Reply-To: <87y5mwsnh7.fsf@gnu.org> (Bastien's message of "Fri, 06 Jul 2012 21:23:16 +0200") 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: Bastien Cc: Thorsten Jolitz , emacs-orgmode@gnu.org Hello, Bastien writes: > A letter is no more than a header with the author, the date, the object > of the letter, perhaps the client's address and the content of the > letter. > > If you find a nice LaTeX class, it is quite straightforward to create a > derived LaTeX backend with =CC=80org-export-define-derived-backend' so th= at > you get a .tex file using that class and the correct instructions. Good idea! > I would use #+PROPERTY to define the necessary information such as=20 > your address, etc. Another solution could be to create dedicated buffer keywords. With the following: #+begin_src emacs-lisp (org-export-define-derived-backend 'letter 'e-latex :options-alist ((:address "ADDRESS" nil nil newline) (:destination "DESTINATION" nil nil newline) (:object "OBJECT")) :translate-alist ((template . org-letter-template))) #+end_src you can define an address with: #+begin_src org #+ADDRESS: Free Software Foundation #+ADDRESS: 51 Franklin Street, Fifth Floor #+ADDRESS: Boston, MA 02110-1301 #+ADDRESS: USA #+end_src and access it with (plist-get info :address) in `org-letter-template'. Regards, --=20 Nicolas Goaziou