2
2

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.

[ReVIEW Tips] EPUBのCSSを指定する

Last updated at Posted at 2013-09-15

ReVIEWでEPUBを出力するにはreview-epubmakerコマンドを使います。

$ review-epubmaker 【設定用YAMLファイル】

EPUBを作る際に使用するCSSファイルですが、現状は歴史的経緯によるのか、ReVIEWの文書用ディレクトリの直下に置いておくことになっています。

CSSのファイル名は、設定用YAMLファイルのstylesheetプロパティで指定します。

stylesheet: style.css

さらに、設定用YAMLファイルのparamsプロパティでも、コンバータに渡す用の指定を追加します。

params: --stylesheet=style.css

これで、style.cssがEPUBの中の各HTMLで読み込まれるようになります。

(なんか重複してて美しくないですね……。ちょっと仕様を検討します。)

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?