I am attaching sample files from my work-area for ready consumption.
% Created 2010-09-21 Tue 22:02 \documentclass{isodoc} \usepackage[latin1]{inputenc} \usepackage[T1]{fontenc} \usepackage{fixltx2e} \usepackage{graphicx} \usepackage{longtable} \usepackage{float} \usepackage{wrapfig} \usepackage{soul} \usepackage{t1enc} \usepackage{textcomp} \usepackage{amssymb} \usepackage{hyperref} \tolerance=1000 \usepackage{pdfpages} \usepackage{mystyle} \providecommand{\alert}[1]{\textbf{#1}}
\title{} \author{Jambunathan K} \date{21 September 2010} \begin{document} \letter [ date = 20100921 , to = Orgmode Mailing List \\ GNU Mailing List \\ World Wide Web \\ Internet - 111111 , opening = Friends , subject = Composing letters using isodoc , closing = Thanks , enclosures = org-latex-generic.el org-scrlttr2.el org-isodoc.el org-letter-utils.el , ] { I would like to share with you a little utility that helps me compose formal letters within Org mode. Would you like to try it? } \end{document}
#+LaTeX_CLASS: isodoc #+LATEX_HEADER: \usepackage{mystyle} #+OPTIONS: toc:nil #+TITLE: * letter ** options *** date 20100921 *** to [[bbdb:Orgmode%20Mailing%20List][bbdb:Orgmode Mailing List]] *** opening Friends *** subject Composing letters using isodoc *** closing Thanks *** enclosures org-latex-generic.el org-scrlttr2.el org-isodoc.el org-letter-utils.el ** body I would like to share with you a little utility that helps me compose formal letters within Org mode. Would you like to try it?
#+LaTeX_CLASS: scrlttr2 #+LaTeX_CLASS_OPTIONS: [jambu] #+OPTIONS: toc:nil * letter ** to [[bbdb:Orgmode%20Mailing%20List][bbdb:Orgmode Mailing List]] ** subject Composing letters using scrlttr2 ** opening Friends ** body I would like to share with you a little utility that helps me compose formal letters within Org mode. Would you like to try it? ** encl org-latex-generic.el org-scrlttr2.el org-isodoc.el org-letter-utils.el ** closing Thanks
% Created 2010-09-21 Tue 21:51 \documentclass[jambu]{scrlttr2} \usepackage[latin1]{inputenc} \usepackage[T1]{fontenc} \usepackage{fixltx2e} \usepackage{graphicx} \usepackage{longtable} \usepackage{float} \usepackage{wrapfig} \usepackage{soul} \usepackage{t1enc} \usepackage{textcomp} \usepackage{amssymb} \usepackage{hyperref} \tolerance=1000 \usepackage{pdfpages} \providecommand{\alert}[1]{\textbf{#1}} \title{sample-scrlttr2} \author{Jambunathan K} \date{21 September 2010} \begin{document} \maketitle \begin{letter} { Orgmode Mailing List \\ GNU Mailing List \\ World Wide Web \\ Internet - 111111 \\ Cosmos } \setkomavar{subject} { Composing letters using scrlttr2 } \opening { Friends } I would like to share with you a little utility that helps me compose formal letters within Org mode. Would you like to try it? \encl { org-latex-generic.el org-scrlttr2.el org-isodoc.el org-letter-utils.el } \closing { Thanks } \end{letter} \end{document}
Let me know if you have any questions or suggestions. Jambunathan K. Jambunathan K <kjambunat...@gmail.com> writes: > This is a follow upon my earlier posts in the following threads: > > [1] 'Composing letters using org-mode and scrlttr2' > [2] Composingletters using Org mode and the LaTeX isodoc clas' > > I am attaching four files > - org-latex-generic.el > - org-letter-utils.el > - org-scrlttr2.el > - org-isodoc.el > > Functionality is easily explained by usage rather than by words. > > Usage Notes: > > 1. Load libraries > - (require 'isodoc) > - (require 'scrlttr2) > > 2. C-x C-f 'sample-letter.scrlttr2' and/or 'sample-isodoc.isodoc'. File > extensions are important and they are indicative of the LaTeX classes > targetted for export. > > 3. You will be offered a Org outline structure. Fill in the same. In the > 'To' address field you have an option just to insert a bbdb link as > opposed to the whole address. > > Remember to fill in the LCO file for scrlttr2 and style file for > isodoc. > > 4. Do a C-c C-e l or C-c C-e d. > > 5. See that your letter is nicely exported. > > 6. YMMV. > > Additional Notes: > > Files have helpful docstring. Core functionality is in > org-latex-generic-sectioning. Rest all are bells and whistles. > > ,----[ C-h f org-latex-generic-sectioning RET ] > | org-latex-generic-sectioning is a Lisp function in > | `org-latex-generic.el'. > | > | (org-latex-generic-sectioning LEVEL HEADING) > | > | Rules for emitting Org headings as LaTeX fragments. > | Currently a heading could be configured to start a LaTeX > | environment, emit a LaTeX command, set optional arguments (with > | heading as key and entry body as value) and mandatory > | arguments. See `org-latex-generic-scrlttr2-sectioning-alist' and > | `org-latex-generic-isodoc-sectioning-alist'. > | > | [back] > `---- > > Watch Out For: > > 1. Have no empty lines in .scrlttr2/.isodoc file. If that doesn't help > remove it from the generated tex file. > > I have a strong reason to believe org-latex.el is generating > extraneous newlines in (org-export-latex-subcontent ...) at line 1029 > or thereabouts. > > 2. Have no commas in the bbdb address field. C-h f > org-letter-utils-bbdb-export is probably not upto the task. > > 3. Remove \date directive in the isodoc tex file. > > 4. Also see FIXME notes in the org-latex-generic.el > > > Implementation Notes: > > The key idea is to mirror the LaTeX commands in terms of Org > headlines. Start with C-h f org-latex-generic-sectioning for further > exploring. Try mapping the headline structure of .scrlttr2/.isodoc file > with the corresponding tex file and compare it against the settings of > of different variables in the org-scrlttr2.el/org-isodoc.el > > Footnotes: > [1] http://lists.gnu.org/archive/html/emacs-orgmode/2010-07/msg01060.html > [2] http://lists.gnu.org/archive/html/emacs-orgmode/2010-09/msg00466.html > > > Jambunathan K. > > > Attachments:
_______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode