summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/lualatex/simurgh/simurgh-fleqn.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/lualatex/simurgh/simurgh-fleqn.sty')
-rw-r--r--Master/texmf-dist/tex/lualatex/simurgh/simurgh-fleqn.sty27
1 files changed, 27 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/lualatex/simurgh/simurgh-fleqn.sty b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-fleqn.sty
new file mode 100644
index 00000000000..bb7cb480d69
--- /dev/null
+++ b/Master/texmf-dist/tex/lualatex/simurgh/simurgh-fleqn.sty
@@ -0,0 +1,27 @@
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{simurgh-fleqn}[2013/09/22 v0.01a fleqn]
+\renewcommand\[{\relax
+ \ifmmode\@badmath
+ \else
+ \begin{trivlist}%
+ \@beginparpenalty\predisplaypenalty
+ \@endparpenalty\postdisplaypenalty
+ \item[]\leavevmode
+ \hbox dir TLT to \linewidth\bgroup $\m@th\displaystyle %$
+ \hskip\mathindent\bgroup
+ \fi}
+
+
+\renewenvironment{equation}%
+ {\@beginparpenalty\predisplaypenalty
+ \@endparpenalty\postdisplaypenalty
+ \refstepcounter{equation}%
+ \trivlist \item[]\leavevmode
+ \hbox dir TLT to \linewidth\bgroup $\m@th% $
+ \displaystyle
+ \hskip\mathindent}%
+ {$\hfil % $
+ \displaywidth\linewidth\if@RTL\hboxR\else\hboxL\fi{\@eqnnum}%
+ \egroup
+ \endtrivlist}
+\endinput \ No newline at end of file