From: Jambunathan K <kjambunathan@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Composing letters using Org mode and the LaTeX isodoc class
Date: Wed, 08 Sep 2010 00:16:33 +0530 [thread overview]
Message-ID: <81wrqxv1bq.fsf@gmail.com> (raw)
In-Reply-To: <87zkvtn5u7.fsf@mundaneum.com> ("Sébastien Vauban"'s message of "Tue, 07 Sep 2010 13:36:16 +0200")
Hi Sebastien
Tried out isodoc. I like it.
I only wish I had started out with this package rather than
scrlttr2.
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:
[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ébastien Vauban <wxhgmqzgwmuf-geNee64TY+gS+FvcfC7Uqw@public.gmane.org>
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 these 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:
> #+KEYWORDS:
> #+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 letters
> at the speed of light.
>
> The class I'm used to compose with is called isodoc. Very nice. You should try
> it...
>
> *Problems* encountered /so far/:
> - how to insert properly converted tables (to =LaTeX=)?
> | test | hello |
> | foo | bar |
> - begin an Org block, editing this code adds commas in front of every line...
>
> 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 = {%
> <<to>>},
> subject = {<<subject>>},
> opening = {<<opening>>},
> closing = {<<closing>>}
> }
>
> \begin{document}
> \letter{%
> <<body>>
> }
> \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 = {%
> Org mode user group \\
> World Wide Web},
> subject = {Composing letters using Org mode and the LaTeX isodoc class},
> opening = {Dear Org mode users,},
> closing = {Yours Truly}
> }
>
> \begin{document}
> \letter{%
> Following ideas found here, I am trying to use Org for writing LaTeX letters
> at the speed of light.
>
> The class I'm used to compose with is called isodoc. Very nice. You should try
> it...
>
> *Problems* encountered /so far/:
> - how to insert properly converted tables (to =LaTeX=)?
> | test | hello |
> | foo | bar |
> - begin an Org block, editing this code adds commas in front of every line...
>
> That's all for now.
> }
> \end{document}
> #+END_LaTeX
>
> Best regards,
> Seb
next prev parent reply other threads:[~2010-09-07 18:47 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-07 11:36 Composing letters using Org mode and the LaTeX isodoc class Sébastien Vauban
2010-09-07 18:46 ` Jambunathan K [this message]
2010-09-07 19:45 ` Sébastien Vauban
2010-09-08 0:56 ` Eric Schulte
2010-09-08 1:52 ` Thomas S. Dye
2010-09-08 4:39 ` Jambunathan K
2010-09-08 11:48 ` Sébastien Vauban
2010-09-08 15:15 ` Eric Schulte
2010-09-08 16:22 ` [BABEL][PROPOSAL] headlines as executable srcnames Jambunathan K
2010-09-08 21:30 ` Sébastien Vauban
2010-09-09 15:38 ` Jambunathan K
2010-09-09 16:30 ` Jambunathan K
2010-09-10 4:51 ` Jambunathan K
2010-09-20 4:03 ` Eric Schulte
2010-09-20 7:39 ` Jambunathan K
2010-09-20 4:15 ` Eric Schulte
2010-09-08 11:45 ` Composing letters using Org mode and the LaTeX isodoc class Sébastien Vauban
2010-09-08 15:38 ` Eric Schulte
2010-09-08 21:26 ` Sébastien Vauban
2010-09-10 8:51 ` Eric S Fraga
2010-09-10 9:13 ` Sébastien Vauban
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=81wrqxv1bq.fsf@gmail.com \
--to=kjambunathan@gmail.com \
--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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.