Skip to content

Instantly share code, notes, and snippets.

@davidshepherd7
Created February 10, 2015 14:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davidshepherd7/d9fe1ae929e3dde22c1d to your computer and use it in GitHub Desktop.
Save davidshepherd7/d9fe1ae929e3dde22c1d to your computer and use it in GitHub Desktop.
Scaled block matrices in LaTeX
\newcommand{\scalemath}[2]{\scalebox{#1}{\begin{math} {#2} \end{math}}}
\newcommand{\Aprime}{\scalemath{0.5}{\begin{matrix} \Amm & \Abound \\ \zm & -\Idm \end{matrix}}}
\newcommand{\Gprime}{\scalemath{0.5}{\begin{matrix} \zm & \zm \\ \zm & \bm \end{matrix}}}
\newcommand{\Qprime}{\scalemath{0.5}{\begin{matrix} \Qm \\ \zm \end{matrix}}}
Combining the above with the Jacobian matrix as derived in \cref{sec:llg-magn-coupl}, the complete Jacobian is
\begin{equation}
\Jm =
\scalemath{2}{
\begin{pmatrix}
\Fm & \Pm & \zm \\
\Qprime & \Aprime & \Gprime \\
\Qm & \zm & \Amu
\end{pmatrix}
},
\label{eq:16}
\end{equation}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment