Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Underline in org-mode Literal Example

Tags:

emacs

org-mode

According to the explanation on Literal Example, literal examples should not be subjected to mark-up. But Is there any way to use any mark-up in literal example?

For example, consider the following literal example snippet.

 #+BEGIN_EXAMPLE
 Enter the city you're from: Chicago
 #+END_EXAMPLE

I'd like to put an underline at the word Chicago because I want to emphasize that the word Chicago is typed by user. How can I do that?

like image 532
Federico Magallanez Avatar asked Nov 14 '22 03:11

Federico Magallanez


1 Answers

If all you want is the example to be typeset in the example fashion, you can probably use emphasis markup, at least for the lines that require mark-up. That would be

=Enter the city you're from:= _Chicago_

I don't think what you request is at all possible, possibly because such blocks seem to be by design not subject to mark-up.

For language-specific mark-up, use source code blocks (#+begin_src), maybe you can get nicely marked-up blocks using org-mode code blocks (#+begin_src org) (though I didn't manage to get "what it looks like" to be exported, I guess that's what in-line org is for).

like image 169
Nikana Reklawyks Avatar answered Jan 05 '23 08:01

Nikana Reklawyks