[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] heading numbering in LaTeX export?
From: |
Richard Lawrence |
Subject: |
Re: [O] heading numbering in LaTeX export? |
Date: |
Sat, 07 Sep 2013 13:21:37 -0700 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) |
Hi Peter,
Peter Salazar <address@hidden> writes:
> I have a LaTeX template I created for use with org-mode, to export to PDF
> via LaTeX using xelatex.
>
> I don't edit LaTeX directly, I just generate from org-mode. This works
> perfectly for me except for one thing: it only works when I have heading
> numbering turned on.
>
> When I turn numbering off in org-mode, by adding this line to my org-mode
> file...
>
> #+OPTIONS: num:nil
>
> ...LaTeX no longer recognizes my headings as headings. This creates two
> problems:
>
> 1. The Table of Contents is blank.
This is because, when you set num:nil, Org exports headings to LaTeX
using the \section*{} command, not the usual \section{}. LaTeX does not
put sections defined with \section* (or \chapter*, \part*, etc.) in the
table of contents.
Thus, if you still want all sections to show up in your table of
contents, you probably don't want to set num:nil. If you just want
section numbers not to show up in section titles, there's probably a
simple way to do this in LaTeX by redefining a command, but I can't find
it right now; maybe someone else here knows. Once you know the LaTeX
command, you can set it on Org via
#+LATEX_HEADER: \renewcommand{...}
or whatever.
See also:
https://en.wikibooks.org/wiki/LaTeX/Document_Structure#Sectioning_commands
> 2. The \leftmark in the heading shows up as "Contents" instead of showing
> up as the title of the section.
I'm not sure about this issue. I would guess that it's also caused
by using \section* rather than \section, but there's no \leftmark
command in the test document I created.
--
Best,
Richard
- [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, 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?, 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 <=