From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: scrlttr2 class and org-mode Date: Tue, 12 Mar 2019 17:24:26 -0400 Message-ID: <878sxjair9.fsf@alphaville.usersys.redhat.com> References: <874l887ygf.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([209.51.188.92]:35985) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h3p0I-0003LC-EW for emacs-orgmode@gnu.org; Tue, 12 Mar 2019 17:32:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h3ot3-0003uW-4D for emacs-orgmode@gnu.org; Tue, 12 Mar 2019 17:24:37 -0400 Received: from [195.159.176.226] (port=47856 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h3ot2-0003sk-Qu for emacs-orgmode@gnu.org; Tue, 12 Mar 2019 17:24:37 -0400 Received: from list by blaine.gmane.org with local (Exim 4.89) (envelope-from ) id 1h3osz-000vHm-BR for emacs-orgmode@gnu.org; Tue, 12 Mar 2019 22:24:33 +0100 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: emacs-orgmode@gnu.org Joseph Vidal-Rosset 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