[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: insert automatically a reference to a section header and a link
From: |
Uwe Brauer |
Subject: |
Re: insert automatically a reference to a section header and a link |
Date: |
Wed, 17 Nov 2021 17:00:10 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
>>> "ESF" == Eric S Fraga <e.fraga@ucl.ac.uk> writes:
> On Wednesday, 17 Nov 2021 at 14:58, Uwe Brauer wrote:
>> Right, but how do you do this automatically?
> John's given you an answer along the lines of what you wanted but I
> would suggest that sometimes we over-complicate things?
Hm not sure
> LaTeX needs help because it's a lot more verbose. Org, however, has a
> very simple markup ("It's all text" ;-)) and just typing what you want
> is often quicker! Instead of key bindings to remember, I know I can
> simply type
> RET * <<label>> heading RET
> and I'm done...
Well you should try auctex+reftex, it is just easier and (faster) if all
this is done automatically.
In auctex, you can also do this as you describe and I found that
terrible and was very relived to find out about reftex, that insert
labels automatically (and systematically)
> Likewise, typing the reference is simply typing [[label]].
> And both bits above benefit from electric-pair-mode...
> But I'm glad you found your solution in any case!
There is just a small problem with this approach.
When exported to latex
** Hello
:PROPERTIES:
:CUSTOM_ID: sec:wo
:END:
Is exported as
\subsection{Hello}
\label{sec:wo}
While
** That <<sec:That>>
Is exported as
\subsection{That \label{sec:That}}
\label{sec:org213d0b6}
The first one is much nicer and more in line with the logic of latex,
the second however is not bad (since it generates correct pdf files when
compiled)
I might think how to generalize John's approach.
Uwe
smime.p7s
Description: S/MIME cryptographic signature
- Re: insert automatically a reference to a section header and a link, (continued)
- Re: insert automatically a reference to a section header and a link, Stefan Nobis, 2021/11/17
- Re: insert automatically a reference to a section header and a link, Uwe Brauer, 2021/11/17
- Re: insert automatically a reference to a section header and a link, Stefan Nobis, 2021/11/17
- Re: insert automatically a reference to a section header and a link, Bruce D'Arcus, 2021/11/23
- Re: insert automatically a reference to a section header and a link, Juan Manuel MacĂas, 2021/11/17
- Re: insert automatically a reference to a section header and a link, Stefan Nobis, 2021/11/17
- Re: insert automatically a reference to a section header and a link, Eric S Fraga, 2021/11/17
- Re: insert automatically a reference to a section header and a link,
Uwe Brauer <=
- Re: insert automatically a reference to a section header and a link, Eric S Fraga, 2021/11/17
- Re: insert automatically a reference to a section header and a link, Uwe Brauer, 2021/11/17
[Problems with org-ref-helm-insert-ref-link and org-id-get-create] (was: insert automatically a reference to a section header and a link), Uwe Brauer, 2021/11/17
- Re: [Problems with org-ref-helm-insert-ref-link and org-id-get-create] (was: insert automatically a reference to a section header and a link), John Kitchin, 2021/11/17
- Re: [Problems with org-ref-helm-insert-ref-link and org-id-get-create], Uwe Brauer, 2021/11/17
- Re: [Problems with org-ref-helm-insert-ref-link and org-id-get-create], John Kitchin, 2021/11/17
- Re: [Problems with org-ref-helm-insert-ref-link and org-id-get-create], Uwe Brauer, 2021/11/17
- Re: [Problems with org-ref-helm-insert-ref-link and org-id-get-create], Uwe Brauer, 2021/11/17
- Re: [Problems with org-ref-helm-insert-ref-link and org-id-get-create], John Kitchin, 2021/11/17
- Re: [Problems with org-ref-helm-insert-ref-link and org-id-get-create], Uwe Brauer, 2021/11/18