Re: [O] exporting org-mode to latex gives unwanted \label on all sections

2017-07-04 Thread Rasmus
Sharon Kimble  writes:

> Nicolas Goaziou  writes:
>
>> Hello,
>>
>> Sharon Kimble  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!




Re: [O] exporting org-mode to latex gives unwanted \label on all sections

2017-07-03 Thread Sharon Kimble
Nicolas Goaziou  writes:

> Hello,
>
> Sharon Kimble  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


signature.asc
Description: PGP signature


Re: [O] exporting org-mode to latex gives unwanted \label on all sections

2017-07-03 Thread Nicolas Goaziou
Hello,

Sharon Kimble  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



[O] exporting org-mode to latex gives unwanted \label on all sections

2017-07-03 Thread Sharon Kimble

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


signature.asc
Description: PGP signature