From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Salazar Subject: Re: heading numbering in LaTeX export? Date: Sat, 7 Sep 2013 18:51:11 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b16348dd6193304e5d2fd45 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35090) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VIRLX-00007J-CF for emacs-orgmode@gnu.org; Sat, 07 Sep 2013 18:51:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VIRLV-000281-E2 for emacs-orgmode@gnu.org; Sat, 07 Sep 2013 18:51:15 -0400 Received: from mail-pa0-x22c.google.com ([2607:f8b0:400e:c03::22c]:42111) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VIRLV-00027T-1q for emacs-orgmode@gnu.org; Sat, 07 Sep 2013 18:51:13 -0400 Received: by mail-pa0-f44.google.com with SMTP id fz6so4776100pac.31 for ; Sat, 07 Sep 2013 15:51:11 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: John Hendy , Richard Lawrence , Rasmus Cc: org-mode --047d7b16348dd6193304e5d2fd45 Content-Type: text/plain; charset=ISO-8859-1 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! 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 wrote: > On Fri, Sep 6, 2013 at 2:43 PM, Peter Salazar > 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! > --047d7b16348dd6193304e5d2fd45 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
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 d= isplays. Here you go:=A0

R= asmus:=A0#+OPTI= ONS: 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 "Cont= ents."=A0

The= same thing happens with=A0#+LATEX: \setcounter{secnumdepth}{0}.<= /div>

Richard: Your idea about=A0
#+LATEX_HEADER: \= renewcommand{...}

sounds very promising!= I'd love to know what the exact command is!=A0

I don't need section numbers ever, so my desire is to turn off num= bering forever, but still have an intact Table of Contents and header. =A0<= /div>

Thanks guys!


On Fri, Sep 6, 2013 at 4:30 PM, John Hen= dy <jw.hendy@gmail.com> wrote:
On Fri, Sep 6, 2013 at 2:43 PM, Pet= er Salazar <cycleofsong@gmail.c= om> 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 w= orks
> perfectly for me except for one thing: it only works when I have headi= ng
> numbering turned on.
>
> When I turn numbering off in org-mode, by adding this line to my org-m= ode
> file...
>
> =A0 =A0 #+OPTIONS: =A0 num:nil
>
> ...LaTeX no longer recognizes my headings as headings. This creates tw= o
> problems:
>
> 1. The Table of Contents is blank.
> 2. The \leftmark in the heading shows up as "Contents" inste= ad of showing up
> as the title of the section.
>
> How do I modify these org-mode preferences such that my I can turn hea= ding
> numbering off in org-mode while still correctly generating a Table of<= br> > Contents and adding my section title to the header?
>
> I'm sorry, but I don't know enough about LaTeX to make a minim= um
> 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 ha= ve
you as the text


John

> Here are the org-mode preferences in question:
> http://past= ebin.com/62Nugpsg
>
> Thanks!

--047d7b16348dd6193304e5d2fd45--