[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] heading numbering in LaTeX export?
From: |
Nick Dokos |
Subject: |
Re: [O] heading numbering in LaTeX export? |
Date: |
Sun, 08 Sep 2013 00:05:45 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
Peter Salazar <address@hidden> writes:
> Thanks for the responses!
>
> John: Oh yes, of course. Sorry about that. inimal org file and config files
> are here. I had to make the org file long enough to make several pages, so
> the header displays. Here you
> go:
> https://github.com/petersalazar/org-troubleshooting
>
> Rasmus: #+OPTIONS: num:0 is what I started from. When I do that, the
> resulting PDF has no Table of Contents, and the header displays the section
> title as "Contents."
>
> The same thing happens with #+LATEX: \setcounter{secnumdepth}{0}.
>
> Richard: Your idea about
> #+LATEX_HEADER: \renewcommand{...}
>
> sounds very promising! I'd love to know what the exact command is!
The quick-and-dirty solution is
--8<---------------cut here---------------start------------->8---
#+LATEX_HEADER: \renewcommand{\thesection}{}
#+LATEX_HEADER: \renewcommand{\thesubsection}{}
#+LATEX_HEADER: \renewcommand{\thesubsubsection}{}
--8<---------------cut here---------------end--------------->8---
That's enough for the default secnumdepth of 3, but if you make that
bigger, you'll have to make it even dirtier:
--8<---------------cut here---------------start------------->8---
#+LATEX_HEADER: \renewcommand{\theparagraph}{}
#+LATEX_HEADER: \renewcommand{\thesubparagraph}{}
--8<---------------cut here---------------end--------------->8---
There is probably a cleaner way, but that would require cleverness
and I don't have any right now.
BTW, this turns off section numbers in the TOC as well, not just in the
body of the document.
--
Nick
- [O] heading numbering in LaTeX export?, Peter Salazar, 2013/09/06
- Re: [O] heading numbering in LaTeX export?, John Hendy, 2013/09/06
- Re: [O] heading numbering in LaTeX export?, Peter Salazar, 2013/09/07
- Re: [O] heading numbering in LaTeX export?,
Nick Dokos <=
- Re: [O] heading numbering in LaTeX export?, Peter Salazar, 2013/09/08
- Re: [O] heading numbering in LaTeX export?, Nick Dokos, 2013/09/08
- Re: [O] heading numbering in LaTeX export?, Peter Salazar, 2013/09/08
- Re: [O] heading numbering in LaTeX export?, Nick Dokos, 2013/09/08
- Re: [O] heading numbering in LaTeX export?, Peter Salazar, 2013/09/08
- Re: [O] heading numbering in LaTeX export?, John Hendy, 2013/09/08
Re: [O] heading numbering in LaTeX export?, Richard Lawrence, 2013/09/07