Math & Sciencescriptstyle in alignat environment

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
juliette
Posts: 75
Joined: Thu Nov 20, 2008 10:15 pm

scriptstyle in alignat environment

Post by juliette »

Hello,
It seems that I need to reapply the command {\scriptsize } arround EACH & sign (column separator) in the alignat environment:

Code: Select all

\documentclass[11pt]{article}
\usepackage{amsmath}
\usepackage{mathrsfs}
\begin{document}

\begin{alignat}{2}
{\scriptstyle h(t)} & {\scriptsize + \mathcal{K} }\\
                      &= 4 
\label{eq:generatorForm}
\end{alignat}

\end{document}
would work, but not

Code: Select all

\documentclass[11pt]{article}
\usepackage{amsmath}
\usepackage{mathrsfs}
\begin{document}

\begin{alignat}{2}
{\scriptstyle h(t) &  + \mathcal{K} }\\
                      &= 4 
\label{eq:generatorForm}
\end{alignat}

\end{document}
This gets annoying when I'm doing 50 lines worth of equations.

Is there a way to make the whole thing small without reapplying scriptstyle so many times ?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

scriptstyle in alignat environment

Post by localghost »

You can either embed the math expressions in an environment to change the font size or change the style of math expressions globally.

Code: Select all

\everymath={\scriptstyle}
This line goes into the preamble. I'd prefer to change the size of the font.


Best regards
Thorsten
Post Reply