Skip to content

Commit

Permalink
Merge pull request #939 from kmuto/supportimage
Browse files Browse the repository at this point in the history
画像の拡張子探索順を文書化
  • Loading branch information
kmuto authored Feb 11, 2018
2 parents 2ceeb19 + ebf2e15 commit 2e202b4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions doc/format.ja.md
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,12 @@ V1 --> V6 --|
* `<id>` は //image[] の最初に入れた「〜」のことです(つまり、ID に日本語や空白交じりの文字を使ってしまうと、後で画像ファイル名の名前付けに苦労することになります!)。
* `<ext>` は Re:VIEW が自動で判別する拡張子です。ビルダによってサポートおよび優先する拡張子は異なります。

各ビルダでは、以下の拡張子から最初に発見した画像ファイルが使われます。

* HTMLBuilder (EPUBMaker、WEBMaker)、MARKDOWNBuilder: .png、.jpg、.jpeg、.gif、.svg
* LATEXBuilder (PDFMaker): .ai、.eps、.pdf、.tif、.tiff、.png、.bmp、.jpg、.jpeg、.gif
* それ以外のビルダ: .ai、.psd、.eps、.pdf、.tif、.tiff、.png、.bmp、.jpg、.jpeg、.gif、.svg

### インラインの画像挿入

段落途中などに画像を貼り込むには、インライン命令の `@<icon>{識別子}` を使います。ファイルの探索ルールは同じです。
Expand Down
6 changes: 6 additions & 0 deletions doc/format.md
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,12 @@ The order of finding image is as follows. The first matched one is used.
* ``<id>`` is the ID of the first argument of `//image`. You should use only printable ASCII characters as ID.
* ``<ext>`` is file extensions of Re:VIEW. They are different by the builder you use.

For each builder, image files are searched in order of the following extensions, and the first hit file is adopted.

* HTMLBuilder (EPUBMaker, WEBMaker), MARKDOWNBuilder: .png, .jpg, .jpeg, .gif, .svg
* LATEXBuilder (PDFMaker): .ai, .eps, .pdf, .tif, .tiff, .png, .bmp, .jpg, .jpeg, .gif
* Other builders: .ai, .psd, .eps, .pdf, .tif, .tiff, .png, .bmp, .jpg, .jpeg, .gif, .svg

### Inline Images

When you want to use images in paragraph, you can use the inline command `@<icon>{ID}`. The order of finding images are same as `//image`.
Expand Down

0 comments on commit 2e202b4

Please sign in to comment.