emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] export to LaTeX with TOC but without numbers


From: Nick Dokos
Subject: Re: [O] export to LaTeX with TOC but without numbers
Date: Tue, 04 Jun 2013 16:54:52 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Andreas Leha <address@hidden> writes:

>> Instead of adding toc entries, you can use latex to delete section
>> numbers:
>>
>> #+LATEX_HEADER: \setcounter{secnumdepth}{0}
>> ...
>>
>> The problem might be that the sections are not numbered in the TOC
>> either. But if you don't care about that, this is certainly simpler
>> than adding toc entries by hand.
>
> Thanks for that!  That is really cool and having the entries in the TOC
> un-numbered is exactly what I want!
>
> As a follow-up, it would be nice if I could mix
> that now again with num:1.  That way I could add a TOC with depth 1
> (only sections) and have them un-numbered.
>

There is a tocdepth counter that you can set similarly. Will that
do what you want?

--8<---------------cut here---------------start------------->8---
#+LATEX_HEADER: \setcounter{tocdepth}{1}
#+LATEX_HEADER: \setcounter{secnumdepth}{0}
--8<---------------cut here---------------end--------------->8---


> But num:1 add its own '\setcounter{secnumdepth}{1}' (why?) which by default
> comes later than than the #+LATEX_HEADER definition:
>
> #+OPTIONS: num:1
> #+LATEX_HEADER: \setcounter{secnumdepth}{0}
>


-- 
Nick




reply via email to

[Prev in Thread] Current Thread [Next in Thread]