Skip to content

Commit

Permalink
Merge pull request #1748 from kmuto/doc-svg
Browse files Browse the repository at this point in the history
fix instruction to build svg math
  • Loading branch information
kmuto authored Sep 30, 2021
2 parents b91399f + a342173 commit 0be92b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion doc/format.ja.md
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,7 @@ imgmath_options:
math_format: imgmath
imgmath_options:
format: svg
pdfcrop_pixelize_cmd: "pdftocairo -svg -r 90 -f %p -l %p -singlefile %i %o"
pdfcrop_pixelize_cmd: "pdftocairo -%t -r 90 -f %p -l %p %i %o"
```

デフォルトでは、pdfcrop_pixelize_cmd に指定するコマンドは、1ページあたり1数式からなる複数ページの PDF のファイル名を `%i` プレースホルダで受け取り、`%p` プレースホルダのページ数に基づいて `%o`(拡張子あり)または `%O`(拡張子なし)の画像ファイルに書き出す、という仕組みになっています。
Expand Down
2 changes: 1 addition & 1 deletion doc/format.md
Original file line number Diff line number Diff line change
Expand Up @@ -748,7 +748,7 @@ For example, to make SVG:
math_format: imgmath
imgmath_options:
format: svg
pdfcrop_pixelize_cmd: "pdftocairo -svg -r 90 -f %p -l %p -singlefile %i %o"
pdfcrop_pixelize_cmd: "pdftocairo -%t -r 90 -f %p -l %p %i %o"
```

By default, the command specified in `pdfcrop_pixelize_cmd` takes the filename of multi-page PDF consisting of one formula per page.
Expand Down

0 comments on commit 0be92b1

Please sign in to comment.