* Getting custom LaTeX exports to work
@ 2013-12-25 18:12 Uwe Ziegenhagen
2013-12-25 18:44 ` Thomas S. Dye
2013-12-27 10:32 ` Joseph Vidal-Rosset
0 siblings, 2 replies; 5+ messages in thread
From: Uwe Ziegenhagen @ 2013-12-25 18:12 UTC (permalink / raw)
To: emacs-orgmode
Hi everyone,
I am trying to get custom LaTeX exports to work. I installed the latest
version of Emacs (for Windows) and org mode today and have the following in
my .emacs:
(require 'ox-html)
(require 'ox-latex)
(require 'ox-ascii)
;; now let's add a few custom class export templates
(add-to-list 'org-latex-classes
'("koma-artikel"
"\\documentclass{scrartcl}"
("\\section{%s}" . "\\section*{%s}")
("\\subsection{%s}" . "\\subsection*{%s}")
("\\subsubsection{%s}" . "\\subsubsection*{%s}")
("\\paragraph{%s}" . "\\paragraph*{%s}")
("\\subparagraph{%s}" . "\\subparagraph*{%s}")))
(add-to-list 'org-latex-classes
'("scrlttr"
"\\documentclass[11pt]{scrlttr2}\n
\\usepackage[utf8]{inputenc}\n
\\usepackage[T1]{fontenc}\n
\\usepackage{xcolor}"
("\\section{%s}" . "\\section*{%s}")
("\\subsection{%s}" . "\\subsection*{%s}")
("\\subsubsection{%s}" . "\\subsubsection*{%s}")
("\\paragraph{%s}" . "\\paragraph*{%s}")
("\\subparagraph{%s}" . "\\subparagraph*{%s}")))
In my simple org-file I have the following in the first line:
#+LaTeX_CLASS: koma-article
Unfortunately I still get "Unknown LaTeX Class `koma-article`" when
executing <Ctrl>-c-e l L
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Getting custom LaTeX exports to work
2013-12-25 18:12 Getting custom LaTeX exports to work Uwe Ziegenhagen
@ 2013-12-25 18:44 ` Thomas S. Dye
2013-12-25 19:28 ` Uwe Ziegenhagen
2013-12-27 10:32 ` Joseph Vidal-Rosset
1 sibling, 1 reply; 5+ messages in thread
From: Thomas S. Dye @ 2013-12-25 18:44 UTC (permalink / raw)
To: Uwe Ziegenhagen; +Cc: emacs-orgmode
Hi Uwe,
Uwe Ziegenhagen <ziegenhagen@gmail.com> writes:
> ;; now let's add a few custom class export templates
> (add-to-list 'org-latex-classes
> '("koma-artikel"
> "\\documentclass{scrartcl}"
> ("\\section{%s}" . "\\section*{%s}")
> ("\\subsection{%s}" . "\\subsection*{%s}")
> ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
> ("\\paragraph{%s}" . "\\paragraph*{%s}")
> ("\\subparagraph{%s}" . "\\subparagraph*{%s}")))
>
> (add-to-list 'org-latex-classes
> '("scrlttr"
> "\\documentclass[11pt]{scrlttr2}\n
> \\usepackage[utf8]{inputenc}\n
> \\usepackage[T1]{fontenc}\n
> \\usepackage{xcolor}"
>
> ("\\section{%s}" . "\\section*{%s}")
> ("\\subsection{%s}" . "\\subsection*{%s}")
> ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
> ("\\paragraph{%s}" . "\\paragraph*{%s}")
> ("\\subparagraph{%s}" . "\\subparagraph*{%s}")))
>
> In my simple org-file I have the following in the first line:
>
> #+LaTeX_CLASS: koma-article
>
> Unfortunately I still get "Unknown LaTeX Class `koma-article`" when
> executing <Ctrl>-c-e l L
You've named it `koma-artikel', not `koma-article'.
hth,
Tom
--
Thomas S. Dye
http://www.tsdye.com
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Getting custom LaTeX exports to work
2013-12-25 18:44 ` Thomas S. Dye
@ 2013-12-25 19:28 ` Uwe Ziegenhagen
0 siblings, 0 replies; 5+ messages in thread
From: Uwe Ziegenhagen @ 2013-12-25 19:28 UTC (permalink / raw)
To: emacs-orgmode
Thomas S. Dye <tsd <at> tsdye.com> writes:
>
> Hi Uwe,
>
> Uwe Ziegenhagen <ziegenhagen <at> gmail.com> writes:
>
> You've named it `koma-artikel', not `koma-article'.
>
> hth,
> Tom
>
OMG, that did the trick!
Thanks,
Uwe
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Getting custom LaTeX exports to work
2013-12-25 18:12 Getting custom LaTeX exports to work Uwe Ziegenhagen
2013-12-25 18:44 ` Thomas S. Dye
@ 2013-12-27 10:32 ` Joseph Vidal-Rosset
[not found] ` <CAML7JChJxO8U6+OAO2XYVR4kmVUkfC7uGv3rd=CXftbJPd4j4w@mail.gmail.com>
1 sibling, 1 reply; 5+ messages in thread
From: Joseph Vidal-Rosset @ 2013-12-27 10:32 UTC (permalink / raw)
To: Uwe Ziegenhagen; +Cc: emacs-orgmode list
[-- Attachment #1: Type: text/plain, Size: 2116 bytes --]
Dear Uwe, dear all,
I would be very interested to get a working .org file model of preambles ,
in order to produce in org format articles in latex, as well as in html,
as well as in beamer class, it would be splendid.
Unfortunately, I did not succeeded in my several tentatives, and I came
back to write directly in latex format, which is certainly not the best
solution when you have to make also beamer files from your articles.
It would be nice of you and/or everyone in this list to give here a copy of
a working model of preambles in org mode. I know that I I have to read the
documentation, and I do, but it would be quicker with help of some experts
of this list.
All the best
Jo.
2013/12/25 Uwe Ziegenhagen <ziegenhagen@gmail.com>
> Hi everyone,
>
> I am trying to get custom LaTeX exports to work. I installed the latest
> version of Emacs (for Windows) and org mode today and have the following in
> my .emacs:
>
> (require 'ox-html)
> (require 'ox-latex)
> (require 'ox-ascii)
>
> ;; now let's add a few custom class export templates
> (add-to-list 'org-latex-classes
> '("koma-artikel"
> "\\documentclass{scrartcl}"
> ("\\section{%s}" . "\\section*{%s}")
> ("\\subsection{%s}" . "\\subsection*{%s}")
> ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
> ("\\paragraph{%s}" . "\\paragraph*{%s}")
> ("\\subparagraph{%s}" . "\\subparagraph*{%s}")))
>
> (add-to-list 'org-latex-classes
> '("scrlttr"
> "\\documentclass[11pt]{scrlttr2}\n
> \\usepackage[utf8]{inputenc}\n
> \\usepackage[T1]{fontenc}\n
> \\usepackage{xcolor}"
>
> ("\\section{%s}" . "\\section*{%s}")
> ("\\subsection{%s}" . "\\subsection*{%s}")
> ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
> ("\\paragraph{%s}" . "\\paragraph*{%s}")
> ("\\subparagraph{%s}" . "\\subparagraph*{%s}")))
>
> In my simple org-file I have the following in the first line:
>
> #+LaTeX_CLASS: koma-article
>
> Unfortunately I still get "Unknown LaTeX Class `koma-article`" when
> executing <Ctrl>-c-e l L
>
>
>
>
[-- Attachment #2: Type: text/html, Size: 3077 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Getting custom LaTeX exports to work
[not found] ` <CAML7JCiO5z44ha_L16jDydNo57S0cuJM_MECT_GYEAoqpUZKeA@mail.gmail.com>
@ 2013-12-28 18:04 ` Joseph Vidal-Rosset
0 siblings, 0 replies; 5+ messages in thread
From: Joseph Vidal-Rosset @ 2013-12-28 18:04 UTC (permalink / raw)
To: Uwe Ziegenhagen; +Cc: emacs-orgmode list
[-- Attachment #1: Type: text/plain, Size: 4580 bytes --]
Hi Uwe,
Many thanks , I will going to try it. I feel free to cc. your email to the
list.
We stay in touch.
Best wishes,
Jo.
2013/12/28 Uwe Ziegenhagen <ziegenhagen@gmail.com>
> Hi Joseph,
>
> the following seems to work: During the next days I'll try to work
> a bit on the details and also blog about it at uweziegenhagen.de
>
> Uwe
>
> ;; some LaTeX-specific export settings
> ;; load the latex extensions
> ; (Require 'org-latex) # deprecated!
>
> (require 'ox-html)
> (require 'ox-latex)
> (require 'ox-ascii)
>
> ; kick out all packages from org-mode's default list
> ; gives maximum of flexibility
> (setq org-latex-packages-alist nil)
> (setq org-latex-default-packages-alist nil)
>
>
> ;; now let's add a few custom class export templates
> (add-to-list 'org-latex-classes
> '("koma-article"
>
> "\\documentclass{scrartcl}"
> ("\\section{%s}" . "\\section*{%s}")
> ("\\subsection{%s}" . "\\subsection*{%s}")
> ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
> ("\\paragraph{%s}" . "\\paragraph*{%s}")
> ("\\subparagraph{%s}" . "\\subparagraph*{%s}")))
>
> (add-to-list 'org-latex-classes ;; org-export-latex-classes is deprecated
>
> '("scrlttr"
> "\\documentclass[11pt]{scrlttr2}\n
> \\usepackage[utf8]{inputenc}\n
> \\usepackage[T1]{fontenc}\n
> \\usepackage{xcolor}"
>
> ("\\section{%s}" . "\\section*{%s}")
> ("\\subsection{%s}" . "\\subsection*{%s}")
> ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
> ("\\paragraph{%s}" . "\\paragraph*{%s}")
> ("\\subparagraph{%s}" . "\\subparagraph*{%s}")))
>
>
>
>
> 2013/12/27 Joseph Vidal-Rosset <joseph.vidal.rosset@gmail.com>
>
>> Many thanks Uwe !
>>
>>
>> 2013/12/27 Uwe Ziegenhagen <ziegenhagen@gmail.com>
>>
>>> Hi Jo,
>>>
>>> I'm currrently preparing some blog articles on this topic. Once I have
>>> something done, I'll let you know.
>>>
>>> Uwe
>>>
>>>
>>> 2013/12/27 Joseph Vidal-Rosset <joseph.vidal.rosset@gmail.com>
>>>
>>>> Dear Uwe, dear all,
>>>>
>>>> I would be very interested to get a working .org file model of
>>>> preambles , in order to produce in org format articles in latex, as well
>>>> as in html, as well as in beamer class, it would be splendid.
>>>>
>>>> Unfortunately, I did not succeeded in my several tentatives, and I came
>>>> back to write directly in latex format, which is certainly not the best
>>>> solution when you have to make also beamer files from your articles.
>>>>
>>>> It would be nice of you and/or everyone in this list to give here a
>>>> copy of a working model of preambles in org mode. I know that I I have to
>>>> read the documentation, and I do, but it would be quicker with help of some
>>>> experts of this list.
>>>>
>>>>
>>>> All the best
>>>>
>>>> Jo.
>>>>
>>>>
>>>> 2013/12/25 Uwe Ziegenhagen <ziegenhagen@gmail.com>
>>>>
>>>>> Hi everyone,
>>>>>
>>>>> I am trying to get custom LaTeX exports to work. I installed the latest
>>>>> version of Emacs (for Windows) and org mode today and have the
>>>>> following in
>>>>> my .emacs:
>>>>>
>>>>> (require 'ox-html)
>>>>> (require 'ox-latex)
>>>>> (require 'ox-ascii)
>>>>>
>>>>> ;; now let's add a few custom class export templates
>>>>> (add-to-list 'org-latex-classes
>>>>> '("koma-artikel"
>>>>> "\\documentclass{scrartcl}"
>>>>> ("\\section{%s}" . "\\section*{%s}")
>>>>> ("\\subsection{%s}" . "\\subsection*{%s}")
>>>>> ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
>>>>> ("\\paragraph{%s}" . "\\paragraph*{%s}")
>>>>> ("\\subparagraph{%s}" . "\\subparagraph*{%s}")))
>>>>>
>>>>> (add-to-list 'org-latex-classes
>>>>> '("scrlttr"
>>>>> "\\documentclass[11pt]{scrlttr2}\n
>>>>> \\usepackage[utf8]{inputenc}\n
>>>>> \\usepackage[T1]{fontenc}\n
>>>>> \\usepackage{xcolor}"
>>>>>
>>>>> ("\\section{%s}" . "\\section*{%s}")
>>>>> ("\\subsection{%s}" . "\\subsection*{%s}")
>>>>> ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
>>>>> ("\\paragraph{%s}" . "\\paragraph*{%s}")
>>>>> ("\\subparagraph{%s}" . "\\subparagraph*{%s}")))
>>>>>
>>>>> In my simple org-file I have the following in the first line:
>>>>>
>>>>> #+LaTeX_CLASS: koma-article
>>>>>
>>>>> Unfortunately I still get "Unknown LaTeX Class `koma-article`" when
>>>>> executing <Ctrl>-c-e l L
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>
>>>
>>> --
>>> Uwe Ziegenhagen
>>> <http://www.uweziegenhagen.de>
>>>
>>
>>
>
>
> --
> Uwe Ziegenhagen
> <http://www.uweziegenhagen.de>
>
[-- Attachment #2: Type: text/html, Size: 7640 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2013-12-28 18:04 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-25 18:12 Getting custom LaTeX exports to work Uwe Ziegenhagen
2013-12-25 18:44 ` Thomas S. Dye
2013-12-25 19:28 ` Uwe Ziegenhagen
2013-12-27 10:32 ` Joseph Vidal-Rosset
[not found] ` <CAML7JChJxO8U6+OAO2XYVR4kmVUkfC7uGv3rd=CXftbJPd4j4w@mail.gmail.com>
[not found] ` <CAD-VTcH2vmYKomF5mnQE+p6AD3yWWP_h5O=JdsJRjy=rVMesWA@mail.gmail.com>
[not found] ` <CAML7JCiO5z44ha_L16jDydNo57S0cuJM_MECT_GYEAoqpUZKeA@mail.gmail.com>
2013-12-28 18:04 ` Joseph Vidal-Rosset
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).