diff options
Diffstat (limited to 'Master/texmf-dist/doc')
-rw-r--r-- | Master/texmf-dist/doc/context/third/circuitikz/circuitikz-context.pdf | bin | 17743 -> 17743 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/generic/circuitikz/CHANGELOG.md | 7 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/circuitikz/changelog.tex | 13 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/circuitikz/circuitikzmanual.pdf | bin | 1083975 -> 1093750 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/circuitikz/circuitikzmanual.tex | 27 |
5 files changed, 47 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/context/third/circuitikz/circuitikz-context.pdf b/Master/texmf-dist/doc/context/third/circuitikz/circuitikz-context.pdf Binary files differindex 5fe1659424d..411929d4116 100644 --- a/Master/texmf-dist/doc/context/third/circuitikz/circuitikz-context.pdf +++ b/Master/texmf-dist/doc/context/third/circuitikz/circuitikz-context.pdf diff --git a/Master/texmf-dist/doc/generic/circuitikz/CHANGELOG.md b/Master/texmf-dist/doc/generic/circuitikz/CHANGELOG.md index 14ce065fbc4..5999837873a 100644 --- a/Master/texmf-dist/doc/generic/circuitikz/CHANGELOG.md +++ b/Master/texmf-dist/doc/generic/circuitikz/CHANGELOG.md @@ -1,6 +1,13 @@ <!--- CircuiTikz - Changelog ---> The major changes among the different circuitikz versions are listed here. See <https://github.com/circuitikz/circuitikz/commits> for a full list of changes. +* Version 1.2.5 (2020-10-14) + + Mainly a bugfix release fir `raised` voltage style. + + - added macro to access labels and annotations anchors and direction + - fixed a bug in "raised" voltages' positions with `invert` and/or `mirror` + * Version 1.2.4 (2020-10-04) - several documentation enhancment diff --git a/Master/texmf-dist/doc/latex/circuitikz/changelog.tex b/Master/texmf-dist/doc/latex/circuitikz/changelog.tex index 0a7467452bb..a414bf258b9 100644 --- a/Master/texmf-dist/doc/latex/circuitikz/changelog.tex +++ b/Master/texmf-dist/doc/latex/circuitikz/changelog.tex @@ -5,6 +5,19 @@ full list of changes. \begin{itemize} \item + Version 1.2.5 (2020-10-14) + + Mainly a bugfix release fir \texttt{raised} voltage style. + + \begin{itemize} + \tightlist + \item + added macro to access labels and annotations anchors and direction + \item + fixed a bug in ``raised'' voltages' positions with \texttt{invert} + and/or \texttt{mirror} + \end{itemize} +\item Version 1.2.4 (2020-10-04) \begin{itemize} diff --git a/Master/texmf-dist/doc/latex/circuitikz/circuitikzmanual.pdf b/Master/texmf-dist/doc/latex/circuitikz/circuitikzmanual.pdf Binary files differindex e1ccb1f8214..bf155cae308 100644 --- a/Master/texmf-dist/doc/latex/circuitikz/circuitikzmanual.pdf +++ b/Master/texmf-dist/doc/latex/circuitikz/circuitikzmanual.pdf diff --git a/Master/texmf-dist/doc/latex/circuitikz/circuitikzmanual.tex b/Master/texmf-dist/doc/latex/circuitikz/circuitikzmanual.tex index b952bdc2919..bdb000b19a8 100644 --- a/Master/texmf-dist/doc/latex/circuitikz/circuitikzmanual.tex +++ b/Master/texmf-dist/doc/latex/circuitikz/circuitikzmanual.tex @@ -6412,6 +6412,33 @@ Since 0.9.5, you can access all the labels nodes\footnote{The access to \texttt{ \end{circuitikz} \end{LTXexample} + +If you want to have more access to the label positioning algorithm, since \texttt{1.2.5} you can access the label rotation using with the command \texttt{\textbackslash ctikzgetrotation\{\emph{nodename}\}} (where node name is for example \texttt{L1label} or \texttt{L2annotation}), and the anchor used for positioning the node as \texttt{\textbackslash ctikzgetanchor\{\emph{component label}\}\{\emph{type}\}}, where \emph{component label} is, for example, \texttt{L1} and type is either \texttt{label} or \texttt{annotation} (notice that the syntax is slightly different, for implementation reasons). +Those values are available only if the dipole declares a \texttt{l} or \texttt{a} keys; if you want them without any label you need to declare a blank one (like for example \texttt{l=\textasciitilde}). +The following example gives an idea of the values of those macro for the three types of label positioning strategies. + +\begin{LTXexample}[varwidth=true, pos=t, basicstyle=\small\ttfamily] +\newcommand{\marklabann}[3][45]{% [angle] {node label} {type: label or annotation} +\node[circle, draw, blue, inner sep=1pt, +pin={[draw, blue, font=\tiny, align=left]#1:{#2 \\ dir: \ctikzgetdirection{#2#3} \\ + anchor: \ctikzgetanchor{#2}{#3}}}] at (#2#3.\ctikzgetanchor{#2}{#3}) {};} +\begin{tikzpicture}[scale=0.95, transform shape] +\foreach \style/\xdelta in {straight/0, smart/5, rotate/10} { +\begin{scope}[xshift=\xdelta cm] + \ctikzset{label/align = \style} + \draw (0,0) node[above right, rotate=45]{\style} + to[L, o-, l=$L_{ab}$, v, name=L1, a=a] ++(3,3) + to[ceV, -*, v, name=V1, l2_=L1 and L2, a^=A] ++(0,-3); + \marklabann[135]{L1}{label} + \marklabann[-90]{L1}{annotation} + \marklabann[90]{V1}{label} + \marklabann[-90]{V1}{annotation} +\end{scope}} +\end{tikzpicture} +\end{LTXexample} + + + \subsection{Advanced voltages, currents and flows}\label{sec:vif-anchors} Since version \texttt{1.2.1}, it is possible to access the anchors of the ``ornaments'' --- voltage, current and flows, together with some additional information that makes it possible to personalize them. |