[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Different (setq org-export-with-section-numbers) depending on HT
From: |
Eric S Fraga |
Subject: |
Re: [O] Different (setq org-export-with-section-numbers) depending on HTML or LaTeX export |
Date: |
Mon, 07 Mar 2011 16:24:57 +0000 |
User-agent: |
Gnus/5.110014 (No Gnus v0.14) Emacs/24.0.50 (gnu/linux) |
Aankhen <address@hidden> writes:
> Hi,
>
> On Mon, Mar 7, 2011 at 04:37, Jakub Szypulka <address@hidden> 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)