ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* adjusting tikz pictures
@ 2019-04-24 10:51 Gour
  2019-04-24 16:49 ` Aditya Mahajan
  2019-04-25 13:29 ` Mojca Miklavec
  0 siblings, 2 replies; 10+ messages in thread
From: Gour @ 2019-04-24 10:51 UTC (permalink / raw)
  To: ntg-context

Hello,

I believe that using GeoGebra for drawing, exporting to TikZ is the most
approachable method for me to be able to create mathematic-related
material like exams for the children in the primary school, but need some
info how to adjust GeoGebra's TikZ output (suitable for LaTeX) for
ConTeXt?

The link on the wiki's page (https://wiki.contextgarden.net/TikZ) fior the
manual is dead..


Here is the simple example:

\documentclass[10pt]{article}
\usepackage{pgf,tikz,pgfplots}
\pgfplotsset{compat=1.15}
\usepackage{mathrsfs}
\usetikzlibrary{arrows}
\pagestyle{empty}
\begin{document}
\definecolor{zzttqq}{rgb}{0.6,0.2,0}
\definecolor{ududff}{rgb}{0.30196078431372547,0.30196078431372547,1}
\begin{tikzpicture}[line cap=round,line join=round,>=triangle 45,x=1cm,y=1cm]
\begin{axis}[
x=1cm,y=1cm,
axis lines=middle,
ymajorgrids=true,
xmajorgrids=true,
xmin=-12.679999999999998,
xmax=12.679999999999998,
ymin=-13.470000000000002,
ymax=8.91,
xtick={-12,-11,...,12},
ytick={-13,-12,...,8},]
\clip(-12.68,-13.47) rectangle (12.68,8.91);
\fill[line width=2pt,color=zzttqq,fill=zzttqq,fill opacity=0.10000000149011612] (-7.7,2.75) -- (0.88,2.57) -- (-3.04,-3.37) -- cycle;
\draw [line width=2pt,color=zzttqq] (-7.7,2.75)-- (0.88,2.57);
\draw [line width=2pt,color=zzttqq] (0.88,2.57)-- (-3.04,-3.37);
\draw [line width=2pt,color=zzttqq] (-3.04,-3.37)-- (-7.7,2.75);
\draw [line width=2pt,domain=-12.68:12.68] plot(\x,{(--25.3932-4.84*\x)/0.04});
\draw [line width=2pt,domain=-12.68:12.68] plot(\x,{(-13.78-3.92*\x)/5.94});
\draw [line width=2pt,domain=-12.68:12.68] plot(\x,{(--29.7366--8.58*\x)/0.18});
\begin{scriptsize}
\draw [fill=ududff] (-7.7,2.75) circle (2.5pt);
\draw[color=ududff] (-7.54,3.18) node {$A$};
\draw [fill=ududff] (0.88,2.57) circle (2.5pt);
\draw[color=ududff] (1.04,3) node {$B$};
\draw [fill=ududff] (-3.04,-3.37) circle (2.5pt);
\draw[color=ududff] (-2.88,-2.94) node {$C$};
\draw[color=zzttqq] (-3.34,2.58) node {$c$};
\draw[color=zzttqq] (-1.28,0.02) node {$a$};
\draw[color=zzttqq] (-5.04,0.12) node {$b$};
\draw [fill=ududff] (5.2,5.63) circle (2.5pt);
\draw[color=ududff] (5.36,6.06) node {$D$};
\draw [fill=ududff] (5.24,0.79) circle (2.5pt);
\draw[color=ududff] (5.4,1.22) node {$E$};
\draw[color=black] (4.92,8.82) node {$f$};
\draw [fill=ududff] (-2,-1) circle (2.5pt);
\draw[color=ududff] (-1.84,-0.56) node {$F$};
\draw[color=black] (-12.5,5.84) node {$g$};
\draw[color=black] (-3.04,8.82) node {$h$};
\end{scriptsize}
\end{axis}
\end{tikzpicture}
\end{document}

How would such example be adjusted to be used with ConTeXt?


Sincerely,
Gour


-- 
As the embodied soul continuously passes, in this body,
from boyhood to youth to old age, the soul similarly passes
into another body at death. A sober person is not bewildered
by such a change.


___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2019-04-26  9:11 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-24 10:51 adjusting tikz pictures Gour
2019-04-24 16:49 ` Aditya Mahajan
2019-04-25  9:18   ` Gour
2019-04-25 13:29 ` Mojca Miklavec
2019-04-25 14:23   ` Hans Hagen
2019-04-25 14:31     ` Mojca Miklavec
2019-04-25 14:46       ` Hans Hagen
2019-04-25 21:44   ` Henri Menke
2019-04-26  7:29     ` GeoGebrra support (was Re: adjusting tikz pictures) Gour
2019-04-26  9:11       ` Arthur Reutenauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).