emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: John Hendy <jw.hendy@gmail.com>
To: Peter Salazar <cycleofsong@gmail.com>
Cc: Richard Lawrence <richard.lawrence@berkeley.edu>,
	org-mode <emacs-orgmode@gnu.org>, Rasmus <rasmus@gmx.us>
Subject: Re: heading numbering in LaTeX export?
Date: Sun, 8 Sep 2013 09:26:52 -0500	[thread overview]
Message-ID: <CA+M2ft9eEwT9C-JYSNY+1c9M-MeoWvDODh61N-5Gbydzk0+URg@mail.gmail.com> (raw)
In-Reply-To: <CAE+_6Tz1gN5dWffoP0Ow3sztwpgULBxiYE=_MzKPTAMrU=dBBw@mail.gmail.com>

On Sat, Sep 7, 2013 at 5:51 PM, Peter Salazar <cycleofsong@gmail.com> wrote:
> 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

Hi Peter,


Actually, I hadn't understood your issue. I thought you weren't
getting headlines exported at all, as in a blank document, which might
require a bit more delving into. Now I get it and it makes sense. When
I use num:nil but want a TOC, I tend to just add the entries manually:

#+begin_example

* Introduction
\addcontentsline{toc}{subsection}{Introduction}

blah blah blah

* Conclusion
\addcontentsline{toc}{subsection}{Conclusion}

blah blah blah

#+end_example


Perhaps a bit manual, and it looks like you've gotten more automated
answers to use via #+latex_header arguments.


Good luck!
John

>
> 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!
>
> I don't need section numbers ever, so my desire is to turn off numbering
> forever, but still have an intact Table of Contents and header.
>
> Thanks guys!
>
>
> On Fri, Sep 6, 2013 at 4:30 PM, John Hendy <jw.hendy@gmail.com> wrote:
>>
>> On Fri, Sep 6, 2013 at 2:43 PM, Peter Salazar <cycleofsong@gmail.com>
>> wrote:
>> > 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.
>> > 2. The \leftmark in the heading shows up as "Contents" instead of
>> > showing up
>> > as the title of the section.
>> >
>> > How do I modify these org-mode preferences such that my I can turn
>> > heading
>> > numbering off in org-mode while still correctly generating a Table of
>> > Contents and adding my section title to the header?
>> >
>> > I'm sorry, but I don't know enough about LaTeX to make a minimum
>> > representation of this. I have no idea where the problem is.
>> >
>>
>> At the very least, can you provide a minimal org file? This is over my
>> head with xelatex and all that customization, but I think people are
>> going to at least need:
>> - minimal emacs config (reproducible version that produces the
>> problem, not just the latex stuff)
>> - a .org file that produces the issue you're experiencing (even with
>> just a couple headlines and the words "blah blah blah" or what have
>> you as the text
>>
>>
>> John
>>
>> > Here are the org-mode preferences in question:
>> > http://pastebin.com/62Nugpsg
>> >
>> > Thanks!
>
>

  parent reply	other threads:[~2013-09-08 14:26 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 [this message]
2013-09-07 20:21 ` Richard Lawrence
2013-09-07 20:41   ` Rasmus

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=CA+M2ft9eEwT9C-JYSNY+1c9M-MeoWvDODh61N-5Gbydzk0+URg@mail.gmail.com \
    --to=jw.hendy@gmail.com \
    --cc=cycleofsong@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=rasmus@gmx.us \
    --cc=richard.lawrence@berkeley.edu \
    /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).