如何让双折叠产生的sphinx PDF文本类似于HTML的输出(带有框架的红色文本)?

发布于 2025-02-02 03:13:01 字数 206 浏览 1 评论 0原文

在我的重组文本文档中,使用双折叠的文本周围的双折,这会导致HTML输出以红色显示文本,并带有周围的框架。我想让我的latexpdf输出看起来相同。 PDF以黑色单声字体显示文本,没有框架。至少,我希望文字以红色为红色。

我的.tx文件显示它使用\ sphinxcode {\ sphinxupquote {我的text}}。我需要以某种方式覆盖sphinxupquote还是其他方法?

Using double-backticks around a block of text in my restructuredtext sphinx document causes the HTML output to display the text in red with a frame around it. I would like to have my latexpdf output look the same. The pdf shows the text in a mono font in black and with no frame. At a minimum, I would like the text to be in a red color.

My .tx file shows that it uses \sphinxcode{\sphinxupquote{my text}}. Do I need to somehow override sphinxupquote or is there another way?

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

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

发布评论

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