How to use curly quotes in monospaced block?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

How to use curly quotes in monospaced block?

Mark S
I have this block in asciidoctor:

----
myapp/myapp.rs      # executable
myapp/myapp_test.rs # tests
----

It correctly formats as monspaced and preserves the spaces so that the #'s line up.

However, I want the word "executable" to be in double curly quotes and can't figure out how do do it. Is it possible?
Reply | Threaded
Open this post in threaded view
|

Re: How to use curly quotes in monospaced block?

Alexander Schwartz
I see at least two possibilities to add (typographic) curly quotes:

  1. use unicode characters
  2. enable macros as described in AsciiDoc Writers's Guide: Inline pass macro and explicit substitutions
The two examples below will lead to the same output:

Unicode variant:

----
myapp/myapp.rs      # “executable”
myapp/myapp_test.rs # tests
----
Macro variant:
[subs=+macros]
----
myapp/myapp.rs      # pass:quotes["`executable`"]
myapp/myapp_test.rs # tests
----
Alexander Schwartz (alexander.schwartz@gmx.net)
https://www.ahus1.de
Reply | Threaded
Open this post in threaded view
|

Re: How to use curly quotes in monospaced block?

Mark S
Thank you. I tried both and in both cases asciidoctor-pdf produced a blank space where the quotes should be. I think this is due to the default fonts. I'll read the docs on theming to see if I can set fonts that have the curly quotes.

On Sun, 28 Jul 2019 at 11:44, ahus1 [via Asciidoctor :: Discussion] <[hidden email]> wrote:
I see at least two possibilities to add (typographic) curly quotes:

  1. use unicode characters
  2. enable macros as described in AsciiDoc Writers's Guide: Inline pass macro and explicit substitutions
The two examples below will lead to the same output:

Unicode variant:

----
myapp/myapp.rs      # “executable”
myapp/myapp_test.rs # tests
----
Macro variant:
[subs=+macros]
----
myapp/myapp.rs      # pass:quotes["`executable`"]
myapp/myapp_test.rs # tests
----



If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/How-to-use-curly-quotes-in-monospaced-block-tp7020p7021.html
To unsubscribe from How to use curly quotes in monospaced block?, click here.
NAML



--
Mark Summerfield, Qtrac Ltd., www.qtrac.eu