emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Org-mode and koma-script


From: gmx
Subject: Re: [O] Org-mode and koma-script
Date: Tue, 28 Aug 2018 03:56:22 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.0

Thanks a lot for your answer, Tim. I entered the emacs -q command, which started emacs. The only message from the Terminal (before launching emacs) is this:

(emacs:3687): GConf-WARNING **: Client failed to connect to the D-BUS daemon: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.

But no real problem.

I did't find the init file : where is it, please ?

Frédéric


Le 28/08/2018 à 00:00, Tim Cross a écrit :
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 <address@hidden> writes:

I forgot the

Le 27/08/2018 à 21:51, gmx a écrit:
Hello,

I'm trying to use the koma class. I found a configuration of the.emacs
file, in the manual and in a Stack Exchange post
(https://tex.stackexchange.com/questions/364914/using-koma-script-article-with-org-mode).


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:
Unknown LaTeX class 'koma-article'.

What to do?
Thank you for your advice

Frédéric (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"
"#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 :
#+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:
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}"))))




reply via email to

[Prev in Thread] Current Thread [Next in Thread]