emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Thomas S. Dye" <tsd@tsdye.com>
To: gmx <fredstev@gmx.fr>
Cc: emacs-orgmode@gnu.org
Subject: Re: org-mode in French
Date: Sun, 12 Nov 2017 11:00:08 -1000	[thread overview]
Message-ID: <m21sl3fc13.fsf@tsdye.com> (raw)
In-Reply-To: <8a728d2e-e304-da28-dbc7-33b69b71f01a@gmx.fr>

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

  reply	other threads:[~2017-11-12 21:00 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-12 20:40 org-mode in French gmx
2017-11-12 21:00 ` Thomas S. Dye [this message]
2018-08-27 19:51   ` Org-mode and koma-script gmx
2018-08-27 19:57     ` gmx
2018-08-27 22:00       ` Tim Cross
2018-08-28  1:56         ` gmx
2018-08-28 16:04           ` Tim Cross
2018-08-28 18:10             ` gmx
2018-08-28 22:38               ` Tim Cross
2018-08-29  1:13                 ` gmx
2018-08-28 21:59             ` gmx
2018-08-28 19:44         ` Nick Dokos
2018-08-28 19:50     ` Nick Dokos
2017-11-14  7:57 ` org-mode in French Rasmus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m21sl3fc13.fsf@tsdye.com \
    --to=tsd@tsdye.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=fredstev@gmx.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).