about tikz (new infos)

34 views
Skip to first unread message

HG

unread,
Dec 20, 2017, 4:13:28 AM12/20/17
to sage-support
Recently I couldn't use anymore tikz (circuitikz) in sagemath, I had to come back to a fresh xenial and look back to tikz.
In fact it does work well again, i think it's because python' s version. And the cherry on the cake : Just use
%install_ext http://raw.github.com/jrjohansson/ipython-circuitikz/master/circuitikz.py or like i did, get his git on your local home and change the address of the circuitikz.py to adjust to your path
(this is mine : %install_ext /home/pi/ipy/circuitikz.py) :

%%circuitikz filename=rlc dpi=150
\begin{tikzpicture}
\draw[step=0.5,very thin,black!20] (-1,-0.5) grid (6,2.5);
\path (0,0) coordinate (ref_gnd);
\draw
  (ref_gnd) to[american voltage source=\(V\)] ++(0,2)
            to[R=\(R_1\)] ++(3,0)
            to[L=\(L_1\)] ++(3,0)
            to[C=\(C_1\)] ++(0,-2)
  -- (ref_gnd);
\end{tikzpicture}


Girard Henri

unread,
Dec 20, 2017, 4:15:30 AM12/20/17
to sage-s...@googlegroups.com

Sorry I forgot to say I have done it with sage-8.1 from sage site

--
You received this message because you are subscribed to the Google Groups "sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sage-support...@googlegroups.com.
To post to this group, send email to sage-s...@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Dima Pasechnik

unread,
Dec 20, 2017, 10:08:03 AM12/20/17
to sage-support
Hi,
the TeX version might matter too.
I guess, you run TeXLive, what version?
Reply all
Reply to author
Forward
0 new messages