From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jambunathan K Subject: Re: Composing letters using Org mode and the LaTeX isodoc class Date: Wed, 08 Sep 2010 00:16:33 +0530 Message-ID: <81wrqxv1bq.fsf@gmail.com> References: <87zkvtn5u7.fsf@mundaneum.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=48385 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ot3CF-0005jK-BA for emacs-orgmode@gnu.org; Tue, 07 Sep 2010 14:47:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ot3C2-0001kZ-Nu for emacs-orgmode@gnu.org; Tue, 07 Sep 2010 14:46:56 -0400 Received: from mail-pv0-f169.google.com ([74.125.83.169]:51277) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ot3C2-0001kV-F1 for emacs-orgmode@gnu.org; Tue, 07 Sep 2010 14:46:54 -0400 Received: by pvc30 with SMTP id 30so3707860pvc.0 for ; Tue, 07 Sep 2010 11:46:53 -0700 (PDT) In-Reply-To: <87zkvtn5u7.fsf@mundaneum.com> (=?iso-8859-1?Q?=22S=E9bastien?= Vauban"'s message of "Tue, 07 Sep 2010 13:36:16 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hi Sebastien Tried out isodoc. I like it.=20 I only wish I had started out with this package rather than scrlttr2.=20 The good thing about isodoc is that the default style of 'A simple letter' in the document [1] is more closer to the convention that is used here in India. Furthermore package seems 'very recent'. With scrlttr2 [2], I had invested good amount of time reading through the manual and tweaking DIN.lco to assigning From, To and Subject lines to their 'rightful' place. I also felt that the default style was a bit too gaudy for my taste. I will have isodoc in mind when I get to work on a patch for letter writing support in orgmode. The essentials for letter writing support seem to be the same - setup key, value pairs (with key being a headline and value being the body) and emit them in a way that is expected by the underlying package. I would like to hear why you chose to go down the tangling path. Personally I feel any sort of markup (this includes babel directives) distracting. Btw, your approach set me thinking. I think there is a strong case for making headlines act as babel srcnames with their body providing content for noweb expansion [3]. This behaviour could be controlled by a buffer local variable. Wondering how babel treats srcnames? Can there be spaces? Is upper and lower cases treated one and the same ... Footnotes:=20 [1] http://mirror.ctan.org/macros/latex/contrib/isodoc/isodoc.pdf [2] http://thread.gmane.org/gmane.emacs.orgmode/28012 [3] It is likely the body of the headline might be run through a custom renderer (say latex, html or even emac's own comment-region) before finding it's way in to the document generated by tangle. Thanks once again for referring me to isodoc. Thanks, Jambunathan K. S=E9bastien Vauban writes: > Hello, > > Based on a thread launched by Jambunathan, I've tried to follow another > direction, having a huge interest in getting such a thing to work. > > My trial is very border-line, as I tried using Org code blocks. Would the= se be > "convertable" to LaTeX, that would make (or have made) sense. > > Just presenting this to you, in order to receive ideas on how to progress= in > the right direction. > > #+TITLE: Org-isodoc > #+AUTHOR: Seb Vauban > #+DATE: 2010-09-07 > #+DESCRIPTION:=20 > #+KEYWORDS:=20 > #+LANGUAGE: en_US > > * To > #+srcname: to > #+begin_src org > Org mode user group \\ > World Wide Web > #+end_src > > * Subject > #+srcname: subject > #+begin_src org > Composing letters using Org mode and the LaTeX isodoc class > #+end_src > > * Opening > #+srcname: opening > #+begin_src org > Dear Org mode users, > #+end_src > > * Body > #+srcname: body > #+begin_src org > Following ideas found here, I am trying to use Org for writing LaTeX lett= ers > at the speed of light. > > The class I'm used to compose with is called isodoc. Very nice. You shoul= d try > it... > > *Problems* encountered /so far/: > - how to insert properly converted tables (to =3DLaTeX=3D)? > | test | hello | > | foo | bar | > - begin an Org block, editing this code adds commas in front of every lin= e... > > That's all for now. > #+end_src > > * Closing > #+srcname: closing > #+begin_src org > Yours Truly > #+end_src > > * Encl > #+srcname: encl > #+begin_src org > I still have to look at how to declare some attached documents. > #+end_src > > * Letter > #+begin_src latex :noweb yes :tangle yes > \documentclass[11pt]{isodoc} > \usepackage[utf8x]{inputenc} > \usepackage[T1]{fontenc} > > %\usepackage[scorpios]{isodoc-style} > \usepackage[mygooglest]{isodoc-style} > > \setupdocument{ > to =3D {% > <>}, > subject =3D {<>}, > opening =3D {<>}, > closing =3D {<>} > } > > \begin{document} > \letter{% > <> > } > \end{document} > #+end_src > > #+results: > #+BEGIN_LaTeX > \documentclass[11pt]{isodoc} > \usepackage[utf8x]{inputenc} > \usepackage[T1]{fontenc} > > %\usepackage[scorpios]{isodoc-style} > \usepackage[mygooglest]{isodoc-style} > > \setupdocument{ > to =3D {% > Org mode user group \\ > World Wide Web}, > subject =3D {Composing letters using Org mode and the LaTeX isodoc cl= ass}, > opening =3D {Dear Org mode users,}, > closing =3D {Yours Truly} > } > > \begin{document} > \letter{% > Following ideas found here, I am trying to use Org for writing LaTeX lett= ers > at the speed of light. > > The class I'm used to compose with is called isodoc. Very nice. You shoul= d try > it... > > *Problems* encountered /so far/: > - how to insert properly converted tables (to =3DLaTeX=3D)? > | test | hello | > | foo | bar | > - begin an Org block, editing this code adds commas in front of every lin= e... > > That's all for now. > } > \end{document} > #+END_LaTeX > > Best regards, > Seb