From: Joseph Vidal-Rosset <joseph.vidal.rosset@gmail.com>
To: Nick Dokos <ndokos@gmail.com>
Cc: "Liste-emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: scrlttr2 class and org-mode
Date: Wed, 13 Mar 2019 09:55:18 +0100 [thread overview]
Message-ID: <CAD-VTcFZ=h_-tnuwzsfACxUU6X8UPWuEF7F5BymECGxS1RzGhg@mail.gmail.com> (raw)
In-Reply-To: <878sxjair9.fsf@alphaville.usersys.redhat.com>
[-- Attachment #1: Type: text/plain, Size: 2157 bytes --]
Many thanks Nick for this help. I am going to inspect my user.el file, in
order to correct it, and I will inform you about the result.
Best wishes,
Jo.
Le mar. 12 mars 2019 à 22:34, Nick Dokos <ndokos@gmail.com> a écrit :
> Joseph Vidal-Rosset <joseph.vidal.rosset@gmail.com> writes:
>
> > ...
> > it is also possible to get sections in a
> > letter with scrlttr2 class. Nevertheless, I have to write the latex code
> > \section{} and I ignore how getting sections via org-mode for this
> > class. Is it possible to get an org-mode translation for section in this
> > class?
> >
>
> C-h v org-latex-classes RET
>
> Briefly, you need to add a new element to it, describing what you want org
> to do with this class.
>
> Here's a snippet from my init file that adds two latex classes to this
> variable. Hope this makes the process clear:
>
> --8<---------------cut here---------------start------------->8---
> ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
> ;;; latex export
> (setq revtex-class
> '("revtex" "\\documentclass[11pt]{revtex4-1}"
> ("\\section{%s}" . "\\section*{%s}")
> ("\\subsection{%s}" . "\\subsection*{%s}")
> ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
> ("\\paragraph{%s}" . "\\paragraph*{%s}")
> ("\\subparagraph{%s}" . "\\subparagraph*{%s}")))
>
> (setq koma-article-class
> '("koma-article" "\\documentclass[11pt]{scrartcl}"
> ("\\section{%s}" . "\\section*{%s}")
> ("\\subsection{%s}" . "\\subsection*{%s}")
> ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
> ("\\paragraph{%s}" . "\\paragraph*{%s}")
> ("\\subparagraph{%s}" . "\\subparagraph*{%s}")))
>
> (progn
> (require 'ox-latex)
> (add-to-list 'org-latex-classes revtex-class t)
> (add-to-list 'org-latex-classes koma-article-class t)))
> --8<---------------cut here---------------end--------------->8---
>
> --
> Nick
>
> "There are only two hard problems in computer science: cache
> invalidation, naming things, and off-by-one errors." -Martin Fowler
>
>
>
[-- Attachment #2: Type: text/html, Size: 3457 bytes --]
next prev parent reply other threads:[~2019-03-13 8:55 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-03-12 18:13 scrlttr2 class and org-mode Joseph Vidal-Rosset
2019-03-12 21:24 ` Nick Dokos
2019-03-13 8:55 ` Joseph Vidal-Rosset [this message]
2019-03-13 17:21 ` Joseph Vidal-Rosset
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAD-VTcFZ=h_-tnuwzsfACxUU6X8UPWuEF7F5BymECGxS1RzGhg@mail.gmail.com' \
--to=joseph.vidal.rosset@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=ndokos@gmail.com \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.