Skip to content

Commit

Permalink
Improve code, add docs links
Browse files Browse the repository at this point in the history
  • Loading branch information
aknierim committed Oct 1, 2024
1 parent 30aa628 commit 88caf89
Showing 1 changed file with 20 additions and 7 deletions.
27 changes: 20 additions & 7 deletions latex/content/tikz.tex
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,11 @@ \section{Zeichnen mit TikZ}
\end{CodeExample}
\end{frame}

\begin{frame}[fragile]{Tikz-Feynman}
\begin{frame}[fragile]{%
Tikz-Feynman
\hfill
\doc{http://mirrors.ctan.org/graphics/pgf/contrib/tikz-feynman/tikz-feynman.pdf}{tikz-feynman}
}
\begin{Packages}
\mintinline{latex}+\usepackage{tikz-feynman}+
\end{Packages}
Expand Down Expand Up @@ -127,28 +131,37 @@ \section{Zeichnen mit TikZ}
\end{CodeExample}
\end{frame}

\begin{frame}[fragile]{CircuiTikZ}
\begin{frame}[fragile]{%
CircuiTi\textit{k}Z
\hfill
\doc{http://mirrors.ctan.org/graphics/pgf/contrib/circuitikz/doc/circuitikzmanual.pdf}{circuitikz}
}
\begin{Packages}
\mintinline{latex}+\usepackage[siunitx]{circuitikz}+
\end{Packages}
\begin{CodeExample}{0.65}[Einfacher Schaltkreis]
\begin{minted}{latex}
\begin{circuitikz}
\draw (0,0) -- (0, 1.3)
to[open, o-o, l=$U$] (0, 1.8)
-- (0,3)
-- (2,3)
to[R] (2,0) -- (0,0);
to[R] (2,0)
-- (0,0);
\end{circuitikz}
\end{minted}
\CodeResult
\begin{circuitikz}
\draw (0,0) -- (0, 1.3)
to[open, o-o, l=$U$] (0, 1.8)
-- (0,3) -- (2,3)
to[R=$R$] (2,0) -- (0,0);
to[R=$R$] (2,0)
-- (0,0);
\end{circuitikz}
\end{CodeExample}
\end{frame}

\begin{frame}[fragile]{CircuiTikZ}
\begin{frame}[fragile]{CircuiTi\textit{k}Z}
\begin{CodeExample}{0.65}[Komplexerer Schwingkreis]
\begin{minted}{latex}
\begin{circuitikz}
Expand Down Expand Up @@ -177,8 +190,8 @@ \section{Zeichnen mit TikZ}
\draw (0, 1.5) -- (2, 1.5)
to[C=\qty{6.20}{\micro\farad}] (3, 1.5)
-- (3.35, 1.5) node[right, cute spdt up] (S2) {};
\draw (4, 3) -- (S2.out 1);
\draw (S2.out 2) -- (4, 0)
\draw (4, 3) -- (S2.out 1) node[right] {$a$};
\draw (S2.out 2) node[right] {$b$} -- (4, 0)
-- (3, 0)
to[L=\qty{54.0}{\milli\henry}] (2, 0)
-- (0,0);
Expand Down

0 comments on commit 88caf89

Please sign in to comment.