emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Export <<anchor>> to latex
@ 2012-03-02 19:58 Markus Grebenstein
  2012-03-02 20:23 ` Nick Dokos
  0 siblings, 1 reply; 3+ messages in thread
From: Markus Grebenstein @ 2012-03-02 19:58 UTC (permalink / raw)
  To: emacs-orgmode

Dear List,

I am regularly running into problems with internal links to headings, 
since my document meanwhile is 200pp+ long and I tend to change headings.

Since I loose the ability to jump to the heading, I do not like to use 
the classic latex approach using \label.

I am wondering why anchors are not exported as a label. Alternatively 
having an "option" for headings would be nice like:
* Heading [label:anchor]

Is there a possibility to tweak orgmode to export anchors?

Thanks in advance,

Markus

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Export <<anchor>> to latex
  2012-03-02 19:58 Export <<anchor>> to latex Markus Grebenstein
@ 2012-03-02 20:23 ` Nick Dokos
  2012-03-02 22:09   ` Markus Grebenstein
  0 siblings, 1 reply; 3+ messages in thread
From: Nick Dokos @ 2012-03-02 20:23 UTC (permalink / raw)
  To: Markus Grebenstein; +Cc: nicholas.dokos, emacs-orgmode

Markus Grebenstein <post@mgrebenstein.de> wrote:

> Dear List,
> 
> I am regularly running into problems with internal links to headings,
> since my document meanwhile is 200pp+ long and I tend to change
> headings.
> 
> Since I loose the ability to jump to the heading, I do not like to use
> the classic latex approach using \label.
> 
> I am wondering why anchors are not exported as a label. Alternatively
> having an "option" for headings would be nice like:
> * Heading [label:anchor]
> 
> Is there a possibility to tweak orgmode to export anchors?
> 
> Thanks in advance,
> 

I may be misunderstanding what you mean, but when I try exporting to latex
the following org file:

--8<---------------cut here---------------start------------->8---

* foo
# <<fooanchor>>

foo text

* bar
# <<baranchor>>

bar text
--8<---------------cut here---------------end--------------->8---

I get the following latex code:

,----
| ...
| \section{foo}
| \label{sec-1}
| \label{fooanchor}
| 
| 
| foo text
| \section{bar}
| \label{sec-2}
| \label{baranchor}
| 
| 
| bar text
| ...
`----

Isn't that enough?

Nick

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Export <<anchor>> to latex
  2012-03-02 20:23 ` Nick Dokos
@ 2012-03-02 22:09   ` Markus Grebenstein
  0 siblings, 0 replies; 3+ messages in thread
From: Markus Grebenstein @ 2012-03-02 22:09 UTC (permalink / raw)
  To: nicholas.dokos; +Cc: emacs-orgmode

Dear Nick,

that is even more than enough ;-)

Thanks a lot! That solves quite a bit of preoblems for me.

I tried to put the anchor in the line of the headline itself and it 
worked in orgmode but was not exported as I expected.

Best,

Markus

Am 02.03.2012 21:23, schrieb Nick Dokos:
> Markus Grebenstein<post@mgrebenstein.de>  wrote:
>
>> Dear List,
>>
>> I am regularly running into problems with internal links to headings,
>> since my document meanwhile is 200pp+ long and I tend to change
>> headings.
>>
>> Since I loose the ability to jump to the heading, I do not like to use
>> the classic latex approach using \label.
>>
>> I am wondering why anchors are not exported as a label. Alternatively
>> having an "option" for headings would be nice like:
>> * Heading [label:anchor]
>>
>> Is there a possibility to tweak orgmode to export anchors?
>>
>> Thanks in advance,
>>
> I may be misunderstanding what you mean, but when I try exporting to latex
> the following org file:
>
> --8<---------------cut here---------------start------------->8---
>
> * foo
> #<<fooanchor>>
>
> foo text
>
> * bar
> #<<baranchor>>
>
> bar text
> --8<---------------cut here---------------end--------------->8---
>
> I get the following latex code:
>
> ,----
> | ...
> | \section{foo}
> | \label{sec-1}
> | \label{fooanchor}
> |
> |
> | foo text
> | \section{bar}
> | \label{sec-2}
> | \label{baranchor}
> |
> |
> | bar text
> | ...
> `----
>
> Isn't that enough?
>
> Nick
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-03-02 22:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-02 19:58 Export <<anchor>> to latex Markus Grebenstein
2012-03-02 20:23 ` Nick Dokos
2012-03-02 22:09   ` Markus Grebenstein

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).