emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Rasmus <rasmus@gmx.us>
Cc: emacs-orgmode@gnu.org
Subject: Re: heading numbering in LaTeX export?
Date: Sat, 07 Sep 2013 22:41:50 +0200	[thread overview]
Message-ID: <871u50s6sx.fsf@gmx.us> (raw)
In-Reply-To: <87bo44crhq.fsf@berkeley.edu> (Richard Lawrence's message of "Sat, 07 Sep 2013 13:21:37 -0700")

Richard Lawrence <richard.lawrence@berkeley.edu> writes:

> Hi Peter,
>
> Peter Salazar <cycleofsong@gmail.com> 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: \setcounter{secnumdepth}{0}

Or just

#+OPTIONS: num:0

–Rasmus

-- 
If you can mix business and politics wonderful things can happen!

      reply	other threads:[~2013-09-07 20:42 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-06 19:43 heading numbering in LaTeX export? Peter Salazar
2013-09-06 20:30 ` John Hendy
2013-09-07 22:51   ` Peter Salazar
2013-09-08  4:05     ` Nick Dokos
2013-09-08  4:59       ` Peter Salazar
2013-09-08  5:54         ` Nick Dokos
2013-09-08  7:43           ` Peter Salazar
2013-09-08 11:47             ` Nick Dokos
2013-09-08 16:58               ` Peter Salazar
2013-09-08 14:26     ` John Hendy
2013-09-07 20:21 ` Richard Lawrence
2013-09-07 20:41   ` Rasmus [this message]

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=871u50s6sx.fsf@gmx.us \
    --to=rasmus@gmx.us \
    --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).