* exporting org-mode to latex gives unwanted \label on all sections
@ 2017-07-03 16:47 Sharon Kimble
2017-07-03 17:59 ` Nicolas Goaziou
0 siblings, 1 reply; 4+ messages in thread
From: Sharon Kimble @ 2017-07-03 16:47 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 3393 bytes --]
I have an org-mode document that I'm exporting to latex which works
pretty well. But, there is one problem - for every title in all of the
sections, org-mode export has put a label on even where I have none in
my source file!
Example -
--8<---------------cut here---------------start------------->8---
* Preface
\minitoc
** Disclaimer
The author of this book has used her best efforts in preparing this book and the information
contained in it. This book is distributed as is, without warranty of any kind, either express or
implied, respecting the contents of this ebook, including but not limited to implied warranties for
the ebook's quality, performance, or fitness for any purpose. The author and any dealers and
distributors shall not be liable to the purchaser or any other person or entity with respect to
liability, loss, or damages caused or alleged to have been caused directly or indirectly by this
ebook. This document is provided as is.
\begin{mdframed}[outerlinecolor=black,outerlinewidth=2pt,linecolor=cccolor,middlelinewidth=3pt,roundcorner=10pt]
\textcolor{red}{The author takes no responsibilities for any problems,
damages, or loss of sanity resulting from improper usage of hormones. If
you are in any doubt, do NOT take the tablets, or whatever but post a
question to your relevant newsgroup or refer to a competent medical
doctor or endocrinologist. Messing about with something you do not
understand may seriously damage your health. YOU HAVE BEEN WARNED.}
\end{mdframed}
** Introduction
--8<---------------cut here---------------end--------------->8---
Becomes -
--8<---------------cut here---------------start------------->8---
\chapter{Preface}
\label{sec:org07cbb06}
\minitoc
\section{Disclaimer}
\label{sec:orgd2a1339}
The author of this book has used her best efforts in preparing this book and the information
contained in it. This book is distributed as is, without warranty of any kind, either express or
implied, respecting the contents of this ebook, including but not limited to implied warranties for
the ebook's quality, performance, or fitness for any purpose. The author and any dealers and
distributors shall not be liable to the purchaser or any other person or entity with respect to
liability, loss, or damages caused or alleged to have been caused directly or indirectly by this
ebook. This document is provided as is.
\begin{mdframed}[outerlinecolor=black,outerlinewidth=2pt,linecolor=cccolor,middlelinewidth=3pt,roundcorner=10pt]
\textcolor{red}{The author takes no responsibilities for any problems,
damages, or loss of sanity resulting from improper usage of hormones. If
you are in any doubt, do NOT take the tablets, or whatever but post a
question to your relevant newsgroup or refer to a competent medical
doctor or endocrinologist. Messing about with something you do not
understand may seriously damage your health. YOU HAVE BEEN WARNED.}
\end{mdframed}
\section{Introduction}
\label{sec:orge89bb2c}
--8<---------------cut here---------------end--------------->8---
So how can I get rid of this unwanted \label action please?
Thanks
Sharon.
--
A taste of linux = http://www.sharons.org.uk
TGmeds = http://www.tgmeds.org.uk
DrugFacts = https://www.drugfacts.org.uk
Debian 9.0, fluxbox 1.3.5-2, emacs 25.1.1, org-mode 9.0.7
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: exporting org-mode to latex gives unwanted \label on all sections
2017-07-03 16:47 exporting org-mode to latex gives unwanted \label on all sections Sharon Kimble
@ 2017-07-03 17:59 ` Nicolas Goaziou
2017-07-03 20:03 ` Sharon Kimble
0 siblings, 1 reply; 4+ messages in thread
From: Nicolas Goaziou @ 2017-07-03 17:59 UTC (permalink / raw)
To: Sharon Kimble; +Cc: emacs-orgmode
Hello,
Sharon Kimble <boudiccas@skimble.plus.com> writes:
> I have an org-mode document that I'm exporting to latex which works
> pretty well. But, there is one problem - for every title in all of the
> sections, org-mode export has put a label on even where I have none in
> my source file!
It doesn't hurt, does it? Org uses them to resolve internal references.
If you really need to, I guess you can write an headline filter so as to
remove them.
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: exporting org-mode to latex gives unwanted \label on all sections
2017-07-03 17:59 ` Nicolas Goaziou
@ 2017-07-03 20:03 ` Sharon Kimble
2017-07-04 6:43 ` Rasmus
0 siblings, 1 reply; 4+ messages in thread
From: Sharon Kimble @ 2017-07-03 20:03 UTC (permalink / raw)
To: Nicolas Goaziou; +Cc: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 1189 bytes --]
Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:
> Hello,
>
> Sharon Kimble <boudiccas@skimble.plus.com> writes:
>
>> I have an org-mode document that I'm exporting to latex which works
>> pretty well. But, there is one problem - for every title in all of the
>> sections, org-mode export has put a label on even where I have none in
>> my source file!
>
> It doesn't hurt, does it? Org uses them to resolve internal references.
>
> If you really need to, I guess you can write an headline filter so as to
> remove them.
>
Thanks for replying Nicolas.
Its not a major problem but its annoying when I've manually cleared all
extraneous references put in by me accidentally, and then discover that
org-mode is placing them during exporting. Because they don't appear in
my org-mode document I'm unaware of them and can therefore not utilise
them in new cross-references. They only appear in the generated latex
file and not in the org-mode source document.
Thanks
Sharon.
--
A taste of linux = http://www.sharons.org.uk
TGmeds = http://www.tgmeds.org.uk
DrugFacts = https://www.drugfacts.org.uk
Debian 9.0, fluxbox 1.3.5-2, emacs 25.1.1, org-mode 9.0.7
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: exporting org-mode to latex gives unwanted \label on all sections
2017-07-03 20:03 ` Sharon Kimble
@ 2017-07-04 6:43 ` Rasmus
0 siblings, 0 replies; 4+ messages in thread
From: Rasmus @ 2017-07-04 6:43 UTC (permalink / raw)
To: emacs-orgmode
Sharon Kimble <boudiccas@skimble.plus.com> writes:
> Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:
>
>> Hello,
>>
>> Sharon Kimble <boudiccas@skimble.plus.com> writes:
>>
>>> I have an org-mode document that I'm exporting to latex which works
>>> pretty well. But, there is one problem - for every title in all of the
>>> sections, org-mode export has put a label on even where I have none in
>>> my source file!
>>
>> It doesn't hurt, does it? Org uses them to resolve internal references.
>>
>> If you really need to, I guess you can write an headline filter so as to
>> remove them.
>>
> Thanks for replying Nicolas.
>
> Its not a major problem but its annoying when I've manually cleared all
> extraneous references put in by me accidentally, and then discover that
> org-mode is placing them during exporting. Because they don't appear in
> my org-mode document I'm unaware of them and can therefore not utilise
> them in new cross-references. They only appear in the generated latex
> file and not in the org-mode source document.
But you can refer to them. E.g.:
** Disclaimer
:PROPERTIES:
:CUSTOM_ID: foo
:END:
See [[*Disclaimer]] or [[#foo]]
--
Er du tosset for noge' lårt!
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-07-04 6:43 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-03 16:47 exporting org-mode to latex gives unwanted \label on all sections Sharon Kimble
2017-07-03 17:59 ` Nicolas Goaziou
2017-07-03 20:03 ` Sharon Kimble
2017-07-04 6:43 ` Rasmus
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.