LoginSignup
2
2

More than 5 years have passed since last update.

sphinx single html で 表の途中の改ページを抑制する

Last updated at Posted at 2016-09-07

index.rst に以下の追記をします

.. raw:: html

  <style type="text/css">
  <!--
  table{page-break-inside:avoid;}
  -->
  </style>

sphinx でつくったドキュメントをまるっと印刷したいとき、make singlehtml してブラウザで開いて印刷したりします。しかしそれだと表の途中で改ページが発生して見難くなります。

上記の記述をすると、表の途中で改ページされなくなります。

conf.py とかテーマのオプションでこの設定あってもいいのでは? と思いますが、探した限りなかったです。

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2