Latex: Difference between revisions
(→Tikz) |
|||
Line 183: | Line 183: | ||
==algorithm2e== | ==algorithm2e== | ||
See [https://en.wikibooks.org/wiki/LaTeX/Algorithms#Typesetting_using_the_algorithm2e_package https://en.wikibooks.org/wiki/LaTeX/Algorithms#Typesetting_using_the_algorithm2e_package] | |||
<syntaxhighlight lang="latex"> | <syntaxhighlight lang="latex"> | ||
\usepackage[linesnumbered,ruled]{algorithm2e} | \usepackage[linesnumbered,ruled]{algorithm2e} | ||
\begin{algorithm}[H] | |||
\KwData{this text} | |||
\KwResult{how to write algorithm with \LaTeX2e } | |||
initialization\; | |||
\While{not at end of this document}{ | |||
read current\; | |||
\eIf{understand}{ | |||
go to next section\; | |||
current section becomes this one\; | |||
}{ | |||
go back to the beginning of current section\; | |||
} | |||
} | |||
\caption{How to write algorithms} | |||
\end{algorithm} | |||
</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] |