|
|
|
@@ -162,10 +162,17 @@ |
|
|
|
% uses regular expressions to calculate the widest stackrel |
|
|
|
% to put additional padding on both sides of relation symbols |
|
|
|
\NewEnviron{salign} |
|
|
|
{ |
|
|
|
\begin{align} |
|
|
|
\lec_insert_padding:V \BODY |
|
|
|
\end{align} |
|
|
|
} |
|
|
|
% starred version that does no equation numbering |
|
|
|
\NewEnviron{salign*} |
|
|
|
{ |
|
|
|
\begin{align*} |
|
|
|
\lec_insert_padding:V \BODY |
|
|
|
.\end{align*} |
|
|
|
\end{align*} |
|
|
|
} |
|
|
|
|
|
|
|
% some helper variables |
|
|
|
@@ -210,7 +217,7 @@ |
|
|
|
} |
|
|
|
% replace all relations with align characters (&) and add the needed padding |
|
|
|
\regex_replace_all:nnN |
|
|
|
{ (&=|&\c{le}|&\c{ge}|&\c{stackrel}{.*?}{.*?}|&\c{neq}) } |
|
|
|
{ (\c{approx}&|&\c{approx}|\c{equiv}&|&\c{equiv}|=&|&=|\c{le}&|&\c{le}|\c{ge}&|&\c{ge}|&\c{stackrel}{.*?}{.*?}|\c{stackrel}{.*?}{.*?}&|&\c{neq}|\c{neq}&) } |
|
|
|
{ \c{kern} \u{l_tmp_dim_needed} \1 \c{kern} \u{l_tmp_dim_needed} } |
|
|
|
\l__lec_text_tl |
|
|
|
\l__lec_text_tl |
|
|
|
|