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 <mill...@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 <mill...@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
#+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