On Wed, Nov 17, 2021 at 12:18 PM Uwe Brauer wrote:
> > I type "As we have seen in section [[*Intro]]" (literally, I tend to
> > not use any keybindings or function to insert the link). This (the
> > "*Intro" inside double square brackets) is called an internal link to
> > headlines and they are a
Uwe Brauer writes:
> Yes, but, what do you do, if you have a 10 header and each has 20
> subheaders.
I avoid writing such complex documents for the moment. :)
[Some custom functions]
> Thanks but this did not work!
Sorry. The code is meant as an inspiration, not to be used out-of-the
box. I n
Juan Manuel Macías writes:
> In Org 9.5 there is a new variable `org-latex-reference-command'.
Thanks for the reminder! I once read about it, but forgot to use it
after upgrading to 9.5. :)
--
Until the next mail...,
Stefan.
Stefan Nobis writes:
> #+begin_src emacs-lisp
> (defun sn/ox-latex-filter-special-ref-vref (text backend info)
> (when (org-export-derived-backend-p backend 'latex)
> (replace-regexp-in-string "ref{" "vref{" text)))
>
> (add-to-list 'org-export-filter-link-functions
> #'s
>>> "ESF" == Eric S Fraga writes:
> On Wednesday, 17 Nov 2021 at 17:00, Uwe Brauer wrote:
>> While
>>
>> ** That <>
> Well, you could write
> ** That
> <>
Right, good idea
> to get what you like in terms of LaTeX export.
> I tend to put the label on the headline so that I can see it when I
>>> "SN" == Stefan Nobis writes:
> Uwe Brauer writes:
>> I am not following you. You insert a header as in
>> * Intro
>> Now you want to refer to it with a link
>> As we have seen in section ...
>> So what precisely are you typing?
> I type "As we have seen in section [[*Intro]]" (literally
>>> "ESF" == Eric S Fraga writes:
> On Wednesday, 17 Nov 2021 at 16:55, Uwe Brauer wrote:
> "SN" == Stefan Nobis writes:
>>> As seen in [[*Intro]] there is not much to say.
>>
>> I am not following you. You insert a header as in
>>
>> * Intro
>>
>>
>> Now you want to refer to it with a l
On Wednesday, 17 Nov 2021 at 17:00, Uwe Brauer wrote:
> While
>
> ** That <>
Well, you could write
--8<---cut here---start->8---
** That
<>
--8<---cut here---end--->8---
to get what you like in terms of LaTeX export.
I te
Uwe Brauer writes:
> I am not following you. You insert a header as in
> * Intro
> Now you want to refer to it with a link
> As we have seen in section ...
> So what precisely are you typing?
I type "As we have seen in section [[*Intro]]" (literally, I tend to
not use any keybindings or fun
> Stefan Nobis writes:
> Completely agree. I also tend to use `org-super-link'
> (https://github.com/toshism/org-super-links).
Interesting. This package is not in MELPA, but I will download and test
it.
> It can be run with helm-org-ql, so if there are a lot of headings in
> the document, I j
On Wednesday, 17 Nov 2021 at 16:55, Uwe Brauer wrote:
"SN" == Stefan Nobis writes:
>> As seen in [[*Intro]] there is not much to say.
>
> I am not following you. You insert a header as in
>
> * Intro
>
>
> Now you want to refer to it with a link
The point is that the link uses the heading
>>> "ESF" == Eric S Fraga 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 he
>>> "SN" == Stefan Nobis writes:
> Uwe Brauer writes:
>> I wonder why this was not implemented or asked for.
> Hmmm... for me, the default way to link to headings is just fine, I
> seldom need more control over the generated labels:
> #+begin_src org
> ,* Intro
> Lorem ipsum dolor sit ame
Stefan Nobis writes:
> Hmmm... for me, the default way to link to headings is just fine, I
> seldom need more control over the generated labels:
>
> #+begin_src org
> ,* Intro
>
> Lorem ipsum dolor sit amet...
>
> ,* Another section
>
> As seen in [[*Intro]] there is not much to say.
> #+e
Uwe Brauer writes:
> I wonder why this was not implemented or asked for.
Hmmm... for me, the default way to link to headings is just fine, I
seldom need more control over the generated labels:
#+begin_src org
,* Intro
Lorem ipsum dolor sit amet...
,* Another section
As seen in [[*Int
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?
LaTeX needs help because it's a lot more verbose. Org, however, has a
v
>>> "JK" == John Kitchin writes:
> there is nothing like that that I know of. You can write your own, in org
> (following Eric's use of radio targets) it might look like this.
> (defun my-heading ()
> (interactive)
> (let* ((title (string-trim (read-string "title: ")))
> (tokens (split-strin
there is nothing like that that I know of. You can write your own, in org
(following Eric's use of radio targets) it might look like this.
(defun my-heading ()
(interactive)
(let* ((title (string-trim (read-string "title: ")))
(tokens (split-string title " " t))
(label (format "<>"
(string-joi
>>> "ESF" == Eric S Fraga writes:
> On Wednesday, 17 Nov 2021 at 08:36, Uwe Brauer wrote:
>> In auctex+reftex it is possible that when I insert a new section header
>> a reference label is inserted automatically:
> I do the following usually:
> * <> Introduction
Right, but how do you do this
On Wednesday, 17 Nov 2021 at 08:36, Uwe Brauer wrote:
> In auctex+reftex it is possible that when I insert a new section header
> a reference label is inserted automatically:
I do the following usually:
--8<---cut here---start->8---
* <> Introduction
In sectio
>>> "UB" == Uwe Brauer writes:
> Hi
> In auctex+reftex it is possible that when I insert a new section header
> a reference label is inserted automatically:
> 1. Example
>\subsection{Inverse problem}
>\label{sec:one}
> 2. And then using reftex-reference
>I can insert \ref{sec:on
21 matches
Mail list logo