Comments on: Advanced Formulae in Latex http://techblox.fusun.ch/wordpress/2010/05/advanced-formulae-in-latex/ Solutions To A Computer Scientist's Daily Problems Mon, 31 May 2010 12:47:12 +0000 hourly 1 http://wordpress.org/?v=3.4.1 By: TheGuy http://techblox.fusun.ch/wordpress/2010/05/advanced-formulae-in-latex/comment-page-1/#comment-3 TheGuy Mon, 31 May 2010 12:47:12 +0000 http://techblox.fusun.ch/wordpress/?p=15#comment-3 You could, indeed, write a macro for matrices, e.g <code> \newcommand{\mymatrix}[1]{\begin{pmatrix}#1\end{pmatrix}}, </code> and then write your matrix as <code> \begin{equation} d = \mymatrix{ 123 & 23423 \\ 34 & 343} \end{equation}. </code> But in my opinion, it does not really simplify the code. And the same goes for multi-case definitions. You could, indeed, write a macro for matrices, e.g

1
\newcommand{\mymatrix}[1]{\begin{pmatrix}#1\end{pmatrix}},

and then write your matrix as

1
2
3
4
5
\begin{equation}
d = \mymatrix{
123 & 23423 \\
 34 & 343}
\end{equation}.

But in my opinion, it does not really simplify the code. And the same goes for multi-case definitions.

]]>
By: Badummtschi http://techblox.fusun.ch/wordpress/2010/05/advanced-formulae-in-latex/comment-page-1/#comment-2 Badummtschi Mon, 31 May 2010 09:35:15 +0000 http://techblox.fusun.ch/wordpress/?p=15#comment-2 Why don't you use macros also for matrices and multi-case defintions? Why don’t you use macros also for matrices and multi-case defintions?

]]>