From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tim Cross Subject: Re: Org-mode and koma-script Date: Tue, 28 Aug 2018 08:00:21 +1000 Message-ID: <87ftyzii6i.fsf@gmail.com> References: <8a728d2e-e304-da28-dbc7-33b69b71f01a@gmx.fr> <09f20570-5a7d-09fb-b669-b8a874a76079@gmx.fr> <867c68c7-2857-4590-9e16-c5226e2749fd@gmx.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51720) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fuPYp-0001Wx-L8 for emacs-orgmode@gnu.org; Mon, 27 Aug 2018 18:00:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fuPYo-0004zv-CM for emacs-orgmode@gnu.org; Mon, 27 Aug 2018 18:00:35 -0400 Received: from mail-pf1-x433.google.com ([2607:f8b0:4864:20::433]:42733) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fuPYo-0004zi-4P for emacs-orgmode@gnu.org; Mon, 27 Aug 2018 18:00:34 -0400 Received: by mail-pf1-x433.google.com with SMTP id l9-v6so197268pff.9 for ; Mon, 27 Aug 2018 15:00:33 -0700 (PDT) In-reply-to: <867c68c7-2857-4590-9e16-c5226e2749fd@gmx.fr> 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" To: gmx Cc: "emacs-orgmode@gnu.org" If that is a copy of what is in your .emacs or init.el file, then I think you have a number of errors. Try running emacs -q and see if emacs reports errors in your init file. Tim gmx writes: > I forgot the > > Le 27/08/2018 =C3=A0 21:51, gmx a =C3=A9crit: >> Hello, >> >> I'm trying to use the koma class. I found a configuration of the.emacs=20 >> file, in the manual and in a Stack Exchange post=20 >> (https://tex.stackexchange.com/questions/364914/using-koma-script-articl= e-with-org-mode).=20 >> >> >> I open a new .org file, and I declare: >> #+TITLE: MyTitle >> #+DATE: date >> #+LANGUAGE: fr >> #+LaTeX_CLASS: koma-article >> >> When I want to export my work in .pdf, I get the following answer:=20 >> Unknown LaTeX class 'koma-article'. >> >> What to do? >> Thank you for your advice >> >> Fr=C3=A9d=C3=A9ric (real newbie with org-mode, but I do my best) >> > contents of the file. Ready ? > > > > ;; Added by Package.el. This must come before configurations of > ;; installed packages. Don't delete this line. If you don't want it, > ;; just comment it out by adding a semicolon to the start of the line. > ;; You may delete these explanatory comments. > (package-initialize) > > (custom-set-variables > ;; custom-set-variables was added by Custom. > ;; If you edit it by hand, you could mess it up, so be careful. > ;; Your init file should contain only one such instance. > ;; If there is more than one, they won't work right. > '(ansi-color-faces-vector > [default default default italic underline success warning error]) > '(ansi-color-names-vector > ["#212526" "#ff4b4b" "#b4fa70" "#fce94f" "#729fcf" "#e090d7"=20 > "#8cc4ff" "#eeeeec"]) > '(current-language-environment "UTF-8") > '(custom-enabled-themes (quote (deeper-blue))) > '(display-battery-mode t)) > (custom-set-faces > ;; custom-set-faces was added by Custom. > ;; If you edit it by hand, you could mess it up, so be careful. > ;; Your init file should contain only one such instance. > ;; If there is more than one, they won't work right. > ) > (put 'upcase-region 'disabled nil) > > > ;;;;;;;;;;;;; CONFIGURATION POUR UTILISER LATEX ;;;;;;;;;;;;;; > ;; Source : https://orgmode.org/worg/org-tutorials/org-latex-export.html > > ;; Pour pouvoir utiliser LaTeX dans un doc. org-mode > (require 'ox-latex) > (unless (boundp 'org-latex-classes) > (setq org-latex-classes nil)) > + > (add-to-list 'org-latex-classes > '("article" > "\\documentclass{article}" > ("\\section{%s}" . "\\section*{%s}"))) > > ;; Pour configurer les subdivisions des articles > (add-to-list 'org-latex-classes > '("article" > "\\documentclass{article}" > ("\\section{%s}" . "\\section*{%s}") > ("\\subsection{%s}" . "\\subsection*{%s}") > ("\\subsubsection{%s}" . "\\subsubsection*{%s}") > ("\\paragraph{%s}" . "\\paragraph*{%s}") > ("\\subparagraph{%s}" . "\\subparagraph*{%s}"))) > > ;; Pour configurer les subdivisions de la classe book (indiquer :=20 > #+LaTeX_CLASS: book) > (with-eval-after-load "ox-latex" > (add-to-list 'org-latex-classes > '("book" > "\\documentclass{book}" > ("\\part{%s}" . "\\part*{%s}") > ("\\chapter{%s}" . "\\chapter*{%s}") > ("\\section{%s}" . "\\section*{%s}") > ("\\subsection{%s}" . "\\subsection*{%s}") > ("\\subsubsection{%s}" . "\\subsubsection*{%s}")))) > > ;; Pour utiliser la classe koma-script. Indiquer : #+LaTeX_CLASS:=20 > koma-article > (with-eval-after-load "ox-latex" > (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}")))) --=20 Tim Cross