当我想在Sphinx中显示一些带有固定宽度字体的字体时,我将其放置在两个倒tick之间(“代码示例的内联标记”):
The class ``Test1`` is pure virtual.
不幸的是,该字体的大小比普通文本的字体小得多:
搜索增加此字体的方法,我发现帖子
我如何增加sphinx /重组文本中的固定宽度字体大小?,
但我认为它已经过时了(2014年),因为给出的解决方案似乎无法正常工作 - 例如,我的安装中不存在文件 default.css_t
。
我还尝试修改/build/html/_static/basic.css ,但是在执行 构建HTML
之后,我的更改消失了,一切看起来都像以前一样。
如何更改当前版本的sphinx(4.4.0)中代码样本的字体大小?
When i want to display some with fixed-width font in Sphinx, i place it between two inverted ticks ("inline markup for code samples"):
The class ``Test1`` is pure virtual.
Unfortunately, the size of this font is much smaller than the font for normal text:

Searching for a method to increase this font i found the post
How do I increase the fixed width font size in Sphinx / reStructured Text? ,
but i think it is out of date (2014), because the solutions given there seem not to work - for instance, the file default.css_t
does not exist in my installation.
I also tried to modify /build/html/_static/basic.css
, but after doing build html
my changes have vanished and everything looked like it did before.
How can i change the font size of code samples in the current version of sphinx (4.4.0)?
发布评论