* impossible to have footnote touching verbatim
@ 2014-06-23 20:04 Eric Schulte
2014-06-23 20:11 ` Nicolas Goaziou
0 siblings, 1 reply; 6+ messages in thread
From: Eric Schulte @ 2014-06-23 20:04 UTC (permalink / raw)
To: Org Mode Mailing List
Hi,
I'm writing a document in which I use footnotes to hold references to
many tools. One often wants the tool name in tt font, and the footnote
to be touching the tool name (i.e. =tool=[fn:1] ). Unfortunately
currently Org-mode doesn't fontify or export "tool" in the above as tt.
Is there a way around this?
Thanks,
Eric
--
Eric Schulte
https://cs.unm.edu/~eschulte
PGP: 0x614CA05D (see https://u.fsf.org/yw)
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: impossible to have footnote touching verbatim
2014-06-23 20:04 impossible to have footnote touching verbatim Eric Schulte
@ 2014-06-23 20:11 ` Nicolas Goaziou
2014-06-23 20:25 ` Eric Schulte
0 siblings, 1 reply; 6+ messages in thread
From: Nicolas Goaziou @ 2014-06-23 20:11 UTC (permalink / raw)
To: Eric Schulte; +Cc: Org Mode Mailing List
Hello,
Eric Schulte <schulte.eric@gmail.com> writes:
> I'm writing a document in which I use footnotes to hold references to
> many tools. One often wants the tool name in tt font, and the footnote
> to be touching the tool name (i.e. =tool=[fn:1] ). Unfortunately
> currently Org-mode doesn't fontify or export "tool" in the above as tt.
>
> Is there a way around this?
You could probably tweak `org-emphasis-regexp-components' in order to
allow square brackets as postmatch.
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: impossible to have footnote touching verbatim
2014-06-23 20:11 ` Nicolas Goaziou
@ 2014-06-23 20:25 ` Eric Schulte
2014-06-23 21:01 ` Nicolas Goaziou
0 siblings, 1 reply; 6+ messages in thread
From: Eric Schulte @ 2014-06-23 20:25 UTC (permalink / raw)
To: Org Mode Mailing List
Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:
> Hello,
>
> Eric Schulte <schulte.eric@gmail.com> writes:
>
>> I'm writing a document in which I use footnotes to hold references to
>> many tools. One often wants the tool name in tt font, and the footnote
>> to be touching the tool name (i.e. =tool=[fn:1] ). Unfortunately
>> currently Org-mode doesn't fontify or export "tool" in the above as tt.
>>
>> Is there a way around this?
>
> You could probably tweak `org-emphasis-regexp-components' in order to
> allow square brackets as postmatch.
>
Should this be done personally or in master?
Thanks,
>
>
> Regards,
--
Eric Schulte
https://cs.unm.edu/~eschulte
PGP: 0x614CA05D (see https://u.fsf.org/yw)
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: impossible to have footnote touching verbatim
2014-06-23 20:25 ` Eric Schulte
@ 2014-06-23 21:01 ` Nicolas Goaziou
2014-06-23 21:46 ` Eric Schulte
0 siblings, 1 reply; 6+ messages in thread
From: Nicolas Goaziou @ 2014-06-23 21:01 UTC (permalink / raw)
To: Eric Schulte; +Cc: Org Mode Mailing List
Eric Schulte <schulte.eric@gmail.com> writes:
> Should this be done personally or in master?
I can't think of a case where it could lead to confusion, so I'd say it
can go in master, at least until someone complains, if ever.
BTW, as a reminder, I'm all for thinking again how emphasis/verbatim
markup is defined in Org but I doubt changing it by small touches will
do any good. IMO, it needs to be discussed as a whole.
I think a good markup should
- not need to be customizable,
- allow any number of (non-consecutive) newline characters,
- allow escaping markup in verbatim objects.
For example, much like radio links, bold object could be defined as
1. anything but an alphanumeric character (including nothing),
2. / character,
3. an alphanumeric character,
4. anything excepted 2 or more consecutive newline characters
(non-greedy),
5. an alphanumeric character,
6. / character,
7. anything but an alphanumeric character (including nothing).
For simplicity, I ignore the special case /a/ for the moment.
The verbatim would be the same, with a slight change in 4th element:
4. the same, with \= treated as =
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: impossible to have footnote touching verbatim
2014-06-23 21:01 ` Nicolas Goaziou
@ 2014-06-23 21:46 ` Eric Schulte
2014-06-25 8:37 ` Bastien
0 siblings, 1 reply; 6+ messages in thread
From: Eric Schulte @ 2014-06-23 21:46 UTC (permalink / raw)
To: Org Mode Mailing List
Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:
> Eric Schulte <schulte.eric@gmail.com> writes:
>
>> Should this be done personally or in master?
>
> I can't think of a case where it could lead to confusion, so I'd say it
> can go in master, at least until someone complains, if ever.
>
Done. Thanks -- Eric
--
Eric Schulte
https://cs.unm.edu/~eschulte
PGP: 0x614CA05D (see https://u.fsf.org/yw)
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: impossible to have footnote touching verbatim
2014-06-23 21:46 ` Eric Schulte
@ 2014-06-25 8:37 ` Bastien
0 siblings, 0 replies; 6+ messages in thread
From: Bastien @ 2014-06-25 8:37 UTC (permalink / raw)
To: Eric Schulte; +Cc: Org Mode Mailing List
Eric Schulte <schulte.eric@gmail.com> writes:
> Done.
Thanks for this.
I agree with Nicolas that small changes like this won't encourage
a structural change by themselves, but they do not harm either,
so let's not refrain from making them.
--
Bastien
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2014-06-25 8:37 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-23 20:04 impossible to have footnote touching verbatim Eric Schulte
2014-06-23 20:11 ` Nicolas Goaziou
2014-06-23 20:25 ` Eric Schulte
2014-06-23 21:01 ` Nicolas Goaziou
2014-06-23 21:46 ` Eric Schulte
2014-06-25 8:37 ` Bastien
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).