* Export: Numbered subtree whose parent has unnumbered: t
@ 2016-07-06 0:08 Spencer Hill
2016-07-06 9:00 ` Nicolas Goaziou
0 siblings, 1 reply; 2+ messages in thread
From: Spencer Hill @ 2016-07-06 0:08 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 829 bytes --]
C.f. this emacs.stackexchange question: http://emacs.stackexchange.com/q/24313/8818
As of version 8.3 of org, numbering of subtrees in export can be toggled via the :UNNUMBERED property. This applies to subheadings regardless of their own :UNNUMBERED property value. MWE:
* Heading
:PROPERTIES:
:UNNUMBERED: t
:END:
** Subheading
:PROPERTIES:
:UNNUMBERED: nil
:END:
This generates for LaTeX export
...
\section*{Heading}
\label{sec:orgheadline2}
\subsection*{Subheading}
\label{sec:orgheadline1}
Is there some other way to toggle this at the subheading level? I need a heading to be un-numbered when exported to LaTeX, but its child subheading to be numbered. I.e. \section*{Heading} and \subsection{Subheading}.
Thanks!
Best,
Spencer
Spencer Hill
spencerahill@gmail.com
(913) 515-8527
[-- Attachment #2: Type: text/html, Size: 4480 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Export: Numbered subtree whose parent has unnumbered: t
2016-07-06 0:08 Export: Numbered subtree whose parent has unnumbered: t Spencer Hill
@ 2016-07-06 9:00 ` Nicolas Goaziou
0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Goaziou @ 2016-07-06 9:00 UTC (permalink / raw)
To: Spencer Hill; +Cc: emacs-orgmode
Hello,
Spencer Hill <spencerahill@gmail.com> writes:
> C.f. this emacs.stackexchange question: http://emacs.stackexchange.com/q/24313/8818
>
> As of version 8.3 of org, numbering of subtrees in export can be
> toggled via the :UNNUMBERED property. This applies to subheadings
> regardless of their own :UNNUMBERED property value. MWE:
> * Heading
> :PROPERTIES:
> :UNNUMBERED: t
> :END:
> ** Subheading
> :PROPERTIES:
> :UNNUMBERED: nil
> :END:
> This generates for LaTeX export
>
> ...
> \section*{Heading}
> \label{sec:orgheadline2}
> \subsection*{Subheading}
> \label{sec:orgheadline1}
> Is there some other way to toggle this at the subheading level? I need
> a heading to be un-numbered when exported to LaTeX, but its child
> subheading to be numbered. I.e. \section*{Heading} and
> \subsection{Subheading}.
That is not possible out of the box.
Depending on your needs you can define a new class so that every
\section is starred.
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-07-06 9:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-06 0:08 Export: Numbered subtree whose parent has unnumbered: t Spencer Hill
2016-07-06 9:00 ` Nicolas Goaziou
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.