pdf
ファイルの各ページを同じ数の単一ファイルに変換する場合svg
、有効なコマンドは次のようになります。
dvisvgm --pdf --page=1- in.pdf out.svg
standalone.cls
しかし、これをのconvert
オプションに設定すると
\documentclass[crop,tikz,
convert={outext=.svg,
command=\unexpanded{dvisvgm --pdf --page=1- \infile}},
%multi=true, % ?
]{standalone}
私は
Class standalone Warning: Conversion unsuccessful!
(standalone) There might be something wrong with your
(standalone) conversation software or the file permissions!
ヒント:「all-pages-option」がなくても--page=1-
動作します。しかし、彼はページ 1 の svg ファイルを 1 つだけ生成します。
何をすればいいですか?
MWE を完了する:
% arara: pdflatex: { shell: yes }
\documentclass[crop,tikz,
convert={outext=.svg,
command=\unexpanded{dvisvgm --pdf --page=1- \infile}},
%multi=true,
]{standalone}
\begin{document}
\foreach \Letter in {A,2,3,...,10,J,Q,K}{%%
\begin{tikzpicture}% Example:
\node[align=center, draw, rounded corners=1pt, inner sep=1pt,
minimum width=0.5*6ex, minimum height=0.5*9ex,
]{\Letter \\ $\clubsuit$};
\end{tikzpicture}
}%%
\end{document}
答え1
arara に dvisvgm を呼び出させることをお勧めします。LaTeX コードとそれを処理するシェル コマンドが分離されるため、はるかにクリーンなように思えます。また、dvisvgm は通常、PDF ファイルではなく DVI を使用すると、より良い結果を生成します。
% arara: latex
% arara: dvisvgm: { options: [--page=1-] }
\documentclass[crop,tikz]{standalone}
\begin{document}
\foreach \Letter in {A,2,3,...,10,J,Q,K}{
\begin{tikzpicture}
\node[align=center, draw, rounded corners=1pt, inner sep=1pt,
minimum width=0.5*6ex, minimum height=0.5*9ex,
]{\Letter \\ $\clubsuit$};
\end{tikzpicture}
}
\end{document}