내 비머 에서 사용할 별도의 프레임을 생성하고 싶은데 \animategraphics
어떻게 프레임으로 변환할 수 있나요?.. 도움을 주셔서 감사합니다.
\documentclass[border=30pt, tikz]{standalone}
\usepackage{circuitikz}
\newcommand{\stepconductor}{.1}
\newcommand{\stepresistor}{.025}
\newcommand{\currentradius}{3pt}
\newenvironment{mycircuit}{%
\begin{circuitikz}
\draw (0,0) coordinate (V-)
to[V,v=$U_q$] ++(0, 2) coordinate (V+)
to[short] ++(2, 0) coordinate (R1+)
to[R=$R_1$] ++(0,-2) coordinate (R1-)
to[short] (V-);
\draw (R1+)
to[short] ++(2, 0) coordinate (R2+)
to[R=$R_2$] ++(0,-2) coordinate (R2-)
to[short] (R1-);
% ensure that tikzpicture has always the same size (independent of the position of the current)
\path (V+) -- ++(0, +\currentradius);
\path (V-) -- ++(0, -\currentradius);
}{%
\end{circuitikz}%
}
\newcommand{\current}[2]{%
\path (#1) -- node[pos=\p, circle, fill=red, minimum size=2*\currentradius, inner sep=0pt]{} (#2);
}
\begin{document}
\foreach \p in {0, \stepconductor, ..., 1}{
\begin{mycircuit}
\current{V-}{V+}
\end{mycircuit}
}
\foreach \p in {0, \stepconductor, ..., 1}{
\begin{mycircuit}
\current{V+}{R1+}
\end{mycircuit}
}
\foreach \p in {0, \stepresistor, ..., 1}{
\begin{mycircuit}
\current{R1+}{R1-}
\end{mycircuit}
}
\foreach \p in {0, \stepconductor, ..., 1}{
\begin{mycircuit}
\current{R1-}{V-}
\end{mycircuit}
}
\end{document}
답변1
추가하다
\standaloneenv{mycircuit}
서문 끝, 직전에 \begin{document}
. 그러면 다른 문서에서 mycircuit
사용할 수 있는 여러 페이지로 구성된 PDF 당 하나의(자른) 페이지가 생성됩니다 .\animategraphics