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