6 More logical structure

Mathematics  

Example input

\( y = 2 \sin \theta^2 \)

Example output

y = 2sin θ2

Creating your own commands  

Syntax

\newcommand*{\name}{replacement text} \newcommand*{\name}[number]{replacement text}

Examples

\newcommand*{\authorname}{Joseph Wright} \newcommand*{\important}[1]{\textbf{#1}}