From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Salazar Subject: Re: heading numbering in LaTeX export? Date: Sun, 8 Sep 2013 00:59:56 -0400 Message-ID: References: <87txhwrm92.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b2e48229e53ef04e5d824e8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39974) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VIX6N-0008GU-Hh for emacs-orgmode@gnu.org; Sun, 08 Sep 2013 01:00:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VIX6M-0000TQ-9C for emacs-orgmode@gnu.org; Sun, 08 Sep 2013 00:59:59 -0400 Received: from mail-pb0-x22e.google.com ([2607:f8b0:400e:c01::22e]:56552) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VIX6L-0000Sl-TR for emacs-orgmode@gnu.org; Sun, 08 Sep 2013 00:59:58 -0400 Received: by mail-pb0-f46.google.com with SMTP id rq2so4819012pbb.19 for ; Sat, 07 Sep 2013 21:59:56 -0700 (PDT) In-Reply-To: <87txhwrm92.fsf@gmail.com> 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: Nick Dokos Cc: org-mode --047d7b2e48229e53ef04e5d824e8 Content-Type: text/plain; charset=ISO-8859-1 Thank you! That solution is very promising indeed. I see why it's quick and dirty though - it appears to be generation section numbers, but just making the numbers invisible, so that the headings are not flush with the left margin: http://i.imgur.com/G6drpmf.png Is there a solution to that, or is that just the way it is? Thanks again. On Sun, Sep 8, 2013 at 12:05 AM, Nick Dokos wrote: > Peter Salazar 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 > > > > > --047d7b2e48229e53ef04e5d824e8 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Thank you! That solution is very promising indeed.=A0
=
I see why it's quick and dirty though - it appears to be= generation section numbers, but just making the numbers invisible, so that= the headings are not flush with the left margin:




On Sun, Sep 8, 2013 at 12:05 AM, Nick Dokos <ndokos@g= mail.com> wrote:
Peter Salazar <cycleofsong@gmail.com> 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 page= s, so the header displays. Here you
> go:=A0
> https://github.com/petersalazar/org-troubleshooting
>
> Rasmus:=A0#+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 sectio= n title as "Contents."=A0
>
> The same thing happens with=A0#+LATEX: \setcounter{secnumdepth}{0}. >
> Richard: Your idea about=A0
> #+LATEX_HEADER: \renewcommand{...}
>
> sounds very promising! I'd love to know what the exact command is!= =A0

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





--047d7b2e48229e53ef04e5d824e8--