Outline Introduction A Quick Tour of TikZ Computations and Programming inside TikZ Getting your Graphics into MBX Tips and Tricks Resources Graphics in MathBook XML Thomas W. Judson Stephen F. Austin State University April 27, 2016 Thomas W. Judson Stephen F. Austin State University Graphics in MathBook XML
26
Embed
Graphics in MathBook XML - ctlsfasufaculty.sfasu.edu/judsontw/talks/AIM-April-2016.pdf · Thomas W. Judson Stephen F. Austin State University ... are useful for drawing arcs, etc
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
OutlineIntroduction
A Quick Tour of TikZComputations and Programming inside TikZ
Getting your Graphics into MBXTips and Tricks
Resources
Graphics in MathBook XML
Thomas W. JudsonStephen F. Austin State University
April 27, 2016
Thomas W. Judson Stephen F. Austin State University Graphics in MathBook XML
OutlineIntroduction
A Quick Tour of TikZComputations and Programming inside TikZ
Getting your Graphics into MBXTips and Tricks
Resources
Introduction
A Quick Tour of TikZ
Computations and Programming inside TikZ
Getting your Graphics into MBX
Tips and Tricks
Resources
Thomas W. Judson Stephen F. Austin State University Graphics in MathBook XML
OutlineIntroduction
A Quick Tour of TikZComputations and Programming inside TikZ
Getting your Graphics into MBXTips and Tricks
Resources
The LATEX picture environment
I In the beginning graphics was created with the LATEX pictureenvironment or imported from a third party graphics packagesuch as Adobe Illustrator.
I With the LATEX picture environment, graphics are part of theLATEX source.
I Third party programs produced EPS files that could beinserted into a LATEX document.
Thomas W. Judson Stephen F. Austin State University Graphics in MathBook XML
OutlineIntroduction
A Quick Tour of TikZComputations and Programming inside TikZ
Getting your Graphics into MBXTips and Tricks
Resources
Picture Environment Example
-reflection
horizontalaxis
-reflection
verticalaxis
-180◦
rotation
-identity
A
A
A
A
D
D
D
D
B
B
B
B
C
C
C
C
D
B
C
A
A
C
B
D
C
A
D
B
B
D
A
C
Thomas W. Judson Stephen F. Austin State University Graphics in MathBook XML
OutlineIntroduction
A Quick Tour of TikZComputations and Programming inside TikZ
Getting your Graphics into MBXTips and Tricks
Resources
The Code for the Picture Environment
\begin{picture }(20 ,20)
\thicklines
\multiput (1 ,1)(0 ,5){4}{\ framebox (5,3){ }}
\thinlines
\put(7, 2.5){\ vector (1 ,0){6}}
\put (8.1 ,3){\ scriptsize \it reflection}
\put (7.9 ,1.5){\ scriptsize \it horizontal}
\put (9 ,.5){\ scriptsize \it axis}
\put(7, 7.5){\ vector (1 ,0){6}}
\put (8 ,8){\ scriptsize \it reflection}
\put (8.25 ,6.5){\ scriptsize \it vertical}
...
\end{picture}
Thomas W. Judson Stephen F. Austin State University Graphics in MathBook XML
OutlineIntroduction
A Quick Tour of TikZComputations and Programming inside TikZ
Getting your Graphics into MBXTips and Tricks
Resources
Graphics Today
I Graphics formats include PDF, JPG, SVG, PNG, GIF, PS,EPS to name a few.
I TikZ and Asymptote can create graphics inside LATEX
I Sage to insert graphics in LATEX or MBX.
I Third party software packages such as Sage, xfig, Inkscape,Adobe Illustrator can be used to create a graphics file, whichcan be inserted into LATEX or MBX.
Thomas W. Judson Stephen F. Austin State University Graphics in MathBook XML
OutlineIntroduction
A Quick Tour of TikZComputations and Programming inside TikZ
Getting your Graphics into MBXTips and Tricks
Resources
TikZ
PGF/TikZ (orginally developed by Till Tantau) is a tandem of languages for producingvector graphics. PGF is a lower-level language, while TikZ is a set of higher-levelmacros that use PGF.
I The code \tikz \draw (0pt,0pt) -- (20pt,6pt); yields
and \tikz \fill[orange] (0,0) circle (1ex); provides inline graphics.
I The code yields and provides inline graphics.
I Use \begin{tikzpicture}...\end{tikzpicture} for larger pictures.
I Many software packages (Inkscape, GeoGebra, MATLAB, R) will exportgraphics to TikZ.
Thomas W. Judson Stephen F. Austin State University Graphics in MathBook XML
OutlineIntroduction
A Quick Tour of TikZComputations and Programming inside TikZ
Getting your Graphics into MBXTips and Tricks
Resources
A Double Spring-Mass System
x1 = 0 x2 = 0
m1 m1
wall wall
x1 x2
Thomas W. Judson Stephen F. Austin State University Graphics in MathBook XML
OutlineIntroduction
A Quick Tour of TikZComputations and Programming inside TikZ
<caption >Nullclines for the case <m>\beta = 2</m></caption >
</figure >
Thomas W. Judson Stephen F. Austin State University Graphics in MathBook XML
OutlineIntroduction
A Quick Tour of TikZComputations and Programming inside TikZ
Getting your Graphics into MBXTips and Tricks
Resources
will produce the following graphic in the appropriate form (PDF for LATEX and SVG forHTML).
0 0.20.40.60.8 1 1.21.4
x(t)
00.20.40.60.8
11.21.4
y(t)
Thomas W. Judson Stephen F. Austin State University Graphics in MathBook XML
OutlineIntroduction
A Quick Tour of TikZComputations and Programming inside TikZ
Getting your Graphics into MBXTips and Tricks
Resources
Tips, Tricks, and Cautions
I Come up with an intelligent labelling scheme.
I To prevent conflicts with MBX reserved characters, use
<![CDATA[\ begin{tikzpicture}
...
\end{tikzpicture }]]>
I Dont change units without a reason, use the scale and transform
shape options of tikzpicture
I Be careful with XeLaTeX. It does not always work well with TikZ.
I Try out your plots in SageMathCloud first.
Thomas W. Judson Stephen F. Austin State University Graphics in MathBook XML
OutlineIntroduction
A Quick Tour of TikZComputations and Programming inside TikZ
Getting your Graphics into MBXTips and Tricks
Resources
Resources
I Lots of examples at http://www.texample.net/tikz/
I Many of these examples came fromhttp://altermundus.fr/pages/downloads/remember beamer.pdf,http://www.statistiker-wg.de/pgf/tutorials.htm,http://www.tug.org/pracjourn/2007-1/mertz/,http://tex.stackexchange.com,andhttp://www.math.uni-leipzig.de/~hellmund/LaTeX/pgf-tut.pdf
I Till Tantau’s PGF/TikZ manualhttp://mirror.unl.edu/ctan/graphics/pgf/base/doc/pgfmanual.pdf
Thomas W. Judson Stephen F. Austin State University Graphics in MathBook XML
OutlineIntroduction
A Quick Tour of TikZComputations and Programming inside TikZ
Getting your Graphics into MBXTips and Tricks
Resources
Thanks for Listening
Thomas W. Judson, Associate ProfessorDepartment of Mathematics and StatisticsStephen F. Austin State University