* Numbering specific headings only
@ 2017-04-05 1:26 Mehul Sanghvi
2017-04-05 13:35 ` Rasmus
0 siblings, 1 reply; 3+ messages in thread
From: Mehul Sanghvi @ 2017-04-05 1:26 UTC (permalink / raw)
To: ML Emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 1418 bytes --]
I am creating a legal document (a rental agreement) using org-mode and
{{{macros}}}.
I have some of the kinks in the document ironed out so, except for one.
----sample document---
#+OPTIONS: num:nil toc:nil
#+LATEX_HEADER: \usepackage{fullpage}
* RESIDENTIAL LEASE AGREEMENT
This residential leased property lease agreement
** LANDLORD AND TENANT COVENANT AND AGREE:
*** DEFINITIONS
1. blah blah blah blah blah blah blah blah blah blah ablaakjkfjadsf
kjfkjasdfkhajkfdjakf'asdfhsfh shdfjhsaf khasdfhaieurh kakshfkasfhouw
kdhfkahsdfjkiu khdsjfhjf kjkqwn ajhjhb
2. foo bar foo bar foo bar jkhdfjahf mhaksdfjkaf kjaksfdjkwhefrnm
adfhff kaskdfha kajfhjahroryetha jkasdkfhajfhwohrmahjah kahsdfjhwurey
hajsdfhiwyure hkhsadfyoiytg jhajdfh herhjh kh dahf hasjdfhiwer khkshdfkq
jkjaiyashd
*** FOOBAR
some more legal gibberish goes here
---end of sample document-----
When I export the document to PDF, all the headings get numbered. I only
want to
have the 3rd level heading numbered (DEFINITIONS, FOOBAR, etc.). I have
got about 50 3rd level headings so far. There may be more, might get
less. I don't want to manually number the headings.
How do I go about doing that ? If I use the option 'H:3' it will do all
headings 3 and above, which is not what I want.
Any thoughts/pointers/suggestions much appreciated.
cheers,
mehul
--
Mehul N. Sanghvi
email: mehul.sanghvi@gmail.com
[-- Attachment #2: Type: text/html, Size: 2056 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Numbering specific headings only
2017-04-05 1:26 Numbering specific headings only Mehul Sanghvi
@ 2017-04-05 13:35 ` Rasmus
2017-04-05 14:47 ` Mehul Sanghvi
0 siblings, 1 reply; 3+ messages in thread
From: Rasmus @ 2017-04-05 13:35 UTC (permalink / raw)
To: emacs-orgmode
Hi,
> When I export the document to PDF, all the headings get numbered. I only
> want to
> have the 3rd level heading numbered (DEFINITIONS, FOOBAR, etc.). I have
> got about 50 3rd level headings so far. There may be more, might get
> less. I don't want to manually number the headings.
Does this solve your problem:
#+latex_header: \renewcommand{\thesection}{}
#+latex_header: \renewcommand{\thesubsection}{}
#+latex_header: \renewcommand{\thesubsubsection}{\arabic{subsubsection}}
Depending on your usage, you might have to disable counter reset between
sections/subsections. You might be able to use the chngcntr package for
that.
You might be able to use the Org UNNUMBERED property, though I doubt it.
Rasmus
--
To err is human. To screw up 10⁶ times per second, you need a computer
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Numbering specific headings only
2017-04-05 13:35 ` Rasmus
@ 2017-04-05 14:47 ` Mehul Sanghvi
0 siblings, 0 replies; 3+ messages in thread
From: Mehul Sanghvi @ 2017-04-05 14:47 UTC (permalink / raw)
To: Rasmus; +Cc: ML Emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 1477 bytes --]
Hi,
Thanks for pointers. Using the UNNUMBERED property did not work. I
applied the property to the top level heading and the second level heading.
I believe it cascades down to the other headings, so everything was
unnumbered.
The latex_header option worked though. It numbered the 3rd level
heading and anything below it as well. For the
most part I will not have any headings below that anyway so it should be
fine.
cheers,
mehul
On Wed, Apr 5, 2017 at 9:35 AM, Rasmus <rasmus@gmx.us> wrote:
> Hi,
>
> > When I export the document to PDF, all the headings get numbered. I only
> > want to
> > have the 3rd level heading numbered (DEFINITIONS, FOOBAR, etc.). I have
> > got about 50 3rd level headings so far. There may be more, might get
> > less. I don't want to manually number the headings.
>
> Does this solve your problem:
>
> #+latex_header: \renewcommand{\thesection}{}
> #+latex_header: \renewcommand{\thesubsection}{}
> #+latex_header: \renewcommand{\thesubsubsection}{\arabic{subsubsection}}
>
> Depending on your usage, you might have to disable counter reset between
> sections/subsections. You might be able to use the chngcntr package for
> that.
>
> You might be able to use the Org UNNUMBERED property, though I doubt it.
>
> Rasmus
>
> --
> To err is human. To screw up 10⁶ times per second, you need a computer
>
>
>
--
Mehul N. Sanghvi
email: mehul.sanghvi@gmail.com
[-- Attachment #2: Type: text/html, Size: 2239 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-04-05 14:47 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-05 1:26 Numbering specific headings only Mehul Sanghvi
2017-04-05 13:35 ` Rasmus
2017-04-05 14:47 ` Mehul Sanghvi
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).