最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

How to have entire attention admonition on one page with sphinx's LaTeX output - Stack Overflow

programmeradmin0浏览0评论

I am using sphinx 8.1.3 with LaTeX as the output format. In my documents I am using the "attention" admonition feature of sphinx which shows a colorful block of text that directs the reader to pay attention to some important detail described in the block. Now some of my attention admonition blocks do not appear on a single page but instead are cut into two pieces, the first half being at the end of a page, where the pagebreak occurs and the second half on the start of the next page. So my attention admonition block has a pagebreak inbetween, which looks rather ugly to me. Is there anything I can do to prevent this pagebreak and have the attention admonition block be displayed in full on one page? Or is this just a fact of life?

Any help appreciated,

-- Stefan

发布评论

评论列表(0)

  1. 暂无评论