Aankhen <aank...@gmail.com> writes: > Hi, > > On Mon, Mar 7, 2011 at 04:37, Jakub Szypulka <cubib...@googlemail.com> wrote: >> 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’t reproduce this problem: > > ,----[ foo.org ] > | * Foo > | > | * Bar > | > | ** Quux > | > | * Baz > `---- > > Becomes: > > ,----[ Exported LaTeX ] > | \usepackage{amssymb} > | \usepackage{hyperref} > | \tolerance=1000 > | \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 =section*= 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 =org-export-latex-classes= so that =section=, =subsection=, etc. are used even for unnumbered export. HTH, eric -- : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1 : using Org-mode version 7.5 (release_7.5.2.g11a1)