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