Sunday, March 31, 2013

Correct autoref for user defined tags

To prepare the autoref package to user defined tags such that theorem or algorithm you can define the autoref name as described in:
http://tex.stackexchange.com/questions/46258/how-to-get-correct-autoref-for-theorems

Monday, March 18, 2013

Writing macros, defining new commands

New commands can be defined as 

\newcommand{\newtag}{your new command}
 If you would like to pass arguments to the command it is possible as
\newcommand{\newtag}[1]{your new command, your argument is {#1}}

How to change background color of enumeration

See the answer here:
http://www.latex-community.org/forum/viewtopic.php?f=44&t=13447&p=50828

Fractions in latex

The easiest way to write fractions in an equation is to use the \frac command as
\frac{a}{b}

Tuesday, March 5, 2013

Write transpose of a matrix

Transpose of a matrix (switching rows with columns), I like to write with "T" in exponent, where the exponent is not italic, like 
$A^{\rm T}$