如何增加狮身人面像中代码样本的字体尺寸?

发布于 2025-01-26 08:51:12 字数 808 浏览 0 评论 0 原文

当我想在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:

The html output of the inline code sample

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)?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文