From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: Different (setq org-export-with-section-numbers) depending on HTML or LaTeX export Date: Mon, 07 Mar 2011 16:24:57 +0000 Message-ID: <87zkp6290m.fsf@ucl.ac.uk> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=37845 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PweR1-0000Tl-1c for emacs-orgmode@gnu.org; Mon, 07 Mar 2011 12:41:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PweQz-0007GS-Ly for emacs-orgmode@gnu.org; Mon, 07 Mar 2011 12:41:30 -0500 Received: from vscane-b.ucl.ac.uk ([144.82.108.141]:47658) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PweQz-0007EY-HE for emacs-orgmode@gnu.org; Mon, 07 Mar 2011 12:41:29 -0500 In-Reply-To: (aankhen@gmail.com's message of "Mon, 7 Mar 2011 11:07:08 +0530") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Aankhen Cc: Jakub Szypulka , Org-mode ml Aankhen writes: > Hi, > > On Mon, Mar 7, 2011 at 04:37, Jakub Szypulka wr= ote: >> I'm trying to hide section numbers in the HTML export, while keeping >> the sections in the LaTeX export. >> >> Adding (setq org-export-with-section-numbers nil) successfully removes >> the HTML section numbering, but for a mysterious reason also removes >> headlines when doing a LaTeX export. > > Could you give a sample of the input and output? Using Org-mode from > git, I can=E2=80=99t reproduce this problem: > > ,----[ foo.org ] > | * Foo > | > | * Bar > | > | ** Quux > | > | * Baz > `---- > > Becomes: > > ,----[ Exported LaTeX ] > | \usepackage{amssymb} > | \usepackage{hyperref} > | \tolerance=3D1000 > | \providecommand{\alert}[1]{\textbf{#1}} > | > | \title{No Title} > | \author{} > | \date{07 March 2011} > | > | \begin{document} > | > | \maketitle > | > | \section*{Foo} Actually, you *have* reproduced the problem: a =3Dsection*=3D does not include section numbers which I believe Jakub wanted (in the latex but not the HTML). For Jakub, I don't think there is a direct way of achieving what you want. Instead, you could have two files, one for HTML export and one for LaTeX export, both of which #+INCLUDE the real content but differ solely in the #+OPTIONS: num:nil or #+OPTIONS: num:t line (former doesn't generate section numbers, latter does). Alternatively, you could customise =3Dorg-export-latex-classes=3D so that =3Dsection=3D, =3Dsubsection=3D, etc. are used even for unnumbered export. HTH, eric --=20 : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1 : using Org-mode version 7.5 (release_7.5.2.g11a1)