Sphinx: Multiple (Nested) Roles

懵懂的女人 提交于 2020-01-16 17:05:00

问题


in my Sphinx docs I would like to create a glossary, potentially containing :math:, or other roles:

.. glossary::

    :math:`f(x)`
      Description 

Is there any way to reference this entry with a text that has the same style as the glossary entry?

:term:`f(x)` Works, but is rendered as a plain hyperlink.

I want a hyperlink with the original styling instead:

:term:`:math:`f(x)``        Does not work. 
:term:`:math:`f(x)` <f(x)>` Also doesnt.

Many thanks for the help.

来源:https://stackoverflow.com/questions/57569177/sphinx-multiple-nested-roles

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!