Difference between revisions of "LaTeX:Diagrams"
m (Reverted edits by Science man 88 (talk) to last revision by Mus sum) (Tag: Rollback) |
|||
Line 3: | Line 3: | ||
== Diagrams and Figures == | == Diagrams and Figures == | ||
It's best to rely on [http://artofproblemsolving.com/wiki/index.php/Asymptote_(Vector_Graphics_Language) Asymptote] for drawing diagrams and figures, as <math>\text{\LaTeX}</math> does not have the ability to output good diagrams for geometry and such. However, <math>\text{\LaTeX}</math> does work wonderfully well with Asymptote. | It's best to rely on [http://artofproblemsolving.com/wiki/index.php/Asymptote_(Vector_Graphics_Language) Asymptote] for drawing diagrams and figures, as <math>\text{\LaTeX}</math> does not have the ability to output good diagrams for geometry and such. However, <math>\text{\LaTeX}</math> does work wonderfully well with Asymptote. | ||
+ | |||
+ | ==Integer coordinates inside a cube of sidelength 6== | ||
+ | <asy> | ||
+ | usepackage("tikz"); | ||
+ | label("\begin{tikzpicture}[domain=0:6,x=5mm,y=5mm,z=2.5mm] | ||
+ | %\draw (0,0) grid (5,5); | ||
+ | \foreach \i in {0,...,6}{ | ||
+ | \foreach \z in {0,...,6}{ | ||
+ | \foreach \m in {0,...,6}{ | ||
+ | \node[red] at (\i ,(\m ,\z ) {\textbullet }; ); | ||
+ | \node[red] at (\m ,(\i ,\z ) {\textbullet }; ); | ||
+ | \node[red] at (\z , (\i ,\m ) {\textbullet }; ); | ||
+ | }; | ||
+ | }; | ||
+ | } | ||
+ | \draw (0,0)--(0,6); | ||
+ | \draw (0,0)--(6,0); | ||
+ | \draw plot (6,(0,\x);); | ||
+ | \draw plot (6,(6,\x);); | ||
+ | \draw plot (0,(6,\x);); | ||
+ | \draw (0,6)--(6,6); | ||
+ | \draw (6,0)--(6,6); | ||
+ | \end{tikzpicture}"); | ||
+ | </asy> |
Revision as of 11:03, 24 March 2020
LaTeX |
About - Getting Started - Diagrams - Symbols - Downloads - Basics - Math - Examples - Pictures - Layout - Commands - Packages - Help |
Diagrams and Figures
It's best to rely on Asymptote for drawing diagrams and figures, as does not have the ability to output good diagrams for geometry and such. However, does work wonderfully well with Asymptote.
Integer coordinates inside a cube of sidelength 6