10
9

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Sphinx(latex→PDF)で余計な空白ページを消す方法

Last updated at Posted at 2014-06-21

LaTeXのjsbookクラスでは、各章のタイトルが奇数ページから始まるように空白ページを自動的に入れてくれる。

製本前提の印刷ならこれで構わないが、主にPDFで見る人向けの場合は「何、このやたら多い空白ページ?」と言われてしまう。

そういう時は、latex_elementsに下記を追加する。

conf.py
...
latex_elements = {
...
'extraclassoptions': 'openany',
...
}

もっとお手軽に、下記のようにすれば、本のような装丁ではなくレポート形式の印刷で出てくれますので、こちらのほうがいいかも。

conf.py
latex_elements = {
...
'extraclassoptions': 'report',
...
}
10
9
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
10
9

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?