tikz vs circuitikz

127 views
Skip to first unread message

Henri Girard

unread,
Jul 13, 2018, 6:20:45 AM7/13/18
to PreTeXt support
Hi,
I am new  and i would like to know if it's possible to use tikz in sagemath, I can use circuitikz without (apparently) any problem.
I am doing a spring mass model and circuitikz can't draw a spring \tikzset{ressort/.style={thick,gray,smooth}} it's only a  line ?
Any help
Regards
Henri

Thomas Judson

unread,
Jul 13, 2018, 8:34:45 AM7/13/18
to pretext...@googlegroups.com
Here is an example of a spring-mass model in tikz and PreTeXt.  See http://faculty.sfasu.edu/judsontw/ode/html/firstlook01.html for the implementation.

Tom Judson

        <figure xml:id="figure-firstlook01-spring-mass">
            <image width="60%" xml:id="firstlook01-spring-mass">
                <latex-image>
                    <xi:include href="tikz/firstlook01-spring-mass.tex" parse="text"/>
                </latex-image>
            </image>
            <caption>A spring-mass system</caption>
        </figure>

firstlook01-spring-mass.tex

Henri Girard

unread,
Jul 13, 2018, 9:24:12 AM7/13/18
to PreTeXt support
Here is what I would like exactly :
But instead import circuitikz
I would directly like to get it from import tikz ?
is there somewhere a tikz.py which can be imported ?
In fact I can't get \ressort/.style working I don't know what it means ?
Otherwise all works with circuitikz but I guess I will meet other problems of this kind if I don't understand how it works I am investigating in tikz to see how it works.
Anyway thank you for your help

Henri Girard

unread,
Jul 13, 2018, 12:22:10 PM7/13/18
to PreTeXt support
with sagemath 82/8.3
I import it  import tikzmagic  and reload
%reload_ext tikzmagic

Le vendredi 13 juillet 2018 12:20:45 UTC+2, Henri Girard a écrit :

Rob Beezer

unread,
Jul 13, 2018, 3:50:34 PM7/13/18
to pretext...@googlegroups.com
Off-list, this has been determined to have been sent to the wrong list.
Reply all
Reply to author
Forward
0 new messages