From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?B?TWFydGluIFNjaMO2w7Zu?= Subject: Re: Using KOMA and Memoir? Date: Mon, 5 May 2014 22:23:44 +0200 Message-ID: References: <874n145b7y.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c12a1a6b01b704f8ace8ab Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54300) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WhPQQ-0001Yl-O2 for emacs-orgmode@gnu.org; Mon, 05 May 2014 16:23:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WhPQP-0006Vm-LL for emacs-orgmode@gnu.org; Mon, 05 May 2014 16:23:46 -0400 Received: from mail-qg0-x22b.google.com ([2607:f8b0:400d:c04::22b]:38221) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WhPQP-0006VZ-8Q for emacs-orgmode@gnu.org; Mon, 05 May 2014 16:23:45 -0400 Received: by mail-qg0-f43.google.com with SMTP id 63so2592622qgz.30 for ; Mon, 05 May 2014 13:23:44 -0700 (PDT) In-Reply-To: <874n145b7y.fsf@ucl.ac.uk> 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: "emacs-orgmode@gnu.org" --001a11c12a1a6b01b704f8ace8ab Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 5 May 2014 20:31, Eric S Fraga wrote: > On Monday, 5 May 2014 at 19:36, Martin Sch=C3=B6=C3=B6n wrote: > > I have tried to get KOMA and Memoir work in Org-mode. In short: I only > get > > error messages telling me they are unknown LaTeX classes. > > It would help to know what you have actually tried. > > I have the following in my org customisation files: > > #+begin_src emacs-lisp > (add-to-list 'org-latex-classes > '("komaarticle" "\\documentclass{scrartcl}" > ("\\section{%s}" . "\\section*{%s}") > ("\\subsection{%s}" . "\\subsection*{%s}") > ("\\subsubsection{%s}" . "\\subsubsection*{%s}") > ("\\paragraph{%s}" . "\\paragraph*{%s}") > ("\\subparagraph{%s}" . "\\subparagraph*{%s}"))) > #+end_src > > which defines the komaarticle class to use scrartcl from koma. In the > org file, I then have > > #+begin_src org > ,#+latex_class: komaarticle > #+end_src > > HTH, > eric Thanks Eric, that was quick. I will try it but not tonight, too tired. And I have to figure out what an org customisation file is. So far I have only modified my .emacs. Sorry for my brevity. What I tried was the first thing I could think of: #+LATEX_CLASS: memoir end #+LATEX_CLASS: scrartcl neithor of which worked. --=20 Martin Sch=C3=B6=C3=B6n http://hem.bredband.net/b262106/index.html --001a11c12a1a6b01b704f8ace8ab Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On 5 May 2014 20:31, Eric S Fraga <e.fraga@ucl.ac.uk&= gt; wrote:
=
On Monday, =C2=A05 May 2014 at 19:36, Martin Sch=C3=B6=C3= =B6n wrote:
> I have tried to get KOMA and Memoir work in Org-mode. In short: I only= get
> error messages telling me they are unknown LaTeX classes.

It would help to know what you have actually tried.

I have the following in my org customisation files:

#+begin_src emacs-lisp
=C2=A0 (add-to-list 'org-latex-classes
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0'("komaarti= cle" "\\documentclass{scrartcl}"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0("\\sect= ion{%s}" . "\\section*{%s}")
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0("\\subs= ection{%s}" . "\\subsection*{%s}")
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0("\\subs= ubsection{%s}" . "\\subsubsection*{%s}")
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0("\\para= graph{%s}" . "\\paragraph*{%s}")
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0("\\subp= aragraph{%s}" . "\\subparagraph*{%s}")))
#+end_src

which defines the komaarticle class to use scrartcl from koma. =C2=A0In the=
org file, I then have

#+begin_src org
=C2=A0 ,#+latex_class: komaarticle
#+end_src

HTH,
eric
Thanks Eric, that was quick. I will try it but not to= night, too tired. And I have to figure out what an org customisation file i= s. So far I have only modified my .emacs.

Sorry for my br= evity. What I tried was the first thing I could think of:
#+LATEX_CLASS: memoir
end
#+LATEX_CL= ASS: scrartcl
neithor of which worked.

-- =
--001a11c12a1a6b01b704f8ace8ab--