esaping { and } in :samp: role

25 views
Skip to first unread message

bradley...@gmail.com

unread,
Nov 14, 2020, 6:35:53 AM11/14/20
to sphinx-users
In the following documentation

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 ?

bradley...@gmail.com

unread,
Nov 14, 2020, 6:40:56 AM11/14/20
to sphinx-users
Sorry for the mistake in the example code, the input should end in a backquote; i.e.,
   :samp:`\{ {x} , {y} \}`

Komiya Takeshi

unread,
Nov 14, 2020, 6:53:34 AM11/14/20
to sphinx...@googlegroups.com
Hi,

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

Thanks,
Takeshi KOMIYA

2020年11月14日(土) 20:35 bradley...@gmail.com <bradley...@gmail.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...@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.

منصةشليله blog

unread,
Nov 14, 2020, 7:00:44 AM11/14/20
to sphinx...@googlegroups.com
منصة-شليله 
Thank you so much  .  Please help. I do not speak English and have not been able to translate often

Daniel Scott

unread,
Nov 25, 2020, 10:27:23 PM11/25/20
to sphinx...@googlegroups.com
--
Reply all
Reply to author
Forward
0 new messages