From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Fraga Subject: Re: Per file customisation of sectioning structure in latex export Date: Sat, 28 Apr 2012 18:26:44 +0930 Message-ID: <87k4106xpv.fsf@ucl.ac.uk> References: <20120428015548.GA1643@panahar> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:50267) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SO3Sh-0002Hg-31 for emacs-orgmode@gnu.org; Sat, 28 Apr 2012 04:57:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SO3Sf-0007gB-4A for emacs-orgmode@gnu.org; Sat, 28 Apr 2012 04:57:02 -0400 Received: from va3ehsobe002.messaging.microsoft.com ([216.32.180.12]:43366 helo=va3outboundpool.messaging.microsoft.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SO3Sf-0007fw-0B for emacs-orgmode@gnu.org; Sat, 28 Apr 2012 04:57:01 -0400 Received: from mail191-va3 (localhost [127.0.0.1]) by mail191-va3-R.bigfish.com (Postfix) with ESMTP id B69883005E4 for ; Sat, 28 Apr 2012 08:56:54 +0000 (UTC) Received: from VA3EHSMHS012.bigfish.com (unknown [10.7.14.247]) by mail191-va3.bigfish.com (Postfix) with ESMTP id C38014A006E for ; Sat, 28 Apr 2012 08:56:51 +0000 (UTC) In-Reply-To: <20120428015548.GA1643@panahar> (Vikas Rawal's message of "Sat, 28 Apr 2012 07:25:48 +0530") 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode Vikas Rawal writes: > I would like to specify the correspondence between heading levels and > sectioning structure for latex export in a specific file. Could > somebody point me to the right method. I have checked > on > worg. Isn't there a way by which I could specify this in the header. > > I am using latex class "article". Isn't it possible to the sectioning > structure through #+LATEX_CLASS_OPTIONS? > > Vikas You probably want to look at ,----[ C-h v org-export-latex-classes RET ] | org-export-latex-classes's value is shown below. | | Documentation: | Not documented as a variable. | | Value: (("article" "\\documentclass{scrartcl}" | ("\\section{%s}" . "\\section*{%s}") | ("\\subsection{%s}" . "\\subsection*{%s}") | ("\\subsubsection{%s}" . "\\subsubsection*{%s}") | ("\\paragraph{%s}" . "\\paragraph*{%s}") | ("\\subparagraph{%s}" . "\\subparagraph*{%s}")) [...] | ("book" "\\documentclass[11pt]{book}" | ("\\part{%s}" . "\\part*{%s}") | ("\\chapter{%s}" . "\\chapter*{%s}") | ("\\section{%s}" . "\\section*{%s}") | ("\\subsection{%s}" . "\\subsection*{%s}") | ("\\subsubsection{%s}" . "\\subsubsection*{%s}")) | ("beamer" "\\documentclass{beamer}" org-beamer-sectioning)) | | [back] `---- Each entry in the list is a list which has the name of the type of document, the latex class command and then a list of latex commands to use for the heading levels. Each heading level is given two latex commands, one for numbered headings and one for unnumbered. The choice of numbered vs unnumbered is through the num: option. You can generate a template in your org file with default options and other settings using C-c C-e t. -- : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.1.50.1 : using Org release_7.8.09-414-gb3e8a8