* Org-mode ASCII Export to support numbered references for links
@ 2021-12-13 1:56 Husain Alshehhi
2021-12-13 2:27 ` Samuel Wales
0 siblings, 1 reply; 5+ messages in thread
From: Husain Alshehhi @ 2021-12-13 1:56 UTC (permalink / raw)
To: emacs-orgmode
Org-mode's ascii export uses the link's description to create a reference to it at the end of the document. For example, a link to google will look like this:
,----
| This is a [link to google].
|
| [link to google] <https://www.google.com>
`----
Is there a way to modify this behavior to using a number reference rather than link description? Such as:
,----
|
| This is a link to google[1].
|
| [1] <https://www.google.com>
`----
The reasoning behind this is that using numbers is more intuitive (as it is the common practice it plain text posts, emails etc.) Also, when there are two different links with the same description, the export is going to be confusing to the reader. This happens when I use the description "link".
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Org-mode ASCII Export to support numbered references for links
2021-12-13 1:56 Org-mode ASCII Export to support numbered references for links Husain Alshehhi
@ 2021-12-13 2:27 ` Samuel Wales
2021-12-13 2:30 ` Samuel Wales
2021-12-19 4:52 ` Husain Alshehhi
0 siblings, 2 replies; 5+ messages in thread
From: Samuel Wales @ 2021-12-13 2:27 UTC (permalink / raw)
To: Husain Alshehhi; +Cc: emacs-orgmode
idk but you can put them in place using org-ascii-links-to-notes for a
dry effect.
On 12/12/21, Husain Alshehhi <husain@alshehhi.io> wrote:
> Org-mode's ascii export uses the link's description to create a reference to
> it at the end of the document. For example, a link to google will look like
> this:
>
> ,----
> | This is a [link to google].
> |
> | [link to google] <https://www.google.com>
> `----
>
> Is there a way to modify this behavior to using a number reference rather
> than link description? Such as:
>
> ,----
> |
> | This is a link to google[1].
> |
> | [1] <https://www.google.com>
> `----
>
> The reasoning behind this is that using numbers is more intuitive (as it is
> the common practice it plain text posts, emails etc.) Also, when there are
> two different links with the same description, the export is going to be
> confusing to the reader. This happens when I use the description "link".
>
>
>
--
The Kafka Pandemic
A blog about science, health, human rights, and misopathy:
https://thekafkapandemic.blogspot.com
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Org-mode ASCII Export to support numbered references for links
2021-12-13 2:27 ` Samuel Wales
@ 2021-12-13 2:30 ` Samuel Wales
2021-12-19 4:55 ` Husain Alshehhi
2021-12-19 4:52 ` Husain Alshehhi
1 sibling, 1 reply; 5+ messages in thread
From: Samuel Wales @ 2021-12-13 2:30 UTC (permalink / raw)
To: Husain Alshehhi; +Cc: emacs-orgmode
you can also use inline footnotes.google[fn::https://google.com] which
will be exported like you like as a kludge if there is noe.
On 12/12/21, Samuel Wales <samologist@gmail.com> wrote:
> idk but you can put them in place using org-ascii-links-to-notes for a
> dry effect.
>
> On 12/12/21, Husain Alshehhi <husain@alshehhi.io> wrote:
>> Org-mode's ascii export uses the link's description to create a reference
>> to
>> it at the end of the document. For example, a link to google will look
>> like
>> this:
>>
>> ,----
>> | This is a [link to google].
>> |
>> | [link to google] <https://www.google.com>
>> `----
>>
>> Is there a way to modify this behavior to using a number reference rather
>> than link description? Such as:
>>
>> ,----
>> |
>> | This is a link to google[1].
>> |
>> | [1] <https://www.google.com>
>> `----
>>
>> The reasoning behind this is that using numbers is more intuitive (as it
>> is
>> the common practice it plain text posts, emails etc.) Also, when there
>> are
>> two different links with the same description, the export is going to be
>> confusing to the reader. This happens when I use the description "link".
>>
>>
>>
>
>
> --
> The Kafka Pandemic
>
> A blog about science, health, human rights, and misopathy:
> https://thekafkapandemic.blogspot.com
>
--
The Kafka Pandemic
A blog about science, health, human rights, and misopathy:
https://thekafkapandemic.blogspot.com
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Org-mode ASCII Export to support numbered references for links
2021-12-13 2:27 ` Samuel Wales
2021-12-13 2:30 ` Samuel Wales
@ 2021-12-19 4:52 ` Husain Alshehhi
1 sibling, 0 replies; 5+ messages in thread
From: Husain Alshehhi @ 2021-12-19 4:52 UTC (permalink / raw)
To: Samuel Wales; +Cc: emacs-orgmode
On Sun 12 Dec 2021 at 19:27, "Samuel Wales" <samologist@gmail.com> wrote:
> idk but you can put them in place using org-ascii-links-to-notes for a
> dry effect.
This is fine if the link is short. But if I want to include a very long
link, such as
https://lists.gnu.org/archive/cgi-bin/namazu.cgi?query=search+for+something&submit=Search&idxname=emacs-orgmode
it becomes less practical.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Org-mode ASCII Export to support numbered references for links
2021-12-13 2:30 ` Samuel Wales
@ 2021-12-19 4:55 ` Husain Alshehhi
0 siblings, 0 replies; 5+ messages in thread
From: Husain Alshehhi @ 2021-12-19 4:55 UTC (permalink / raw)
To: Samuel Wales; +Cc: emacs-orgmode
On Sun 12 Dec 2021 at 19:30, "Samuel Wales" <samologist@gmail.com> wrote:
> you can also use inline footnotes.google[fn::https://google.com] which
> will be exported like you like as a kludge if there is noe.
Surprisingly, this does the job. However, this fundamentally changes
the semantics of what I am writing. The link is not a footnote, it is
just a link. So, when I export the document in HTML, it is rendered as
footnotes rather than links.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2021-12-19 4:56 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-13 1:56 Org-mode ASCII Export to support numbered references for links Husain Alshehhi
2021-12-13 2:27 ` Samuel Wales
2021-12-13 2:30 ` Samuel Wales
2021-12-19 4:55 ` Husain Alshehhi
2021-12-19 4:52 ` Husain Alshehhi
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).