From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jambunathan K Subject: Re: Generic LaTeX class support (scrlttr2/isodoc) Date: Tue, 21 Sep 2010 23:09:46 +0530 Message-ID: <817hiff125.fsf@gmail.com> References: <81hbhjf1vi.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from [140.186.70.92] (port=52163 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oy6p2-0000uh-Fx for emacs-orgmode@gnu.org; Tue, 21 Sep 2010 13:40:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Oy6p0-0001ab-UJ for emacs-orgmode@gnu.org; Tue, 21 Sep 2010 13:40:04 -0400 Received: from mail-pw0-f41.google.com ([209.85.160.41]:35017) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oy6p0-0001aG-MV for emacs-orgmode@gnu.org; Tue, 21 Sep 2010 13:40:02 -0400 Received: by pwj6 with SMTP id 6so4156329pwj.0 for ; Tue, 21 Sep 2010 10:40:01 -0700 (PDT) In-Reply-To: <81hbhjf1vi.fsf@gmail.com> (Jambunathan K.'s message of "Tue, 21 Sep 2010 22:52:09 +0530") 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 --=-=-= I am attaching sample files from my work-area for ready consumption. --=-=-= Content-Disposition: attachment; filename=sample-isodoc.tex Content-Description: sample-isodoc.tex % 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} --=-=-= Content-Disposition: attachment; filename=sample-isodoc.isodoc Content-Description: sample-isodoc.isodoc #+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? --=-=-= Content-Disposition: attachment; filename=sample-scrlttr2.scrlttr2 Content-Description: sample-scrlttr2.scrlttr2 #+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 --=-=-= Content-Disposition: attachment; filename=sample-scrlttr2.tex Content-Description: sample-scrlttr2.tex % 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 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: --=-=-= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --=-=-=--