[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] [RFC] Creole-style / Support for **emphasis**__within__**a word*
From: |
Juan Manuel Macías |
Subject: |
Re: [O] [RFC] Creole-style / Support for **emphasis**__within__**a word** |
Date: |
Mon, 24 Jan 2022 12:09:46 +0000 |
Hi Vincent,
Vincent Belaïche writes:
> Hello,
>
> Sorry to dig out this almost 8 year old discussion, but after looking
> into the git HEAD Org Mode manual (v9.5 or so) (info "(org) Emphasis and
> Monospace") node, and after looking into the mail archive I could not
> find any answer to this question: how to switch style within a word.
>
> I would like to put something like this in an OrgMode document:
>
> ~--some-cli-option=~/some cli argument/
>
> where the intent is that « --some-cli-option= » would be monospaced, and
> « some cli argument » would be italicized, and as you know this does not
> work this way.
>
> Vincent.
It seems that this topic is already a classic :-) The supported solution
for intra-word emphases is to introduce a zero width space (U+200B), for
example:
~--some-cli-option=~[zero-width space]/some cli argument/
I don't really like this solution, but at least it works. If you export
to LaTeX, you may want to remove the space using a filter, as in some
(few) cases it can alter the LaTeX result.
The other realistic possibility is to use macros:
{{{mono(--some-cli-option=)}}}{{{emph(some cli argument)}}}
That is, more or less, the state of art. By the nature of its syntax,
emphasis between words is not possible in Org.
Best regards,
Juan Manuel
- RE: [O] [RFC] Creole-style / Support for **emphasis**__within__**a word**, Vincent Belaïche, 2022/01/24
- Re: [RFC] Creole-style / Support for **emphasis**__within__**a word**, Nicolas Goaziou, 2022/01/24
- Re: [O] [RFC] Creole-style / Support for **emphasis**__within__**a word**,
Juan Manuel Macías <=
- RE: [O] [RFC] Creole-style / Support for **emphasis**__within__**a word**, Vincent Belaïche, 2022/01/24
- Re: [RFC] Creole-style / Support for **emphasis**__within__**a word**, Nicolas Goaziou, 2022/01/25
- RE: [RFC] Creole-style / Support for **emphasis**__within__**a word**, Vincent Belaïche, 2022/01/25
- Re: [RFC] Creole-style / Support for **emphasis**__within__**a word**, Juan Manuel Macías, 2022/01/25
- RE: [RFC] Creole-style / Support for **emphasis**__within__**a word**, Vincent Belaïche, 2022/01/25
- Re: [RFC] Creole-style / Support for **emphasis**__within__**a word**, Nicolas Goaziou, 2022/01/25
- RE: [RFC] Creole-style / Support for **emphasis**__within__**a word**, Vincent Belaïche, 2022/01/25
- Re: [RFC] Creole-style / Support for **emphasis**__within__**a word**, Max Nikulin, 2022/01/25