* Composing letters using org-mode and scrlttr2
@ 2010-07-25 21:17 Jambunathan K
2010-07-26 15:21 ` Srinivas
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: Jambunathan K @ 2010-07-25 21:17 UTC (permalink / raw)
To: emacs-orgmode
#+TITLE:
#+AUTHOR:
#+EMAIL:
#+LANGUAGE:
#+TEXT:
#+DATE:
#+LaTeX_CLASS_OPTIONS: [a4paper,parskip=full,backaddress=off,foldmarks=off,jambu]
#+OPTIONS: toc:nil
#+LaTeX_CLASS: scrlttr2
* letter
Org Mode User Group \\
World Wide Web
* subject
Composing letters using org-mode and scrlttr2
* opening
Dear Org-Mode Users
* body
Lately, I have been composing formal letters using KOMA script's
scrlttr2. I find it convenient to have them composed auto-magically
from within org-mode.
I am enclosing the initial set of changes needed to compose some
simple letters as this one.
The only change that is too 'intrusive' seems to be an extra newline
which gets added immediately after the emission of labels. These
extra newlines trigger syntax errors in the closing{} and encl{}
directives.
I think rest of the changes could be squeeed in through existing
hooks.
#+BEGIN_EXAMPLE
- (insert (mapconcat (lambda (l) (format "\\label{%s}" l))
- label-list "\n") "\n"))
+ (insert (mapconcat (lambda (l) (format "\\label{%s}" l))
+ label-list "\n")))
#+END_EXAMPLE
If there is some general interest, I could work on making a formal
patch available.
* closing
Yours Truly
* encl
Patch from my work-area.
Jambunathan K.
diff --git a/lisp/org-latex.el b/lisp/org-latex.el
old mode 100644
new mode 100755
index f3a55ee..6a86c35
--- a/lisp/org-latex.el
+++ b/lisp/org-latex.el
@@ -113,8 +113,10 @@
("\\subsubsection{%s}" . "\\subsubsection*{%s}"))
("beamer"
"\\documentclass{beamer}"
- org-beamer-sectioning
- ))
+ org-beamer-sectioning)
+ ("scrlttr2"
+ "\\documentclass{scrlttr2}"
+ org-scrlttr2-sectioning))
"Alist of LaTeX classes and associated header and structure.
If #+LaTeX_CLASS is set in the buffer, use its value and the
associated information. Here is the structure of each cell:
@@ -776,6 +778,9 @@ when PUB-DIR is set, use this as the publishing directory."
(org-export-latex-parse-global level odd)))))
;; finalization
+ (when (string-equal org-export-latex-class "scrlttr2")
+ (insert "\n\\end{letter}"))
+
(unless body-only (insert "\n\\end{document}"))
;; Attach description terms to the \item macro
@@ -1016,8 +1021,8 @@ If NUM, export sections as numerical sections."
(or sub-heading "")))
(insert "\n")
(when label
- (insert (mapconcat (lambda (l) (format "\\label{%s}" l))
- label-list "\n") "\n"))
+ (insert (mapconcat (lambda (l) (format "\\label{%s}" l))
+ label-list "\n")))
(insert (org-export-latex-content content))
(cond ((stringp subcontent) (insert subcontent))
((listp subcontent)
diff --git a/lisp/org-scrlttr2.el b/lisp/org-scrlttr2.el
new file mode 100755
index 0000000..c2b3764
--- /dev/null
+++ b/lisp/org-scrlttr2.el
@@ -0,0 +1,20 @@
+(defun org-scrlttr2-sectioning (level heading)
+ (let ((open "\n\\%s {")
+ (close "}"))
+
+ (setq heading (replace-regexp-in-string "\\s-+" "" heading))
+ (cond
+ ((string-equal heading "subject")
+ (setq open "\n\\setkomavar{%s} {")
+ )
+ ((string-equal heading "letter")
+ (setq open "\n\\begin{%s} {")
+ )
+ ((string-equal heading "body")
+ (setq open "\n")
+ (setq close "\n")
+ )
+ (t 'ignore))
+
+ (list heading open close open close))
+ )
diff --git a/lisp/org.el b/lisp/org.el
index abc57a6..6e2b4a1 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -3677,7 +3677,8 @@ If TABLE-TYPE is non-nil, also check for table.el-type tables."
org-export-icalendar-all-agenda-files
org-export-icalendar-combine-agenda-files))
(org-autoload "org-xoxo" '(org-export-as-xoxo))
- (org-autoload "org-beamer" '(org-beamer-mode org-beamer-sectioning)))
+ (org-autoload "org-beamer" '(org-beamer-mode org-beamer-sectioning))
+ (org-autoload "org-scrlttr2" '(org-scrlttr2-sectioning)))
;; Declare and autoload functions from org-agenda.el
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: Composing letters using org-mode and scrlttr2
2010-07-25 21:17 Composing letters using org-mode and scrlttr2 Jambunathan K
@ 2010-07-26 15:21 ` Srinivas
2010-07-26 15:54 ` Bernt Hansen
2010-07-26 18:47 ` Jambunathan K
2 siblings, 0 replies; 8+ messages in thread
From: Srinivas @ 2010-07-26 15:21 UTC (permalink / raw)
To: emacs-orgmode
> If there is some general interest, I could work on making a formal
> patch available.
>
Jambunathan,
I would be interested in such capabilities. I would like to see a sample PDF
output so that I can see the desired output.
Also, I think it will be useful to see what documents (PDF versions) others
have produced using org-mode and HTML or LATeX. Perhaps this can go on the Worg
site.
- Srinivas
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Composing letters using org-mode and scrlttr2
2010-07-25 21:17 Composing letters using org-mode and scrlttr2 Jambunathan K
2010-07-26 15:21 ` Srinivas
@ 2010-07-26 15:54 ` Bernt Hansen
2010-07-26 16:03 ` John Hendy
2010-07-26 18:47 ` Jambunathan K
2 siblings, 1 reply; 8+ messages in thread
From: Bernt Hansen @ 2010-07-26 15:54 UTC (permalink / raw)
To: Jambunathan K; +Cc: emacs-orgmode
Jambunathan K <kjambunathan@gmail.com> writes:
> If there is some general interest, I could work on making a formal
> patch available.
Hi Jambunathan,
I would also be interested in generating business quality letters from
org-mode. Currently I'm falling back to other applications to
accomplish this efficiently.
Regards,
Bernt
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Re: Composing letters using org-mode and scrlttr2
2010-07-26 15:54 ` Bernt Hansen
@ 2010-07-26 16:03 ` John Hendy
0 siblings, 0 replies; 8+ messages in thread
From: John Hendy @ 2010-07-26 16:03 UTC (permalink / raw)
To: Bernt Hansen; +Cc: emacs-orgmode, Jambunathan K
[-- Attachment #1.1: Type: text/plain, Size: 829 bytes --]
There's a pretty nice example here (seemed like some had not seen
examples?): http://gpl.coulmann.de/scrlttr2.html
<http://gpl.coulmann.de/scrlttr2.html>I think it looks smashing.
On Mon, Jul 26, 2010 at 10:54 AM, Bernt Hansen <bernt@norang.ca> wrote:
> Jambunathan K <kjambunathan@gmail.com> writes:
>
> > If there is some general interest, I could work on making a formal
> > patch available.
>
> Hi Jambunathan,
>
> I would also be interested in generating business quality letters from
> org-mode. Currently I'm falling back to other applications to
> accomplish this efficiently.
>
> Regards,
> Bernt
>
> _______________________________________________
> 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
>
[-- Attachment #1.2: Type: text/html, Size: 1468 bytes --]
[-- Attachment #2: Type: text/plain, Size: 201 bytes --]
_______________________________________________
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
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Composing letters using org-mode and scrlttr2
2010-07-25 21:17 Composing letters using org-mode and scrlttr2 Jambunathan K
2010-07-26 15:21 ` Srinivas
2010-07-26 15:54 ` Bernt Hansen
@ 2010-07-26 18:47 ` Jambunathan K
2010-07-28 14:23 ` Eric Schulte
2 siblings, 1 reply; 8+ messages in thread
From: Jambunathan K @ 2010-07-26 18:47 UTC (permalink / raw)
To: emacs-orgmode
With reference to my earlier post,
(http://lists.gnu.org/archive/html/emacs-orgmode/2010-07/msg01060.html)
I would like to add the following clarification.
> #+LaTeX_CLASS_OPTIONS: [a4paper,parskip=full,backaddress=off,foldmarks=off,jambu]
All the styling and context-specific information comes from 'jambu' in
the LaTeX_CLASS_OPTIONS line. In this case, jambu is 'an lco file'
that in turn loads DIN.lco. (The later file comes with the standard
distribution)
The patch as such doesn't bother with the styling elements but merely
transforms content from org to scrlttr2 form. To illustrate,
* subject
Composing letters using org-mode and scrlttr2
section in org gets transformed in the final letter into the following
TeX form.
\setkomavar{subject} {
\label{sec-2}
Sub:- Composing letters using org-mode and scrlttr2
}
This is done as part of org-scrlttr2-sectioning defun in my earlier
patch.
Jambunathan K.
---> Input Org file <---
#+TITLE:
#+AUTHOR:
#+EMAIL:
#+LANGUAGE:
#+TEXT:
#+LaTeX_CLASS_OPTIONS: [a4paper,fromalign=right,pagenumber=headmiddle,parskip=full,fromphone=true,fromfax=false,fromrule=false,fromemail=true,subject=afteropening,backaddress=off,foldmarks=off,jambu]
#+OPTIONS: toc:nil
#+LaTeX_CLASS: scrlttr2
* letter
Org Mode User Group \\
World Wide Web
* subject
Sub:- Composing letters using org-mode and scrlttr2
* opening
Dear Org Mode Users
* body
Lately, I have been composing formal letters using KOMA script's
sscrlttr2. I found it convenient to have them composed from within
org-mode.
I am enclosing the initial set of changes needed to compose some
simple letters as this one.
The only change that is too 'intrusive' seems to be an extra newline
which gets added immediately after the emission of labels. These
extra newlines trigger syntax errors in the closing{} and encl{}
directives.
I think rest of the changes could be squeeed in through existing
hooks.
#+BEGIN_EXAMPLE
- (insert (mapconcat (lambda (l) (format "\\label{%s}" l))
- label-list "\n") "\n"))
+ (insert (mapconcat (lambda (l) (format "\\label{%s}" l))
+ label-list "\n")))
#+END_EXAMPLE
If there is some general interest, I could work on making a formal
patch available.
* closing
Yours Truly
* encl
Patch from my work-area.
---> Output Tex file <---
% Created 2010-07-26 Mon 23:19
\documentclass[a4paper,fromalign=right,pagenumber=headmiddle,parskip=full,fromphone=true,fromfax=false,fromrule=false,fromemail=true,subject=afteropening,backaddress=off,foldmarks=off,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{}
\author{}
\date{26 July 2010}
\begin{document}
\begin{letter} {
\label{sec-1}
Org Mode User Group \\
World Wide Web
}
\setkomavar{subject} {
\label{sec-2}
Sub:- Composing letters using org-mode and scrlttr2
}
\opening {
\label{sec-3}
Dear Org Mode Users
}
\label{sec-4}
Lately, I have been composing formal letters using KOMA script's
sscrlttr2. I found it convenient to have them composed from within
org-mode.
I am enclosing the initial set of changes needed to compose some
simple letters as this one.
The only change that is too `intrusive' seems to be an extra newline
which gets added immediately after the emission of labels. These
extra newlines trigger syntax errors in the closing\{\} and encl\{\}
directives.
I think rest of the changes could be squeeed in through existing
hooks.
\begin{verbatim}
- (insert (mapconcat (lambda (l) (format "\\label{%s}" l))
- label-list "\n") "\n"))
+ (insert (mapconcat (lambda (l) (format "\\label{%s}" l))
+ label-list "\n")))
\end{verbatim}
If there is some general interest, I could work on making a formal
patch available.
\closing {
\label{sec-5}
Yours Truly
}
\encl {
\label{sec-6}
Patch from my work-area.
}
\end{letter}
\end{document}
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Re: Composing letters using org-mode and scrlttr2
2010-07-26 18:47 ` Jambunathan K
@ 2010-07-28 14:23 ` Eric Schulte
2010-08-21 4:52 ` Carsten Dominik
0 siblings, 1 reply; 8+ messages in thread
From: Eric Schulte @ 2010-07-28 14:23 UTC (permalink / raw)
To: Jambunathan K; +Cc: emacs-orgmode
Hi Jambunathan,
This looks very useful, and the output of scrlttr2 looks great. I think
two things can be done to make this more accessible to the wider
Org-mode community.
First it seems (as you mentioned) like the bulk of your changes can be
implemented without any change to the Org-mode core, but rather by using
existing hooks (e.g. removing newlines in `org-export-latex-final-hook'
and defining a scrlttr2 class in `org-export-latex-classes').
Second, a set of step-by-step instructions documenting how to generate a
letter from an Org-mode file using your patch would make this much more
approachable and would make a good addition to Worg.
I look forward to trying this out.
Thanks -- Eric
Jambunathan K <kjambunathan@gmail.com> writes:
> With reference to my earlier post,
> (http://lists.gnu.org/archive/html/emacs-orgmode/2010-07/msg01060.html)
>
> I would like to add the following clarification.
>
>
>> #+LaTeX_CLASS_OPTIONS: [a4paper,parskip=full,backaddress=off,foldmarks=off,jambu]
>
> All the styling and context-specific information comes from 'jambu' in
> the LaTeX_CLASS_OPTIONS line. In this case, jambu is 'an lco file'
> that in turn loads DIN.lco. (The later file comes with the standard
> distribution)
>
> The patch as such doesn't bother with the styling elements but merely
> transforms content from org to scrlttr2 form. To illustrate,
>
> * subject
> Composing letters using org-mode and scrlttr2
>
> section in org gets transformed in the final letter into the following
> TeX form.
>
> \setkomavar{subject} {
> \label{sec-2}
> Sub:- Composing letters using org-mode and scrlttr2
>
> }
>
> This is done as part of org-scrlttr2-sectioning defun in my earlier
> patch.
>
> Jambunathan K.
>
> ---> Input Org file <---
>
> #+TITLE:
> #+AUTHOR:
> #+EMAIL:
> #+LANGUAGE:
> #+TEXT:
>
> #+LaTeX_CLASS_OPTIONS: [a4paper,fromalign=right,pagenumber=headmiddle,parskip=full,fromphone=true,fromfax=false,fromrule=false,fromemail=true,subject=afteropening,backaddress=off,foldmarks=off,jambu]
>
> #+OPTIONS: toc:nil
> #+LaTeX_CLASS: scrlttr2
>
> * letter
> Org Mode User Group \\
> World Wide Web
>
> * subject
> Sub:- Composing letters using org-mode and scrlttr2
>
> * opening
> Dear Org Mode Users
>
> * body
> Lately, I have been composing formal letters using KOMA script's
> sscrlttr2. I found it convenient to have them composed from within
> org-mode.
>
> I am enclosing the initial set of changes needed to compose some
> simple letters as this one.
>
> The only change that is too 'intrusive' seems to be an extra newline
> which gets added immediately after the emission of labels. These
> extra newlines trigger syntax errors in the closing{} and encl{}
> directives.
>
> I think rest of the changes could be squeeed in through existing
> hooks.
>
> #+BEGIN_EXAMPLE
> - (insert (mapconcat (lambda (l) (format "\\label{%s}" l))
> - label-list "\n") "\n"))
> + (insert (mapconcat (lambda (l) (format "\\label{%s}" l))
> + label-list "\n")))
> #+END_EXAMPLE
>
> If there is some general interest, I could work on making a formal
> patch available.
>
> * closing
> Yours Truly
>
> * encl
> Patch from my work-area.
>
> ---> Output Tex file <---
>
> % Created 2010-07-26 Mon 23:19
> \documentclass[a4paper,fromalign=right,pagenumber=headmiddle,parskip=full,fromphone=true,fromfax=false,fromrule=false,fromemail=true,subject=afteropening,backaddress=off,foldmarks=off,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{}
> \author{}
> \date{26 July 2010}
>
> \begin{document}
>
> \begin{letter} {
> \label{sec-1}
> Org Mode User Group \\
> World Wide Web
>
> }
>
> \setkomavar{subject} {
> \label{sec-2}
> Sub:- Composing letters using org-mode and scrlttr2
>
> }
>
> \opening {
> \label{sec-3}
> Dear Org Mode Users
> }
>
>
> \label{sec-4}
> Lately, I have been composing formal letters using KOMA script's
> sscrlttr2. I found it convenient to have them composed from within
> org-mode.
>
> I am enclosing the initial set of changes needed to compose some
> simple letters as this one.
>
> The only change that is too `intrusive' seems to be an extra newline
> which gets added immediately after the emission of labels. These
> extra newlines trigger syntax errors in the closing\{\} and encl\{\}
> directives.
>
> I think rest of the changes could be squeeed in through existing
> hooks.
>
> \begin{verbatim}
> - (insert (mapconcat (lambda (l) (format "\\label{%s}" l))
> - label-list "\n") "\n"))
> + (insert (mapconcat (lambda (l) (format "\\label{%s}" l))
> + label-list "\n")))
> \end{verbatim}
>
> If there is some general interest, I could work on making a formal
> patch available.
>
>
>
> \closing {
> \label{sec-5}
> Yours Truly
> }
>
> \encl {
> \label{sec-6}
> Patch from my work-area.
> }
>
> \end{letter}
> \end{document}
>
> _______________________________________________
> 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
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Re: Composing letters using org-mode and scrlttr2
2010-07-28 14:23 ` Eric Schulte
@ 2010-08-21 4:52 ` Carsten Dominik
2010-08-21 8:56 ` Jambunathan K
0 siblings, 1 reply; 8+ messages in thread
From: Carsten Dominik @ 2010-08-21 4:52 UTC (permalink / raw)
To: Eric Schulte; +Cc: emacs-orgmode, Jambunathan K
Hi,
Is someone working on producing a clean version of the changes
required to integrate this?
- Carsten
On Jul 28, 2010, at 4:23 PM, Eric Schulte wrote:
> Hi Jambunathan,
>
> This looks very useful, and the output of scrlttr2 looks great. I
> think
> two things can be done to make this more accessible to the wider
> Org-mode community.
>
> First it seems (as you mentioned) like the bulk of your changes can be
> implemented without any change to the Org-mode core, but rather by
> using
> existing hooks (e.g. removing newlines in `org-export-latex-final-
> hook'
> and defining a scrlttr2 class in `org-export-latex-classes').
>
> Second, a set of step-by-step instructions documenting how to
> generate a
> letter from an Org-mode file using your patch would make this much
> more
> approachable and would make a good addition to Worg.
>
> I look forward to trying this out.
>
> Thanks -- Eric
>
> Jambunathan K <kjambunathan@gmail.com> writes:
>
>> With reference to my earlier post,
>> (http://lists.gnu.org/archive/html/emacs-orgmode/2010-07/msg01060.html
>> )
>>
>> I would like to add the following clarification.
>>
>>
>>> #+LaTeX_CLASS_OPTIONS:
>>> [a4paper,parskip=full,backaddress=off,foldmarks=off,jambu]
>>
>> All the styling and context-specific information comes from 'jambu'
>> in
>> the LaTeX_CLASS_OPTIONS line. In this case, jambu is 'an lco file'
>> that in turn loads DIN.lco. (The later file comes with the standard
>> distribution)
>>
>> The patch as such doesn't bother with the styling elements but merely
>> transforms content from org to scrlttr2 form. To illustrate,
>>
>> * subject
>> Composing letters using org-mode and scrlttr2
>>
>> section in org gets transformed in the final letter into the
>> following
>> TeX form.
>>
>> \setkomavar{subject} {
>> \label{sec-2}
>> Sub:- Composing letters using org-mode and scrlttr2
>>
>> }
>>
>> This is done as part of org-scrlttr2-sectioning defun in my earlier
>> patch.
>>
>> Jambunathan K.
>>
>> ---> Input Org file <---
>>
>> #+TITLE:
>> #+AUTHOR:
>> #+EMAIL:
>> #+LANGUAGE:
>> #+TEXT:
>>
>> #+LaTeX_CLASS_OPTIONS:
>> [a4paper
>> ,fromalign
>> =
>> right
>> ,pagenumber
>> =
>> headmiddle
>> ,parskip
>> =
>> full
>> ,fromphone
>> =
>> true
>> ,fromfax
>> =
>> false
>> ,fromrule
>> =
>> false
>> ,fromemail
>> =true,subject=afteropening,backaddress=off,foldmarks=off,jambu]
>>
>> #+OPTIONS: toc:nil
>> #+LaTeX_CLASS: scrlttr2
>>
>> * letter
>> Org Mode User Group \\
>> World Wide Web
>>
>> * subject
>> Sub:- Composing letters using org-mode and scrlttr2
>>
>> * opening
>> Dear Org Mode Users
>>
>> * body
>> Lately, I have been composing formal letters using KOMA script's
>> sscrlttr2. I found it convenient to have them composed from within
>> org-mode.
>>
>> I am enclosing the initial set of changes needed to compose some
>> simple letters as this one.
>>
>> The only change that is too 'intrusive' seems to be an extra newline
>> which gets added immediately after the emission of labels. These
>> extra newlines trigger syntax errors in the closing{} and encl{}
>> directives.
>>
>> I think rest of the changes could be squeeed in through existing
>> hooks.
>>
>> #+BEGIN_EXAMPLE
>> - (insert (mapconcat (lambda (l) (format "\\label{%s}" l))
>> - label-list "\n") "\n"))
>> + (insert (mapconcat (lambda (l) (format "\\label{%s}" l))
>> + label-list "\n")))
>> #+END_EXAMPLE
>>
>> If there is some general interest, I could work on making a formal
>> patch available.
>>
>> * closing
>> Yours Truly
>>
>> * encl
>> Patch from my work-area.
>>
>> ---> Output Tex file <---
>>
>> % Created 2010-07-26 Mon 23:19
>> \documentclass
>> [a4paper
>> ,fromalign
>> =
>> right
>> ,pagenumber
>> =
>> headmiddle
>> ,parskip
>> =
>> full
>> ,fromphone
>> =
>> true
>> ,fromfax
>> =
>> false
>> ,fromrule
>> =
>> false
>> ,fromemail
>> =true,subject=afteropening,backaddress=off,foldmarks=off,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{}
>> \author{}
>> \date{26 July 2010}
>>
>> \begin{document}
>>
>> \begin{letter} {
>> \label{sec-1}
>> Org Mode User Group \\
>> World Wide Web
>>
>> }
>>
>> \setkomavar{subject} {
>> \label{sec-2}
>> Sub:- Composing letters using org-mode and scrlttr2
>>
>> }
>>
>> \opening {
>> \label{sec-3}
>> Dear Org Mode Users
>> }
>>
>>
>> \label{sec-4}
>> Lately, I have been composing formal letters using KOMA script's
>> sscrlttr2. I found it convenient to have them composed from within
>> org-mode.
>>
>> I am enclosing the initial set of changes needed to compose some
>> simple letters as this one.
>>
>> The only change that is too `intrusive' seems to be an extra newline
>> which gets added immediately after the emission of labels. These
>> extra newlines trigger syntax errors in the closing\{\} and encl\{\}
>> directives.
>>
>> I think rest of the changes could be squeeed in through existing
>> hooks.
>>
>> \begin{verbatim}
>> - (insert (mapconcat (lambda (l) (format "\\label{%s}" l))
>> - label-list "\n") "\n"))
>> + (insert (mapconcat (lambda (l) (format "\\label{%s}" l))
>> + label-list "\n")))
>> \end{verbatim}
>>
>> If there is some general interest, I could work on making a formal
>> patch available.
>>
>>
>>
>> \closing {
>> \label{sec-5}
>> Yours Truly
>> }
>>
>> \encl {
>> \label{sec-6}
>> Patch from my work-area.
>> }
>>
>> \end{letter}
>> \end{document}
>>
>> _______________________________________________
>> 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
>
> _______________________________________________
> 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
- Carsten
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Re: Composing letters using org-mode and scrlttr2
2010-08-21 4:52 ` Carsten Dominik
@ 2010-08-21 8:56 ` Jambunathan K
0 siblings, 0 replies; 8+ messages in thread
From: Jambunathan K @ 2010-08-21 8:56 UTC (permalink / raw)
To: Carsten Dominik; +Cc: emacs-orgmode
Hi Carsten
Carsten> Hi, Is someone working on producing a clean version of the
Carsten> changes required to integrate this?
This is in my workqueue. I will followup on this very soon.
Of late, mustering some org-fu and elisp-fu. This is delaying submission
of a cleaner version.
Jambunathan K.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2010-08-21 8:56 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-25 21:17 Composing letters using org-mode and scrlttr2 Jambunathan K
2010-07-26 15:21 ` Srinivas
2010-07-26 15:54 ` Bernt Hansen
2010-07-26 16:03 ` John Hendy
2010-07-26 18:47 ` Jambunathan K
2010-07-28 14:23 ` Eric Schulte
2010-08-21 4:52 ` Carsten Dominik
2010-08-21 8:56 ` Jambunathan K
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).