* Problem
[not found] <cfb79959-0ac6-737b-cc2a-d16f5b984c86.ref@verizon.net>
@ 2020-04-03 20:49 ` Charles Millar
2020-04-03 21:05 ` Problem with LaTeX class scrlttr2 Charles Millar
` (2 more replies)
0 siblings, 3 replies; 19+ messages in thread
From: Charles Millar @ 2020-04-03 20:49 UTC (permalink / raw)
To: emacs-orgmode@gnu.org
I am attempting to use ox-koma-letter, etc.
My set up
GNU Emacs 28.0.50 (build 84, x86_64-pc-linux-gnu, GTK+ Version 3.24.14,
cairo version 1.16.0) of 2020-04-03
Org mode version 9.3.6 (release_9.3.6-449-gb99357 @
/usr/local/share/org-mode/lisp/)
org-latex-classes includes
"default-koma-letter" "\\documentclass[11pt]{scrlttr2}"
There are no other entries that include scrlttr2 in org-latex-classes
I have a barebones header
#+LATEX_CLASS: scrlttr2 (I also have tried 'default-koma-letter')
and then entered the Romeo to Juliet letter
and i receive the following error
Unknown LaTex class scrlttr2
I searched the list and one suggested problem does not seem to be
applicable - I do not have a mixed org installation.
Any suggestions.
Charlie Millar
^ permalink raw reply [flat|nested] 19+ messages in thread
* Problem with LaTeX class scrlttr2
2020-04-03 20:49 ` Problem Charles Millar
@ 2020-04-03 21:05 ` Charles Millar
2020-04-03 23:19 ` John Hendy
2020-04-04 7:43 ` Problem Robert Klein
2020-04-04 11:30 ` Problem Eric S Fraga
2 siblings, 1 reply; 19+ messages in thread
From: Charles Millar @ 2020-04-03 21:05 UTC (permalink / raw)
To: emacs-orgmode@gnu.org
I apologize for reposting - I forgot to complete my
-------- Forwarded Message --------
Subject: Problem
Date: Fri, 3 Apr 2020 16:49:15 -0400
From: Charles Millar <millarc@verizon.net>
To: emacs-orgmode@gnu.org <emacs-orgmode@gnu.org>
I am attempting to use ox-koma-letter, etc.
My set up
GNU Emacs 28.0.50 (build 84, x86_64-pc-linux-gnu, GTK+ Version 3.24.14,
cairo version 1.16.0) of 2020-04-03
Org mode version 9.3.6 (release_9.3.6-449-gb99357 @
/usr/local/share/org-mode/lisp/)
org-latex-classes includes
"default-koma-letter" "\\documentclass[11pt]{scrlttr2}"
There are no other entries that include scrlttr2 in org-latex-classes
I have a barebones header
#+LATEX_CLASS: scrlttr2 (I also have tried 'default-koma-letter')
and then entered the Romeo to Juliet letter
and i receive the following error
Unknown LaTex class scrlttr2
I searched the list and one suggested problem does not seem to be
applicable - I do not have a mixed org installation.
Any suggestions.
Charlie Millar
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: Problem with LaTeX class scrlttr2
2020-04-03 21:05 ` Problem with LaTeX class scrlttr2 Charles Millar
@ 2020-04-03 23:19 ` John Hendy
2020-04-04 1:25 ` Charles Millar
0 siblings, 1 reply; 19+ messages in thread
From: John Hendy @ 2020-04-03 23:19 UTC (permalink / raw)
To: Charles Millar; +Cc: emacs-orgmode@gnu.org
Please attach an actual .org file so we can test/reproduce.
Generally "unknown latex class" means you don't have the package
installed. How about posting the output of this:
$ tlmgr list --only-installed | grep scrlttr2
John
On Fri, Apr 3, 2020 at 4:06 PM Charles Millar <millarc@verizon.net> wrote:
>
> I apologize for reposting - I forgot to complete my
>
>
> -------- Forwarded Message --------
> Subject: Problem
> Date: Fri, 3 Apr 2020 16:49:15 -0400
> From: Charles Millar <millarc@verizon.net>
> To: emacs-orgmode@gnu.org <emacs-orgmode@gnu.org>
>
> I am attempting to use ox-koma-letter, etc.
>
> My set up
>
> GNU Emacs 28.0.50 (build 84, x86_64-pc-linux-gnu, GTK+ Version 3.24.14,
> cairo version 1.16.0) of 2020-04-03
> Org mode version 9.3.6 (release_9.3.6-449-gb99357 @
> /usr/local/share/org-mode/lisp/)
>
> org-latex-classes includes
>
> "default-koma-letter" "\\documentclass[11pt]{scrlttr2}"
>
> There are no other entries that include scrlttr2 in org-latex-classes
>
> I have a barebones header
>
> #+LATEX_CLASS: scrlttr2 (I also have tried 'default-koma-letter')
>
> and then entered the Romeo to Juliet letter
>
> and i receive the following error
>
> Unknown LaTex class scrlttr2
>
> I searched the list and one suggested problem does not seem to be
> applicable - I do not have a mixed org installation.
>
> Any suggestions.
>
> Charlie Millar
>
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: Problem with LaTeX class scrlttr2
2020-04-03 23:19 ` John Hendy
@ 2020-04-04 1:25 ` Charles Millar
2020-04-04 2:30 ` John Hendy
2020-04-04 6:22 ` Julius Dittmar
0 siblings, 2 replies; 19+ messages in thread
From: Charles Millar @ 2020-04-04 1:25 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 1859 bytes --]
On 4/3/20 7:19 PM, John Hendy wrote:
> Please attach an actual .org file so we can test/reproduce.
>
See attached
> Generally "unknown latex class" means you don't have the package
> installed. How about posting the output of this:
>
> $ tlmgr list --only-installed | grep scrlttr2
>
>
No output; however I have TeXlive package, Debian testing, installed. I
found an example that uses scrlttr2 at
https://tex.stackexchange.com/questions/229032/how-to-add-company-name-to-return-back-address-in-scrlttr2#229037
and ran it using TexStudio - no problem, i.e. resulted with a letter. So
I expect that scrlttr2 is installed as part of the TexLive komascript.
>
> On Fri, Apr 3, 2020 at 4:06 PM Charles Millar <millarc@verizon.net> wrote:
>>
>> I apologize for reposting - I forgot to complete my
>>
>>
>> -------- Forwarded Message --------
>> Subject: Problem
>> Date: Fri, 3 Apr 2020 16:49:15 -0400
>> From: Charles Millar <millarc@verizon.net>
>> To: emacs-orgmode@gnu.org <emacs-orgmode@gnu.org>
>>
>> I am attempting to use ox-koma-letter, etc.
>>
>> My set up
>>
>> GNU Emacs 28.0.50 (build 84, x86_64-pc-linux-gnu, GTK+ Version 3.24.14,
>> cairo version 1.16.0) of 2020-04-03
>> Org mode version 9.3.6 (release_9.3.6-449-gb99357 @
>> /usr/local/share/org-mode/lisp/)
>>
>> org-latex-classes includes
>>
>> "default-koma-letter" "\\documentclass[11pt]{scrlttr2}"
>>
>> There are no other entries that include scrlttr2 in org-latex-classes
>>
>> I have a barebones header
>>
>> #+LATEX_CLASS: scrlttr2 (I also have tried 'default-koma-letter')
>>
>> and then entered the Romeo to Juliet letter
>>
>> and i receive the following error
>>
>> Unknown LaTex class scrlttr2
>>
>> I searched the list and one suggested problem does not seem to be
>> applicable - I do not have a mixed org installation.
>>
>> Any suggestions.
>>
>> Charlie Millar
>>
>
>
[-- Attachment #2: LearnKomaLetter.org --]
[-- Type: text/plain, Size: 2244 bytes --]
#+LATEX_CLASS: scrltttr2
* Preamble :noexport:
#+TITLE: Mis-shapen chaos of well-seeming forms!
#+SUBJECT: Or: org-mode and KOMA-Script letters
#+DATE: 1580
#+AUTHOR: Romeo
#+PLACE: Verona, Italy
#+LCO: DINmtext
# NOTE: Check the KOMA-Script manual to find a LCO that fits the
# envelope standards of your country.
# NOTE: Change the order of the backletter, use smart quotes and
# include backaddress
#+OPTIONS: after-closing-order:(my_after_signature ps cc encl)
#+options: ':t backaddress:t subject:centered
# Remove the first header
#+LATEX_HEADER: \setkomavar{firsthead}{}
* To-address of the lovely Juliet :to:
# NOTE: Explicit newlines are not necessary in TO and FROM
Juliet
House of Capulet
Verona
* From :from:
House of Montague
Verona
* Location :location:
#+LATEX_HEADER: \usepackage{tikz}
#+BEGIN_CENTER
*Montague*
#+BEGIN_EXPORT latex
\tikz \draw (0,0) --+ (0,-1)
arc [radius=1, start angle=-180, end angle=0]
--+ (0,1) -- cycle
node [below=1.5em,midway] {\bfseries M};
#+END_EXPORT
#+END_CENTER
* Dear Juliet,
# NOTE: Your letter is the first non-special heading. The title of
# this heading may used as an opening.
#+BEGIN_VERSE
Then plainly know my heart's dear love is set
On the fair daughter of rich Capulet:
As mine on hers, so hers is set on mine;
And all combin'd, save what thou must combine
By holy marriage: when, and where, and how
We met, we woo'd, and made exchange of vow,
I'll tell thee as we pass; but this I pray,
That thou consent to marry us to-day.
#+END_VERSE
* Yours truly, :closing:
Romeo of House Montague
* some arbitrary LaTeX code :my_after_signature:
#+BEGIN_EXPORT latex
% this special heading was added dynamically.
#+END_EXPORT
* PS :ps:
PS: "PS" is not typeset automatically by KOMA-Script
@@latex:\noindent@@ PPS: This is a feature!
* CC :cc:
Paris and Lawrence.
* ENCL :encl:
See also [[https://en.wikisource.org/wiki/The_Tragedy_of_Romeo_and_Juliet][The Tragedy of Romeo and Juliet]]
* some more arbitrary LaTeX code :after_letter:
#+BEGIN_EXPORT latex
% here we can place random LaTeX code, e.g. including PDFs via the pdfpages package.
#+END_EXPORT
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: Problem with LaTeX class scrlttr2
2020-04-04 1:25 ` Charles Millar
@ 2020-04-04 2:30 ` John Hendy
2020-04-04 12:01 ` Charles Millar
2020-04-04 6:22 ` Julius Dittmar
1 sibling, 1 reply; 19+ messages in thread
From: John Hendy @ 2020-04-04 2:30 UTC (permalink / raw)
To: Charles Millar; +Cc: emacs-orgmode
Thanks! Saves a lot of time to recreate an example.
I get the same error, but wouldn't you know I'm on TexLive 2019 which
must have just hit end of life... tlmgr says it's frozen and won't let
me try and add new packages. I do want to help but am not going to
update to 2020 for this :)
One thing popped out to me...
#+LATEX_CLASS: scrltttr2
Is that a typo (ttt, not tt)? If someone doesn't get to this before
me, I'll try again after I update TL 2020 over the weekend.
Best regards,
John
On Fri, Apr 3, 2020 at 8:26 PM Charles Millar <millarc@verizon.net> wrote:
>
> On 4/3/20 7:19 PM, John Hendy wrote:
> > Please attach an actual .org file so we can test/reproduce.
> >
>
> See attached
> > Generally "unknown latex class" means you don't have the package
> > installed. How about posting the output of this:
> >
> > $ tlmgr list --only-installed | grep scrlttr2
> >
> >
> No output; however I have TeXlive package, Debian testing, installed. I
> found an example that uses scrlttr2 at
>
> https://tex.stackexchange.com/questions/229032/how-to-add-company-name-to-return-back-address-in-scrlttr2#229037
>
> and ran it using TexStudio - no problem, i.e. resulted with a letter. So
> I expect that scrlttr2 is installed as part of the TexLive komascript.
> >
> > On Fri, Apr 3, 2020 at 4:06 PM Charles Millar <millarc@verizon.net> wrote:
> >>
> >> I apologize for reposting - I forgot to complete my
> >>
> >>
> >> -------- Forwarded Message --------
> >> Subject: Problem
> >> Date: Fri, 3 Apr 2020 16:49:15 -0400
> >> From: Charles Millar <millarc@verizon.net>
> >> To: emacs-orgmode@gnu.org <emacs-orgmode@gnu.org>
> >>
> >> I am attempting to use ox-koma-letter, etc.
> >>
> >> My set up
> >>
> >> GNU Emacs 28.0.50 (build 84, x86_64-pc-linux-gnu, GTK+ Version 3.24.14,
> >> cairo version 1.16.0) of 2020-04-03
> >> Org mode version 9.3.6 (release_9.3.6-449-gb99357 @
> >> /usr/local/share/org-mode/lisp/)
> >>
> >> org-latex-classes includes
> >>
> >> "default-koma-letter" "\\documentclass[11pt]{scrlttr2}"
> >>
> >> There are no other entries that include scrlttr2 in org-latex-classes
> >>
> >> I have a barebones header
> >>
> >> #+LATEX_CLASS: scrlttr2 (I also have tried 'default-koma-letter')
> >>
> >> and then entered the Romeo to Juliet letter
> >>
> >> and i receive the following error
> >>
> >> Unknown LaTex class scrlttr2
> >>
> >> I searched the list and one suggested problem does not seem to be
> >> applicable - I do not have a mixed org installation.
> >>
> >> Any suggestions.
> >>
> >> Charlie Millar
> >>
> >
> >
>
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: Problem with LaTeX class scrlttr2
2020-04-04 1:25 ` Charles Millar
2020-04-04 2:30 ` John Hendy
@ 2020-04-04 6:22 ` Julius Dittmar
2020-04-04 12:03 ` Charles Millar
1 sibling, 1 reply; 19+ messages in thread
From: Julius Dittmar @ 2020-04-04 6:22 UTC (permalink / raw)
To: emacs-orgmode
How do you produce (or try to produce) LaTeX/pdf?
The Unknown LaTeX class message is something emacs throws when using
export to latex (C-c C-e l l). This has nothing to do with your LaTeX
installation; it does not reach the point of invoking LaTeX. It tells
you there's no setup for scrlttr2 class in org-latex-classes. There is
no setup for default-koma-letter either in my version of
org-latex-classes. Perhaps you need to load ox-koma-letter in org first?
HTH,
Julius
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: Problem
2020-04-03 20:49 ` Problem Charles Millar
2020-04-03 21:05 ` Problem with LaTeX class scrlttr2 Charles Millar
@ 2020-04-04 7:43 ` Robert Klein
2020-04-04 11:34 ` Problem Eric S Fraga
2020-04-04 12:19 ` Problem Charles Millar
2020-04-04 11:30 ` Problem Eric S Fraga
2 siblings, 2 replies; 19+ messages in thread
From: Robert Klein @ 2020-04-04 7:43 UTC (permalink / raw)
To: Charles Millar; +Cc: emacs-orgmode@gnu.org
Hi,
I use ox-koma-letter, and have nothing concerning koma n
org-latex-classes:
- ensure ox-koma-letter is installed
- to install it, add to your local.mk:
#+begin_src text
ORG_ADD_CONTRIB = ox-koma-letter
#+end_src
- (require 'ox-koma-letter) in your .emacs
- export using C-c C-e k p (for pdf; l for LaTeX)
- #+LaTeX_CLASS: scrlttr2
(two t's, not three)
Best regards
Robert
On Fri, 3 Apr 2020 16:49:15 -0400
Charles Millar <millarc@verizon.net> wrote:
> I am attempting to use ox-koma-letter, etc.
>
> My set up
>
> GNU Emacs 28.0.50 (build 84, x86_64-pc-linux-gnu, GTK+ Version
> 3.24.14, cairo version 1.16.0) of 2020-04-03
> Org mode version 9.3.6 (release_9.3.6-449-gb99357 @
> /usr/local/share/org-mode/lisp/)
>
> org-latex-classes includes
>
> "default-koma-letter" "\\documentclass[11pt]{scrlttr2}"
>
> There are no other entries that include scrlttr2 in org-latex-classes
>
> I have a barebones header
>
> #+LATEX_CLASS: scrlttr2 (I also have tried 'default-koma-letter')
>
> and then entered the Romeo to Juliet letter
>
> and i receive the following error
>
> Unknown LaTex class scrlttr2
>
> I searched the list and one suggested problem does not seem to be
> applicable - I do not have a mixed org installation.
>
> Any suggestions.
>
> Charlie Millar
>
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: Problem
2020-04-03 20:49 ` Problem Charles Millar
2020-04-03 21:05 ` Problem with LaTeX class scrlttr2 Charles Millar
2020-04-04 7:43 ` Problem Robert Klein
@ 2020-04-04 11:30 ` Eric S Fraga
2020-04-04 17:13 ` Problem Charles Millar
2 siblings, 1 reply; 19+ messages in thread
From: Eric S Fraga @ 2020-04-04 11:30 UTC (permalink / raw)
To: Charles Millar; +Cc: emacs-orgmode@gnu.org
On Friday, 3 Apr 2020 at 16:49, Charles Millar wrote:
> org-latex-classes includes
>
> "default-koma-letter" "\\documentclass[11pt]{scrlttr2}"
>
> There are no other entries that include scrlttr2 in org-latex-classes
>
> I have a barebones header
>
> #+LATEX_CLASS: scrlttr2 (I also have tried 'default-koma-letter')
It should be default-koma-letter here.
To figure out what is wrong, you may wish to export to LaTeX first and
then have a look at what has been generated.
In any case, to use the letter style, I have the following in my org
customization:
(require 'ox-koma-letter)
and then use the "k" option for the exporter (C-c C-e k) to export as a
letter.
--
: Eric S Fraga via Emacs 28.0.50, Org release_9.3.6-438-g5b9698
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: Problem
2020-04-04 7:43 ` Problem Robert Klein
@ 2020-04-04 11:34 ` Eric S Fraga
2020-04-04 12:22 ` Problem Charles Millar
2020-04-04 12:19 ` Problem Charles Millar
1 sibling, 1 reply; 19+ messages in thread
From: Eric S Fraga @ 2020-04-04 11:34 UTC (permalink / raw)
To: Robert Klein; +Cc: emacs-orgmode@gnu.org, Charles Millar
On Saturday, 4 Apr 2020 at 09:43, Robert Klein wrote:
> I use ox-koma-letter, and have nothing concerning koma n
> org-latex-classes:
>
> - #+LaTeX_CLASS: scrlttr2
I am surprised that this works. ox-koma-letter does the following:
#+begin_src elisp
(unless (assoc "default-koma-letter" org-latex-classes)
(add-to-list 'org-latex-classes
'("default-koma-letter" "\\documentclass[11pt]{scrlttr2}")))
#+end_src
and so you should be using default-koma-letter here.
Unless, of course, you have defined your own scrlttr2 org LaTeX class
somewhere (although you say you have not)?
--
: Eric S Fraga via Emacs 28.0.50, Org release_9.3.6-438-g5b9698
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: Problem with LaTeX class scrlttr2
2020-04-04 2:30 ` John Hendy
@ 2020-04-04 12:01 ` Charles Millar
0 siblings, 0 replies; 19+ messages in thread
From: Charles Millar @ 2020-04-04 12:01 UTC (permalink / raw)
To: emacs-orgmode
On 4/3/20 10:30 PM, John Hendy wrote:
> Thanks! Saves a lot of time to recreate an example.
>
> I get the same error, but wouldn't you know I'm on TexLive 2019 which
> must have just hit end of life... tlmgr says it's frozen and won't let
> me try and add new packages. I do want to help but am not going to
> update to 2020 for this :)
>
> One thing popped out to me...
>
> #+LATEX_CLASS: scrltttr2
>
> Is that a typo (ttt, not tt)? If someone doesn't get to this before
> me, I'll try again after I update TL 2020 over the weekend.
Probably the third or fourth time I entered a LATEX_CLASS, and the last
time if was a typo. I corrected it to make sure and still have the same
result.
Also, I had already added to my init file (require 'ox-koma-letter) and
(add-to-list 'org-latex-packages-alist '("AUTO" "babel" t ("pdflatex")))
as instructed in the Worg tutorial.
>
> On Fri, Apr 3, 2020 at 8:26 PM Charles Millar <millarc@verizon.net> wrote:
>>
>> On 4/3/20 7:19 PM, John Hendy wrote:
>>> Please attach an actual .org file so we can test/reproduce.
>>>
>>
>> See attached
>>> Generally "unknown latex class" means you don't have the package
>>> installed. How about posting the output of this:
>>>
>>> $ tlmgr list --only-installed | grep scrlttr2
>>>
>> >
>> No output; however I have TeXlive package, Debian testing, installed. I
>> found an example that uses scrlttr2 at
>>
>> https://tex.stackexchange.com/questions/229032/how-to-add-company-name-to-return-back-address-in-scrlttr2#229037
>>
>> and ran it using TexStudio - no problem, i.e. resulted with a letter. So
>> I expect that scrlttr2 is installed as part of the TexLive komascript.
>>>
>>> On Fri, Apr 3, 2020 at 4:06 PM Charles Millar <millarc@verizon.net> wrote:
>>>>
>>>> I apologize for reposting - I forgot to complete my
>>>>
>>>>
>>>> -------- Forwarded Message --------
>>>> Subject: Problem
>>>> Date: Fri, 3 Apr 2020 16:49:15 -0400
>>>> From: Charles Millar <millarc@verizon.net>
>>>> To: emacs-orgmode@gnu.org <emacs-orgmode@gnu.org>
>>>>
>>>> I am attempting to use ox-koma-letter, etc.
>>>>
>>>> My set up
>>>>
>>>> GNU Emacs 28.0.50 (build 84, x86_64-pc-linux-gnu, GTK+ Version 3.24.14,
>>>> cairo version 1.16.0) of 2020-04-03
>>>> Org mode version 9.3.6 (release_9.3.6-449-gb99357 @
>>>> /usr/local/share/org-mode/lisp/)
>>>>
>>>> org-latex-classes includes
>>>>
>>>> "default-koma-letter" "\\documentclass[11pt]{scrlttr2}"
>>>>
>>>> There are no other entries that include scrlttr2 in org-latex-classes
>>>>
>>>> I have a barebones header
>>>>
>>>> #+LATEX_CLASS: scrlttr2 (I also have tried 'default-koma-letter')
>>>>
>>>> and then entered the Romeo to Juliet letter
>>>>
>>>> and i receive the following error
>>>>
>>>> Unknown LaTex class scrlttr2
>>>>
>>>> I searched the list and one suggested problem does not seem to be
>>>> applicable - I do not have a mixed org installation.
>>>>
>>>> Any suggestions.
>>>>
>>>> Charlie Millar
>>>>
>>>
>>>
>>
>
>
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: Problem with LaTeX class scrlttr2
2020-04-04 6:22 ` Julius Dittmar
@ 2020-04-04 12:03 ` Charles Millar
0 siblings, 0 replies; 19+ messages in thread
From: Charles Millar @ 2020-04-04 12:03 UTC (permalink / raw)
To: emacs-orgmode
On 4/4/20 2:22 AM, Julius Dittmar wrote:
> How do you produce (or try to produce) LaTeX/pdf?
>
> The Unknown LaTeX class message is something emacs throws when using
> export to latex (C-c C-e l l). This has nothing to do with your LaTeX
> installation; it does not reach the point of invoking LaTeX. It tells
> you there's no setup for scrlttr2 class in org-latex-classes. There is
> no setup for default-koma-letter either in my version of
> org-latex-classes. Perhaps you need to load ox-koma-letter in org first?
>
Thanks for replying, Julius.
When I was setting up I added to my init file (require 'ox-koma-letter)
and (add-to-list 'org-latex-packages-alist '("AUTO" "babel" t
("pdflatex"))) as instructed in the Worg tutorial.
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: Problem
2020-04-04 7:43 ` Problem Robert Klein
2020-04-04 11:34 ` Problem Eric S Fraga
@ 2020-04-04 12:19 ` Charles Millar
1 sibling, 0 replies; 19+ messages in thread
From: Charles Millar @ 2020-04-04 12:19 UTC (permalink / raw)
To: emacs-orgmode
On 4/4/20 3:43 AM, Robert Klein wrote:
> Hi,
Thank you for replying, Robert,
> I use ox-koma-letter, and have nothing concerning koma n
> org-latex-classes:
>
> - ensure ox-koma-letter is installed
> - to install it, add to your local.mk:
> #+begin_src text
> ORG_ADD_CONTRIB = ox-koma-letter
> #+end_src
>
> - (require 'ox-koma-letter) in your .emacs
I had already added to my init file (require 'ox-koma-letter) and
(add-to-list 'org-latex-packages-alist '("AUTO" "babel" t ("pdflatex")))
as instructed in the Worg tutorial.
>
> - export using C-c C-e k p (for pdf; l for LaTeX)
Actually I tried all four koma-letter export options and had the same
result.
>
> - #+LaTeX_CLASS: scrlttr2
>
> (two t's, not three)
I was alternating between scrlttr2 and default-koma-letter and the last
time I put in the extra "t". I have corrected it and still receive the
unknon latex class message. As mentioned in my earlier email I confirmed
that my org-latex-classes includes ("default-koma-letter"
"\\documentclass[11pt]{scrlttr2}")
I also added (add-to-list 'org-latex-packages-alist '("AUTO" "babel" t
("pdflatex"))) to my init file.
> Best regards
> Robert
>
> On Fri, 3 Apr 2020 16:49:15 -0400
> Charles Millar <millarc@verizon.net> wrote:
>
>> I am attempting to use ox-koma-letter, etc.
>>
>> My set up
>>
>> GNU Emacs 28.0.50 (build 84, x86_64-pc-linux-gnu, GTK+ Version
>> 3.24.14, cairo version 1.16.0) of 2020-04-03
>> Org mode version 9.3.6 (release_9.3.6-449-gb99357 @
>> /usr/local/share/org-mode/lisp/)
>>
>> org-latex-classes includes
>>
>> "default-koma-letter" "\\documentclass[11pt]{scrlttr2}"
>>
>> There are no other entries that include scrlttr2 in org-latex-classes
>>
>> I have a barebones header
>>
>> #+LATEX_CLASS: scrlttr2 (I also have tried 'default-koma-letter')
>>
>> and then entered the Romeo to Juliet letter
>>
>> and i receive the following error
>>
>> Unknown LaTex class scrlttr2
>>
>> I searched the list and one suggested problem does not seem to be
>> applicable - I do not have a mixed org installation.
>>
>> Any suggestions.
>>
>> Charlie Millar
>>
>
>
>
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: Problem
2020-04-04 11:34 ` Problem Eric S Fraga
@ 2020-04-04 12:22 ` Charles Millar
0 siblings, 0 replies; 19+ messages in thread
From: Charles Millar @ 2020-04-04 12:22 UTC (permalink / raw)
To: emacs-orgmode
On 4/4/20 7:34 AM, Eric S Fraga wrote:
> On Saturday, 4 Apr 2020 at 09:43, Robert Klein wrote:
Thank you for your suggestions, Eric.
>> I use ox-koma-letter, and have nothing concerning koma n
>> org-latex-classes:
>>
>> - #+LaTeX_CLASS: scrlttr2
>
> I am surprised that this works. ox-koma-letter does the following:
>
> #+begin_src elisp
> (unless (assoc "default-koma-letter" org-latex-classes)
> (add-to-list 'org-latex-classes
> '("default-koma-letter" "\\documentclass[11pt]{scrlttr2}")))
> #+end_src
>
> and so you should be using default-koma-letter here.
I was alternating between scrlttr2 and default-koma-letter and the last
time I put in the extra "t". I have corrected it and still receive the
unknon latex class message.
>
> Unless, of course, you have defined your own scrlttr2 org LaTeX class
> somewhere (although you say you have not)?
Not that sophisticated - yet.
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: Problem
2020-04-04 11:30 ` Problem Eric S Fraga
@ 2020-04-04 17:13 ` Charles Millar
2020-04-06 8:37 ` Problem Eric S Fraga
0 siblings, 1 reply; 19+ messages in thread
From: Charles Millar @ 2020-04-04 17:13 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 963 bytes --]
On 4/4/20 7:30 AM, Eric S Fraga wrote:
> On Friday, 3 Apr 2020 at 16:49, Charles Millar wrote:
>> org-latex-classes includes
>>
>> "default-koma-letter" "\\documentclass[11pt]{scrlttr2}"
>>
>> There are no other entries that include scrlttr2 in org-latex-classes
>>
>> I have a barebones header
>>
>> #+LATEX_CLASS: scrlttr2 (I also have tried 'default-koma-letter')
>
> It should be default-koma-letter here.
>
> To figure out what is wrong, you may wish to export to LaTeX first and
> then have a look at what has been generated.
>
> In any case, to use the letter style, I have the following in my org
> customization:
>
> (require 'ox-koma-letter)
>
> and then use the "k" option for the exporter (C-c C-e k) to export as a
> letter.
>
OK, started over.
Please see attached backtrace and the file I used.
Also, in my init file I commented out my customized latex classes, just
in case. See attached latex-classes file for the org-latex-classes.
[-- Attachment #2: KomaLetterExportBacktrace --]
[-- Type: text/plain, Size: 7526 bytes --]
Debugger entered--Lisp error: (wrong-type-argument char-or-string-p nil)
format-spec(nil ((116 . #("Mis-shapen chaos of well-seeming forms!" 0 39 (:parent (#("Mis-shapen chaos of well-seeming forms!" 0 39 (:parent #7)))))) (97 . #("Romeo" 0 5 (:parent (#("Romeo" 0 5 (:parent #8)))))) (116 . #("Mis-shapen chaos of well-seeming forms!" 0 39 (:parent (#("Mis-shapen chaos of well-seeming forms!" 0 39 (:parent #9)))))) (115 . "") (107 . "") (100 . "") (99 . "Emacs 28.0.50 (Org mode 9.3.6)") (108 . "english") (76 . "English") (68 #("1580" 0 4 (:parent #13)))))
(concat (if (and with-subject (not (eq with-subject t))) (progn (format "\\KOMAoption{subject}{%s}\n" (if (symbolp with-subject) with-subject (mapconcat #'symbol-name with-subject ","))))) (format-spec hyperref-template spec) "\\begin{document}\n\n" (if subject (progn (format "\\setkomavar{subject}{%s}\n" subject))) (if title (progn (format "\\setkomavar{title}{%s}\n" title))) (if (or (org-string-nw-p title) (org-string-nw-p subject)) (progn "\n")))
(let* ((with-subject (plist-get info :with-subject)) (with-title (plist-get info :with-title)) (title-as-subject (and with-subject (plist-get info :with-title-as-subject))) (subject* (org-string-nw-p (org-export-data (plist-get info :subject) info))) (title* (and with-title (org-string-nw-p (org-export-data (plist-get info :title) info)))) (subject (cond ((not with-subject) nil) (title-as-subject (or subject* title*)) (t subject*))) (title (cond ((not with-title) nil) (title-as-subject (and subject* title*)) (t title*))) (hyperref-template (plist-get info :latex-hyperref-template)) (spec (append (list (cons 116 (or title subject ""))) (org-latex--format-spec info)))) (concat (if (and with-subject (not (eq with-subject t))) (progn (format "\\KOMAoption{subject}{%s}\n" (if (symbolp with-subject) with-subject (mapconcat #'symbol-name with-subject ","))))) (format-spec hyperref-template spec) "\\begin{document}\n\n" (if subject (progn (format "\\setkomavar{subject}{%s}\n" subject))) (if title (progn (format "\\setkomavar{title}{%s}\n" title))) (if (or (org-string-nw-p title) (org-string-nw-p subject)) (progn "\n"))))
(concat (and (plist-get info :time-stamp-file) (format-time-string "%% Created %Y-%m-%d %a %H:%M\n")) (org-latex--insert-compiler info) (org-latex-make-preamble info) (org-koma-letter--build-settings 'global info) (mapconcat #'(lambda (file) (format "\\LoadLetterOption{%s}\n" file)) (split-string (or (plist-get info :lco) "")) "") (org-koma-letter--build-settings 'buffer info) (format "\\date{%s}\n" (org-export-data (org-export-get-date info) info)) (let* ((with-subject (plist-get info :with-subject)) (with-title (plist-get info :with-title)) (title-as-subject (and with-subject (plist-get info :with-title-as-subject))) (subject* (org-string-nw-p (org-export-data (plist-get info :subject) info))) (title* (and with-title (org-string-nw-p (org-export-data (plist-get info :title) info)))) (subject (cond ((not with-subject) nil) (title-as-subject (or subject* title*)) (t subject*))) (title (cond ((not with-title) nil) (title-as-subject (and subject* title*)) (t title*))) (hyperref-template (plist-get info :latex-hyperref-template)) (spec (append (list (cons 116 (or title subject ""))) (org-latex--format-spec info)))) (concat (if (and with-subject (not (eq with-subject t))) (progn (format "\\KOMAoption{subject}{%s}\n" (if (symbolp with-subject) with-subject (mapconcat ... with-subject ","))))) (format-spec hyperref-template spec) "\\begin{document}\n\n" (if subject (progn (format "\\setkomavar{subject}{%s}\n" subject))) (if title (progn (format "\\setkomavar{title}{%s}\n" title))) (if (or (org-string-nw-p title) (org-string-nw-p subject)) (progn "\n")))) (let ((keyword-val (plist-get info :to-address)) (heading-val (org-koma-letter--get-tagged-contents 'to))) (format "\\begin{letter}{%%\n%s}\n\n" (org-koma-letter--add-latex-newlines (or (if (plist-get info :special-headings) (or heading-val keyword-val) (or keyword-val heading-val)) "\\mbox{}")))) (format "\\opening{%s}\n\n" (org-koma-letter--keyword-or-headline :opening #'(lambda (h i) (not (org-koma-letter--special-tag h i))) info)) contents (format "\\closing{%s}\n" (org-koma-letter--keyword-or-headline :closing #'(lambda (h i) (let ((special-tag ...)) (and special-tag (string= "closing" special-tag)))) info)) (org-koma-letter--special-contents-inline (plist-get info :special-tags-after-closing) info) "\n\\end{letter}\n" (org-koma-letter--special-contents-inline (plist-get info :special-tags-after-letter) info) "\n\\end{document}")
org-koma-letter-template(#("\n\n\n\\begin{verse}\nThen plai..." 17 62 (:parent (verse-block ... ...)) 65 102 (:parent (verse-block ... ...)) 105 145 (:parent (verse-block ... ...)) 148 193 (:parent (verse-block ... ...)) 196 238 (:parent (verse-block ... ...)) 241 284 (:parent (verse-block ... ...)) 287 330 (:parent (verse-block ... ...)) 333 370 (:parent (verse-block ... ...)) ...) (:export-options nil :back-end #s(org-export-backend :name koma-letter :parent latex :transcoders (... ... ... ... ...) :options (... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...) :filters nil :blocks nil :menu (107 "Export with KOMA Scrlttr2" ...)) :translate-alist ((export-block . org-koma-letter-export-block) (export-snippet . org-koma-letter-export-snippet) (headline . org-koma-letter-headline) (keyword . org-koma-letter-keyword) (template . org-koma-letter-template) (bold . org-latex-bold) (center-block . org-latex-center-block) (clock . org-latex-clock) (code . org-latex-code) (drawer . org-latex-drawer) (dynamic-block . org-latex-dynamic-block) (entity . org-latex-entity) (example-block . org-latex-example-block) (export-block . org-latex-export-block) (export-snippet . org-latex-export-snippet) (fixed-width . org-latex-fixed-width) (footnote-definition . org-latex-footnote-definition) (footnote-reference . org-latex-footnote-reference) (headline . org-latex-headline) (horizontal-rule . org-latex-horizontal-rule) (inline-src-block . org-latex-inline-src-block) (inlinetask . org-latex-inlinetask) (italic . org-latex-italic) (item . org-latex-item) (keyword . org-latex-keyword) (latex-environment . org-latex-latex-environment) ...) :exported-data #<hash-table eq 61/4001 0x155cb7abc4b9> :input-buffer "LearnKomaLetter.org" :input-file "/mnt/Data/ActiveFiles/Lear..." :latex-class "default-koma-letter" :lco "DINmtext" :author (#("Romeo" 0 5 ...)) :author-changed-in-buffer-p "Romeo" :from-address "" :phone-number "" :url "" ...))
org-export-as(koma-letter nil nil nil (:output-file "LearnKomaLetter.tex"))
org-export-to-file(koma-letter "LearnKomaLetter.tex" nil nil nil nil nil (lambda (file) (org-latex-compile file)))
(let ((file (org-export-output-file-name ".tex" subtreep)) (org-koma-letter-special-contents)) (org-export-to-file 'koma-letter file async subtreep visible-only body-only ext-plist #'(lambda (file) (org-latex-compile file))))
org-koma-letter-export-to-pdf(nil nil nil nil)
(org-open-file (org-koma-letter-export-to-pdf nil s v b))
(if a (org-koma-letter-export-to-pdf t s v b) (org-open-file (org-koma-letter-export-to-pdf nil s v b)))
(lambda (a s v b) (if a (org-koma-letter-export-to-pdf t s v b) (org-open-file (org-koma-letter-export-to-pdf nil s v b))))(nil nil nil nil)
org-export-dispatch(nil)
funcall-interactively(org-export-dispatch nil)
call-interactively(org-export-dispatch nil nil)
command-execute(org-export-dispatch)
[-- Attachment #3: LearnKomaLetter.org --]
[-- Type: text/plain, Size: 2253 bytes --]
#+LATEX_CLASS: default-koma-letter
* Preamble :noexport:
#+TITLE: Mis-shapen chaos of well-seeming forms!
#+SUBJECT: Or: org-mode and KOMA-Script letters
#+DATE: 1580
#+AUTHOR: Romeo
#+PLACE: Verona, Italy
#+LCO: DINmtext
# NOTE: Check the KOMA-Script manual to find a LCO that fits the
# envelope standards of your country.
# NOTE: Change the order of the backletter, use smart quotes and
# include backaddress
#+OPTIONS: after-closing-order:(my_after_signature ps cc encl)
#+options: ':t backaddress:t subject:centered
# Remove the first header
#+LATEX_HEADER: \setkomavar{firsthead}{}
* To-address of the lovely Juliet :to:
# NOTE: Explicit newlines are not necessary in TO and FROM
Juliet
House of Capulet
Verona
* From :from:
House of Montague
Verona
* Location :location:
#+LATEX_HEADER: \usepackage{tikz}
#+BEGIN_CENTER
*Montague*
#+BEGIN_EXPORT latex
\tikz \draw (0,0) --+ (0,-1)
arc [radius=1, start angle=-180, end angle=0]
--+ (0,1) -- cycle
node [below=1.5em,midway] {\bfseries M};
#+END_EXPORT
#+END_CENTER
* Dear Juliet,
# NOTE: Your letter is the first non-special heading. The title of
# this heading may used as an opening.
#+BEGIN_VERSE
Then plainly know my heart's dear love is set
On the fair daughter of rich Capulet:
As mine on hers, so hers is set on mine;
And all combin'd, save what thou must combine
By holy marriage: when, and where, and how
We met, we woo'd, and made exchange of vow,
I'll tell thee as we pass; but this I pray,
That thou consent to marry us to-day.
#+END_VERSE
* Yours truly, :closing:
Romeo of House Montague
* some arbitrary LaTeX code :my_after_signature:
#+BEGIN_EXPORT latex
% this special heading was added dynamically.
#+END_EXPORT
* PS :ps:
PS: "PS" is not typeset automatically by KOMA-Script
@@latex:\noindent@@ PPS: This is a feature!
* CC :cc:
Paris and Lawrence.
* ENCL :encl:
See also [[https://en.wikisource.org/wiki/The_Tragedy_of_Romeo_and_Juliet][The Tragedy of Romeo and Juliet]]
* some more arbitrary LaTeX code :after_letter:
#+BEGIN_EXPORT latex
% here we can place random LaTeX code, e.g. including PDFs via the pdfpages package.
#+END_EXPORT
[-- Attachment #4: latex-classes --]
[-- Type: text/plain, Size: 1630 bytes --]
Value:
(("default-koma-letter" "\\documentclass[11pt]{scrlttr2}")
("article" "\\documentclass[11pt]{article}"
("\\section{%s}" . "\\section*{%s}")
("\\subsection{%s}" . "\\subsection*{%s}")
("\\subsubsection{%s}" . "\\subsubsection*{%s}")
("\\paragraph{%s}" . "\\paragraph*{%s}")
("\\subparagraph{%s}" . "\\subparagraph*{%s}"))
("report" "\\documentclass[11pt]{report}"
("\\part{%s}" . "\\part*{%s}")
("\\chapter{%s}" . "\\chapter*{%s}")
("\\section{%s}" . "\\section*{%s}")
("\\subsection{%s}" . "\\subsection*{%s}")
("\\subsubsection{%s}" . "\\subsubsection*{%s}"))
("book" "\\documentclass[11pt]{book}"
("\\part{%s}" . "\\part*{%s}")
("\\chapter{%s}" . "\\chapter*{%s}")
("\\section{%s}" . "\\section*{%s}")
("\\subsection{%s}" . "\\subsection*{%s}")
("\\subsubsection{%s}" . "\\subsubsection*{%s}")))
Original value was
(("article" "\\documentclass[11pt]{article}"
("\\section{%s}" . "\\section*{%s}")
("\\subsection{%s}" . "\\subsection*{%s}")
("\\subsubsection{%s}" . "\\subsubsection*{%s}")
("\\paragraph{%s}" . "\\paragraph*{%s}")
("\\subparagraph{%s}" . "\\subparagraph*{%s}"))
("report" "\\documentclass[11pt]{report}"
("\\part{%s}" . "\\part*{%s}")
("\\chapter{%s}" . "\\chapter*{%s}")
("\\section{%s}" . "\\section*{%s}")
("\\subsection{%s}" . "\\subsection*{%s}")
("\\subsubsection{%s}" . "\\subsubsection*{%s}"))
("book" "\\documentclass[11pt]{book}"
("\\part{%s}" . "\\part*{%s}")
("\\chapter{%s}" . "\\chapter*{%s}")
("\\section{%s}" . "\\section*{%s}")
("\\subsection{%s}" . "\\subsection*{%s}")
("\\subsubsection{%s}" . "\\subsubsection*{%s}")))
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: Problem
2020-04-04 17:13 ` Problem Charles Millar
@ 2020-04-06 8:37 ` Eric S Fraga
2020-04-06 11:49 ` Problem Charles Millar
0 siblings, 1 reply; 19+ messages in thread
From: Eric S Fraga @ 2020-04-06 8:37 UTC (permalink / raw)
To: Charles Millar; +Cc: emacs-orgmode
On Saturday, 4 Apr 2020 at 13:13, Charles Millar wrote:
> OK, started over.
>
> Please see attached backtrace and the file I used.
Strange. Your example file works just fine for me.
What version of org are you using? And LaTeX?
Can you export to LaTeX (C-c C-e k l) and see if that LaTeX file
compiles manually?
--
: Eric S Fraga via Emacs 28.0.50, Org release_9.3.6-438-g5b9698
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: Problem
2020-04-06 8:37 ` Problem Eric S Fraga
@ 2020-04-06 11:49 ` Charles Millar
2020-04-06 12:04 ` Problem Eric S Fraga
0 siblings, 1 reply; 19+ messages in thread
From: Charles Millar @ 2020-04-06 11:49 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 679 bytes --]
On 4/6/20 4:37 AM, Eric S Fraga wrote:
> On Saturday, 4 Apr 2020 at 13:13, Charles Millar wrote:
>> OK, started over.
>>
>> Please see attached backtrace and the file I used.
>
> Strange. Your example file works just fine for me.
>
> What version of org are you using? And LaTeX?
Just ran the same file with the following versions
Org mode version 9.3.6 (release_9.3.6-449-gb99357 @
/usr/local/share/org-mode/lisp/)
GNU Emacs 28.0.50 (build 87, x86_64-pc-linux-gnu, GTK+ Version 3.24.14,
cairo version 1.16.0) of 2020-04-06
attached is the backtrace.
>
> Can you export to LaTeX (C-c C-e k l) and see if that LaTeX file
> compiles manually?
> no Latex file produced.
[-- Attachment #2: komaletterbacktrace-2020-04-06 --]
[-- Type: text/plain, Size: 7140 bytes --]
Debugger entered--Lisp error: (wrong-type-argument char-or-string-p nil)
format-spec(nil ((116 . #("Mis-shapen chaos of well-seeming forms!" 0 39 (:parent (#("Mis-shapen chaos of well-seeming forms!" 0 39 (:parent #7)))))) (97 . #("Romeo" 0 5 (:parent (#("Romeo" 0 5 (:parent #8)))))) (116 . #("Mis-shapen chaos of well-seeming forms!" 0 39 (:parent (#("Mis-shapen chaos of well-seeming forms!" 0 39 (:parent #9)))))) (115 . "") (107 . "") (100 . "") (99 . "Emacs 28.0.50 (Org mode 9.3.6)") (108 . "english") (76 . "English") (68 #("1580" 0 4 (:parent #13)))))
(concat (if (and with-subject (not (eq with-subject t))) (progn (format "\\KOMAoption{subject}{%s}\n" (if (symbolp with-subject) with-subject (mapconcat #'symbol-name with-subject ","))))) (format-spec hyperref-template spec) "\\begin{document}\n\n" (if subject (progn (format "\\setkomavar{subject}{%s}\n" subject))) (if title (progn (format "\\setkomavar{title}{%s}\n" title))) (if (or (org-string-nw-p title) (org-string-nw-p subject)) (progn "\n")))
(let* ((with-subject (plist-get info :with-subject)) (with-title (plist-get info :with-title)) (title-as-subject (and with-subject (plist-get info :with-title-as-subject))) (subject* (org-string-nw-p (org-export-data (plist-get info :subject) info))) (title* (and with-title (org-string-nw-p (org-export-data (plist-get info :title) info)))) (subject (cond ((not with-subject) nil) (title-as-subject (or subject* title*)) (t subject*))) (title (cond ((not with-title) nil) (title-as-subject (and subject* title*)) (t title*))) (hyperref-template (plist-get info :latex-hyperref-template)) (spec (append (list (cons 116 (or title subject ""))) (org-latex--format-spec info)))) (concat (if (and with-subject (not (eq with-subject t))) (progn (format "\\KOMAoption{subject}{%s}\n" (if (symbolp with-subject) with-subject (mapconcat #'symbol-name with-subject ","))))) (format-spec hyperref-template spec) "\\begin{document}\n\n" (if subject (progn (format "\\setkomavar{subject}{%s}\n" subject))) (if title (progn (format "\\setkomavar{title}{%s}\n" title))) (if (or (org-string-nw-p title) (org-string-nw-p subject)) (progn "\n"))))
(concat (and (plist-get info :time-stamp-file) (format-time-string "%% Created %Y-%m-%d %a %H:%M\n")) (org-latex--insert-compiler info) (org-latex-make-preamble info) (org-koma-letter--build-settings 'global info) (mapconcat #'(lambda (file) (format "\\LoadLetterOption{%s}\n" file)) (split-string (or (plist-get info :lco) "")) "") (org-koma-letter--build-settings 'buffer info) (format "\\date{%s}\n" (org-export-data (org-export-get-date info) info)) (let* ((with-subject (plist-get info :with-subject)) (with-title (plist-get info :with-title)) (title-as-subject (and with-subject (plist-get info :with-title-as-subject))) (subject* (org-string-nw-p (org-export-data (plist-get info :subject) info))) (title* (and with-title (org-string-nw-p (org-export-data (plist-get info :title) info)))) (subject (cond ((not with-subject) nil) (title-as-subject (or subject* title*)) (t subject*))) (title (cond ((not with-title) nil) (title-as-subject (and subject* title*)) (t title*))) (hyperref-template (plist-get info :latex-hyperref-template)) (spec (append (list (cons 116 (or title subject ""))) (org-latex--format-spec info)))) (concat (if (and with-subject (not (eq with-subject t))) (progn (format "\\KOMAoption{subject}{%s}\n" (if (symbolp with-subject) with-subject (mapconcat ... with-subject ","))))) (format-spec hyperref-template spec) "\\begin{document}\n\n" (if subject (progn (format "\\setkomavar{subject}{%s}\n" subject))) (if title (progn (format "\\setkomavar{title}{%s}\n" title))) (if (or (org-string-nw-p title) (org-string-nw-p subject)) (progn "\n")))) (let ((keyword-val (plist-get info :to-address)) (heading-val (org-koma-letter--get-tagged-contents 'to))) (format "\\begin{letter}{%%\n%s}\n\n" (org-koma-letter--add-latex-newlines (or (if (plist-get info :special-headings) (or heading-val keyword-val) (or keyword-val heading-val)) "\\mbox{}")))) (format "\\opening{%s}\n\n" (org-koma-letter--keyword-or-headline :opening #'(lambda (h i) (not (org-koma-letter--special-tag h i))) info)) contents (format "\\closing{%s}\n" (org-koma-letter--keyword-or-headline :closing #'(lambda (h i) (let ((special-tag ...)) (and special-tag (string= "closing" special-tag)))) info)) (org-koma-letter--special-contents-inline (plist-get info :special-tags-after-closing) info) "\n\\end{letter}\n" (org-koma-letter--special-contents-inline (plist-get info :special-tags-after-letter) info) "\n\\end{document}")
org-koma-letter-template(#("\n\n\n\\begin{verse}\nThen plai..." 17 62 (:parent (verse-block ... ...)) 65 102 (:parent (verse-block ... ...)) 105 145 (:parent (verse-block ... ...)) 148 193 (:parent (verse-block ... ...)) 196 238 (:parent (verse-block ... ...)) 241 284 (:parent (verse-block ... ...)) 287 330 (:parent (verse-block ... ...)) 333 370 (:parent (verse-block ... ...)) ...) (:export-options nil :back-end #s(org-export-backend :name koma-letter :parent latex :transcoders (... ... ... ... ...) :options (... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...) :filters nil :blocks nil :menu (107 "Export with KOMA Scrlttr2" ...)) :translate-alist ((export-block . org-koma-letter-export-block) (export-snippet . org-koma-letter-export-snippet) (headline . org-koma-letter-headline) (keyword . org-koma-letter-keyword) (template . org-koma-letter-template) (bold . org-latex-bold) (center-block . org-latex-center-block) (clock . org-latex-clock) (code . org-latex-code) (drawer . org-latex-drawer) (dynamic-block . org-latex-dynamic-block) (entity . org-latex-entity) (example-block . org-latex-example-block) (export-block . org-latex-export-block) (export-snippet . org-latex-export-snippet) (fixed-width . org-latex-fixed-width) (footnote-definition . org-latex-footnote-definition) (footnote-reference . org-latex-footnote-reference) (headline . org-latex-headline) (horizontal-rule . org-latex-horizontal-rule) (inline-src-block . org-latex-inline-src-block) (inlinetask . org-latex-inlinetask) (italic . org-latex-italic) (item . org-latex-item) (keyword . org-latex-keyword) (latex-environment . org-latex-latex-environment) ...) :exported-data #<hash-table eq 61/4001 0x156f5356b8e9> :input-buffer "LearnKomaLetter.org" :input-file "/mnt/Data/ActiveFiles/Lear..." :latex-class "default-koma-letter" :lco "DINmtext" :author (#("Romeo" 0 5 ...)) :author-changed-in-buffer-p "Romeo" :from-address "" :phone-number "" :url "" ...))
org-export-as(koma-letter nil nil nil (:output-file "LearnKomaLetter.tex"))
org-export-to-file(koma-letter "LearnKomaLetter.tex" nil nil nil nil nil)
(let ((outfile (org-export-output-file-name ".tex" subtreep)) (org-koma-letter-special-contents)) (org-export-to-file 'koma-letter outfile async subtreep visible-only body-only ext-plist))
org-koma-letter-export-to-latex(nil nil nil nil)
org-export-dispatch(nil)
funcall-interactively(org-export-dispatch nil)
call-interactively(org-export-dispatch nil nil)
command-execute(org-export-dispatch)
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: Problem
2020-04-06 11:49 ` Problem Charles Millar
@ 2020-04-06 12:04 ` Eric S Fraga
2020-04-06 12:33 ` Problem Nicolas Goaziou
0 siblings, 1 reply; 19+ messages in thread
From: Eric S Fraga @ 2020-04-06 12:04 UTC (permalink / raw)
To: Charles Millar; +Cc: emacs-orgmode
On Monday, 6 Apr 2020 at 07:49, Charles Millar wrote:
> Just ran the same file with the following versions
>
> Org mode version 9.3.6 (release_9.3.6-449-gb99357 @
> /usr/local/share/org-mode/lisp/)
> GNU Emacs 28.0.50 (build 87, x86_64-pc-linux-gnu, GTK+ Version
> 3.24.14, cairo version 1.16.0) of 2020-04-06
okay, one less variable.
have you tried this with "emacs -Q" in case there's something in your
configuration?
--
: Eric S Fraga via Emacs 28.0.50, Org release_9.3.6-438-g5b9698
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: Problem
2020-04-06 12:04 ` Problem Eric S Fraga
@ 2020-04-06 12:33 ` Nicolas Goaziou
2020-04-06 14:18 ` Problem Charles Millar
0 siblings, 1 reply; 19+ messages in thread
From: Nicolas Goaziou @ 2020-04-06 12:33 UTC (permalink / raw)
To: Charles Millar; +Cc: emacs-orgmode
Hello,
Eric S Fraga <e.fraga@ucl.ac.uk> writes:
> On Monday, 6 Apr 2020 at 07:49, Charles Millar wrote:
>> Just ran the same file with the following versions
>>
>> Org mode version 9.3.6 (release_9.3.6-449-gb99357 @
>> /usr/local/share/org-mode/lisp/)
>> GNU Emacs 28.0.50 (build 87, x86_64-pc-linux-gnu, GTK+ Version
>> 3.24.14, cairo version 1.16.0) of 2020-04-06
>
> okay, one less variable.
>
> have you tried this with "emacs -Q" in case there's something in your
> configuration?
This happens because `org-latex-hyperref-template' is empty, which is
a valid use-case. I fixed it in both maint and master. Thanks to you
two for the report and the debugging help.
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: Problem
2020-04-06 12:33 ` Problem Nicolas Goaziou
@ 2020-04-06 14:18 ` Charles Millar
0 siblings, 0 replies; 19+ messages in thread
From: Charles Millar @ 2020-04-06 14:18 UTC (permalink / raw)
To: emacs-orgmode
On 4/6/20 8:33 AM, Nicolas Goaziou wrote:
> Hello,
>
> Eric S Fraga <e.fraga@ucl.ac.uk> writes:
>
>> On Monday, 6 Apr 2020 at 07:49, Charles Millar wrote:
>>> Just ran the same file with the following versions
>>>
>>> Org mode version 9.3.6 (release_9.3.6-449-gb99357 @
>>> /usr/local/share/org-mode/lisp/)
>>> GNU Emacs 28.0.50 (build 87, x86_64-pc-linux-gnu, GTK+ Version
>>> 3.24.14, cairo version 1.16.0) of 2020-04-06
>>
>> okay, one less variable.
>>
>> have you tried this with "emacs -Q" in case there's something in your
>> configuration?
>
> This happens because `org-latex-hyperref-template' is empty, which is
> a valid use-case. I fixed it in both maint and master. Thanks to you
> two for the report and the debugging help.
>
> Regards,
>
Downloaded and installed
Org mode version 9.3.6 (release_9.3.6-454-g3c87b8 @
/usr/local/share/org-mode/lisp/)
and I confirm that I have now produce the letter to Juliet using
ox-koma-letter. BTW, it matches the Worg example-pdf.
Thank you Eric and everyone else, who have guided me.
Charlie Millar
^ permalink raw reply [flat|nested] 19+ messages in thread
end of thread, other threads:[~2020-04-06 14:52 UTC | newest]
Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <cfb79959-0ac6-737b-cc2a-d16f5b984c86.ref@verizon.net>
2020-04-03 20:49 ` Problem Charles Millar
2020-04-03 21:05 ` Problem with LaTeX class scrlttr2 Charles Millar
2020-04-03 23:19 ` John Hendy
2020-04-04 1:25 ` Charles Millar
2020-04-04 2:30 ` John Hendy
2020-04-04 12:01 ` Charles Millar
2020-04-04 6:22 ` Julius Dittmar
2020-04-04 12:03 ` Charles Millar
2020-04-04 7:43 ` Problem Robert Klein
2020-04-04 11:34 ` Problem Eric S Fraga
2020-04-04 12:22 ` Problem Charles Millar
2020-04-04 12:19 ` Problem Charles Millar
2020-04-04 11:30 ` Problem Eric S Fraga
2020-04-04 17:13 ` Problem Charles Millar
2020-04-06 8:37 ` Problem Eric S Fraga
2020-04-06 11:49 ` Problem Charles Millar
2020-04-06 12:04 ` Problem Eric S Fraga
2020-04-06 12:33 ` Problem Nicolas Goaziou
2020-04-06 14:18 ` Problem Charles Millar
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).