
pdf
-file의 각 페이지를 동일한 수의 단일 -files로 변환하려는 경우 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!
힌트:'모든 페이지 옵션'이 없으면 --page=1-
작동합니다.하지만 그는 1페이지의 단 하나의 svg 파일만 생성합니다.
어떻게 해야 하나요?
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}