I want to create a small formulary, and for that virtually every line has to be math formulas. I use the gather
-environment from the package amsmath
, for example:
\documentclass[10pt,a4paper]{article}
\usepackage{amsfonts}
\usepackage[fleqn]{amsmath}%fleqn for align left
\newcommand \ul \underline %next 3 rows for subsection title underline
\newcommand{\tmpsection}[1]{}
\let\tmpsection=\subsection
\renewcommand{\subsection}[1]{\tmpsection{\underline{#1}}}
\begin{document}
\subsection{PSM}
\begin{gather*}
\ul{u_s} = r_s\ul{i_s} + \frac{d}{dt}\ul{\Psi_s}
+j\omega_k\underline{\Psi_s}\\
\ul{\Psi_s}=l_s\ul{i_s}+\ul{\Psi_m}\\
\omega_m=\omega_s\\
\end{gather*}
\end{document}
It seemed a good idea to incorporate the \begin{gather}
environment into \subsection
, and for that the redefinition of \subsection
by \newcommand
seemed probable, but I haven't been able to figure out what keywords to search for.
Only found redefinitions of text style so far, but is it possible to include a \begin
-\end
environment into \subsection
?
If not, i could use this environment shorthand i guess, but still..
\documentclass{...}
and ending with\end{document}
. – user31729 Jul 16 '14 at 22:08gather
math content to form part of the sectional title? If so, why? – Werner Jul 16 '14 at 22:38