Hi,

Please use double backslashes to escape curly braces  :samp:`\\{ {x} , {y} \\}`.

Thanks,
Takeshi KOMIYA

2020年11月14日(土) 20:35 bradley...@gmail.com <bradley.m.b...@gmail.com>:
>
> In the following documentation
> https://www.sphinx-doc.org/en/master/usage/restructuredtext/roles.html#role-samp
>
> It says:
> Changed in version 1.8: Allowed to escape curly braces with backslash
>
> I therefore expect the input
>    :samp:`\{ {x}, {y} \}'
> to have the first { in normal font, but in my tests it comes out in italic 
> font.
>
> How do I escape the { and } characters so that they display instead of 
> switching font in the :samp: role ?
>
> --
> You received this message because you are subscribed to the Google Groups 
> "sphinx-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to sphinx-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/sphinx-users/ba1df058-193d-489f-b89b-433ab8526f68n%40googlegroups.com.

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sphinx-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sphinx-users/CAFmkQAMQZfRFSynZSrAGYCAAFNDg25MbVNuVsxxar0hnTSFfbg%40mail.gmail.com.

Reply via email to