5,337
edits
No edit summary |
No edit summary |
||
Line 65: | Line 65: | ||
\end{minipage} | \end{minipage} | ||
</pre> | </pre> | ||
===Programming=== | |||
Latex is a turing complete language.<br> | |||
You can use if statements and for loops in latex.<br> | |||
==Useful Commands== | ==Useful Commands== | ||
Line 72: | Line 76: | ||
\newcommand{\degree}{\ensuremath{^{\circ}} } | \newcommand{\degree}{\ensuremath{^{\circ}} } | ||
\newcommand{\etal}{{\em et al. }} | \newcommand{\etal}{{\em et al. }} | ||
</syntaxhighlight> | |||
==Tikz== | |||
Tikz is used to draw graphs and other shapes | |||
===Drawing over images=== | |||
<syntaxhighlight lang="latex"> | |||
\begin{tikzpicture} | |||
\node[anchor=south west,inner sep=0] (image) at (0,0) { | |||
\includegraphics[width=.9\linewidth]{my_image.png} | |||
}; | |||
\begin{scope}[x={(image.south east)},y={(image.north west)}] | |||
\draw[black,ultra thick,rounded corners] (0.0,0.1) rectangle (0.3,0.5); | |||
\draw[red,ultra thick,rounded corners] (0.5,0.1) rectangle (0.8,0.5); | |||
% \draw[help lines,xstep=.1,ystep=.1] (0,0) grid (1,1); | |||
% \foreach \x in {0,1,...,9} { \node [anchor=north] at (\x/10,0) {0.\x}; } | |||
% \foreach \y in {0,1,...,9} { \node [anchor=east] at (0,\y/10) {0.\y}; } | |||
\end{scope} | |||
\end{tikzpicture} | |||
</syntaxhighlight> | </syntaxhighlight> | ||
==Resources== | ==Resources== | ||
* [http://detexify.kirelabs.org/classify.html Detexify LaTeX handwritten symbol recognition] | * [http://detexify.kirelabs.org/classify.html Detexify LaTeX handwritten symbol recognition] |