From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joseph Vidal-Rosset Subject: Re: Getting custom LaTeX exports to work Date: Sat, 28 Dec 2013 19:04:31 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7bd6bc9a182e9004ee9c0cb9 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46036) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VwyFr-0004rs-Mx for emacs-orgmode@gnu.org; Sat, 28 Dec 2013 13:04:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VwyFp-0002oQ-T1 for emacs-orgmode@gnu.org; Sat, 28 Dec 2013 13:04:55 -0500 Received: from mail-we0-x22f.google.com ([2a00:1450:400c:c03::22f]:58654) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VwyFp-0002oM-Hg for emacs-orgmode@gnu.org; Sat, 28 Dec 2013 13:04:53 -0500 Received: by mail-we0-f175.google.com with SMTP id t60so8910282wes.6 for ; Sat, 28 Dec 2013 10:04:52 -0800 (PST) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Uwe Ziegenhagen Cc: emacs-orgmode list --047d7bd6bc9a182e9004ee9c0cb9 Content-Type: text/plain; charset=UTF-8 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 > 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 > >> Many thanks Uwe ! >> >> >> 2013/12/27 Uwe Ziegenhagen >> >>> 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 >>> >>>> 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 >>>> >>>>> 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 -c-e l L >>>>> >>>>> >>>>> >>>>> >>>> >>> >>> >>> -- >>> Uwe Ziegenhagen >>> >>> >> >> > > > -- > Uwe Ziegenhagen > > --047d7bd6bc9a182e9004ee9c0cb9 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi Uwe,=C2=A0

Many thanks , I will goin= g to try it. I feel free to cc. your email to the list.=C2=A0
We stay in touch.

Best wishes,

Jo.=C2=A0


2013/12/28 Uwe Ziegenhagen <ziegenhagen@gmail.com>=
Hi Joseph,
the following seems to work: During the next days I'll try to wo= rk
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
; giv= es maximum of flexibility
(setq org-latex-packages-alist nil)
(setq o= rg-latex-default-packages-alist nil)


;; now let= 9;s add a few custom class export templates
(add-to-list 'org-latex-classes
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0 '("koma-article"
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 = "\\documentclass{scrartcl}"
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ("\\section{%s}" . "= \\section*{%s}")
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (&= quot;\\subsection{%s}" . "\\subsection*{%s}")
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (&= quot;\\subsubsection{%s}" . "\\subsubsection*{%s}")
=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (&quo= t;\\paragraph{%s}" . "\\paragraph*{%s}")
=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ("\\subparag= raph{%s}" . "\\subparagraph*{%s}")))

(add-to-list 'org-latex-classes=C2=A0 ;; org-export-latex-cla= sses is deprecated

'("scrlttr"
=C2=A0= =C2=A0=C2=A0=C2=A0 "\\documentclass[11pt]{scrlttr2}\n
=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 \\usepackage[utf8]{inputenc}\n
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 \\usepackage[T1]{fontenc}\n
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 \\usepackage{xcolor}"
=C2=A0=C2=A0= =C2=A0=C2=A0
=C2=A0=C2=A0=C2=A0=C2=A0 ("\\section{%s}" . &quo= t;\\section*{%s}")
=C2=A0=C2=A0=C2=A0=C2=A0 ("\\subsection{%s}= " . "\\subsection*{%s}")
=C2=A0=C2=A0=C2=A0=C2=A0 ("= \\subsubsection{%s}" . "\\subsubsection*{%s}")
=C2=A0=C2=A0=C2=A0=C2=A0 ("\\paragraph{%s}" . "\\paragraph*{= %s}")
=C2=A0=C2=A0=C2=A0=C2=A0 ("\\subparagraph{%s}" . &q= uot;\\subparagraph*{%s}")))




2013/12/27 Joseph Vidal-Rosset <joseph.vidal.rosset@gmail.com<= /a>>
Many thanks Uwe !


2013/12/27 Uwe Ziegenhagen <zie= genhagen@gmail.com>
Hi Jo,

I'm currrently preparing some blog articles on this topic. Once I ha= ve something done, I'll let you know.

Uwe


2013/12/27 Joseph Vidal-Rosset <joseph.vidal.rosset@gmail.com<= /a>>
Dear Uwe, dear all,=C2=A0

I would be ve= ry interested to get a working .org file model of preambles , =C2=A0in orde= r to produce =C2=A0in org format =C2=A0articles in latex, as well as in htm= l, as well as in beamer class, it would be splendid.=C2=A0

Unfortunately, I did not succeeded in my several tentat= ives, and I came back to write directly in =C2=A0latex format, which is cer= tainly not the best solution when you have to make also beamer files from y= our articles.=C2=A0

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.=C2=A0


All the best

Jo= . =C2=A0


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
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 '("koma-artikel"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0"\\documentclass{scrar= tcl}"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0("\\section{%s}" = . "\\section*{%s}")
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0("\\subsection{%s}&quo= t; . "\\subsection*{%s}")
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0("\\subsubsection{%s}&= quot; . "\\subsubsection*{%s}")
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0("\\paragraph{%s}"= ; . "\\paragraph*{%s}")
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0("\\subparagraph{%s}&q= uot; . "\\subparagraph*{%s}")))

(add-to-list 'org-latex-classes
'("scrlttr"
=C2=A0 =C2=A0 =C2=A0"\\documentclass[11pt]{scrlttr2}\n
=C2=A0 =C2=A0 =C2=A0 \\usepackage[utf8]{inputenc}\n
=C2=A0 =C2=A0 =C2=A0 \\usepackage[T1]{fontenc}\n
=C2=A0 =C2=A0 =C2=A0 \\usepackage{xcolor}"

=C2=A0 =C2=A0 =C2=A0("\\section{%s}" . "\\section*{%s}"= )
=C2=A0 =C2=A0 =C2=A0("\\subsection{%s}" . "\\subsection*{%s}= ")
=C2=A0 =C2=A0 =C2=A0("\\subsubsection{%s}" . "\\subsubsectio= n*{%s}")
=C2=A0 =C2=A0 =C2=A0("\\paragraph{%s}" . "\\paragraph*{%s}&q= uot;)
=C2=A0 =C2=A0 =C2=A0("\\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`" wh= en
executing <Ctrl>-c-e l L







--
Uwe Ziegenhagen
<http://www.uweziegenhagen.de>




--
Uwe Ziegenh= agen
<http= ://www.uweziegenhagen.de>

--047d7bd6bc9a182e9004ee9c0cb9--