From: Eric S Fraga <e.fraga@ucl.ac.uk>
To: Aankhen <aankhen@gmail.com>
Cc: Jakub Szypulka <cubibubi@googlemail.com>,
Org-mode ml <emacs-orgmode@gnu.org>
Subject: Re: Different (setq org-export-with-section-numbers) depending on HTML or LaTeX export
Date: Mon, 07 Mar 2011 16:24:57 +0000 [thread overview]
Message-ID: <87zkp6290m.fsf@ucl.ac.uk> (raw)
In-Reply-To: <AANLkTim1x6NNntdS3Sj9Q0c0JL3f1x1Q21LX7Ar8S8OA@mail.gmail.com> (aankhen@gmail.com's message of "Mon, 7 Mar 2011 11:07:08 +0530")
Aankhen <aankhen@gmail.com> writes:
> Hi,
>
> On Mon, Mar 7, 2011 at 04:37, Jakub Szypulka <cubibubi@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)
next prev parent reply other threads:[~2011-03-07 17:41 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-06 23:07 Different (setq org-export-with-section-numbers) depending on HTML or LaTeX export Jakub Szypulka
2011-03-07 5:37 ` Aankhen
2011-03-07 16:24 ` Eric S Fraga [this message]
2011-03-08 6:43 ` Aankhen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87zkp6290m.fsf@ucl.ac.uk \
--to=e.fraga@ucl.ac.uk \
--cc=aankhen@gmail.com \
--cc=cubibubi@googlemail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).