From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Thomas S. Dye" Subject: Re: org-mode in French Date: Sun, 12 Nov 2017 11:00:08 -1000 Message-ID: References: <8a728d2e-e304-da28-dbc7-33b69b71f01a@gmx.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50132) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eDzMr-0000ff-9S for emacs-orgmode@gnu.org; Sun, 12 Nov 2017 16:00:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eDzMo-0004pB-8G for emacs-orgmode@gnu.org; Sun, 12 Nov 2017 16:00:37 -0500 Received: from gproxy2-pub.mail.unifiedlayer.com ([69.89.18.3]:55704) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eDzMn-0004kC-W6 for emacs-orgmode@gnu.org; Sun, 12 Nov 2017 16:00:34 -0500 Received: from cmgw2 (unknown [10.0.90.83]) by gproxy2.mail.unifiedlayer.com (Postfix) with ESMTP id 383C61E0FB1 for ; Sun, 12 Nov 2017 14:00:27 -0700 (MST) In-reply-to: <8a728d2e-e304-da28-dbc7-33b69b71f01a@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 Aloha Frederic, gmx writes: > Hello, > I've been using Org-mode for several months now, with pleasure. > However, I would like the .tex files use some packages (babel, > french...), a particular koma-script class (scrartcl), etc., which allow > me to release a. pdf file with French typographical standards. > > How to do this? > > Thank you for your help, > Frederic Below are two examples that should help you on your way. See the documentation for org-latex-classes for an explanation of [NO-DEFAULT-PACKAGES], etc., which you might or might not want to use. You can put the (add-to-list ...) functions in your .emacs so they are always available, or you can call one of the source code blocks from a buffer you want to export. I find it convenient to do this: #Local Variables # eval: (org-sbe "koma-article-palatino") You'll also need to specify the LaTeX class in the buffer you want to export: #+LATEX_CLASS: koma-article-palatino hth, Tom #+name: koma-article-times #+header: :results silent #+begin_src emacs-lisp (require 'ox-latex) (add-to-list 'org-latex-classes '("koma-article-times" "\\documentclass{scrartcl} [NO-DEFAULT-PACKAGES] [PACKAGES] [EXTRA] \\usepackage{microtype} \\usepackage{tgtermes} \\usepackage[scale=.9]{tgheros} \\usepackage{tgcursor} \\usepackage{paralist} \\usepackage[T1]{fontenc} \\usepackage{graphicx} \\usepackage{textcomp} \\usepackage{hyperref} \\newcommand{\\rc}{$^{14}$C}" ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}") ("\\paragraph{%s}" . "\\paragraph*{%s}") ("\\subparagraph{%s}" . "\\subparagraph*{%s}"))) #+end_src #+name: koma-article-palatino #+header: :results silent #+begin_src emacs-lisp (require 'ox-latex) (add-to-list 'org-latex-classes '("koma-article-palatino" "\\documentclass{scrartcl} [NO-DEFAULT-PACKAGES] [PACKAGES] [EXTRA] \\usepackage{microtype} \\usepackage{tgpagella} \\linespread{1.05} \\usepackage[semibold]{sourcesanspro} \\usepackage{tgcursor} \\usepackage{paralist} \\usepackage[T1]{fontenc} \\usepackage{graphicx} \\usepackage{textcomp} \\usepackage{hyperref} \\newcommand{\\rc}{$^{14}$C}" ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}") ("\\paragraph{%s}" . "\\paragraph*{%s}") ("\\subparagraph{%s}" . "\\subparagraph*{%s}"))) #+end_src -- Thomas S. Dye http://www.tsdye.com