summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/lualatex/simurgh/simurgh-fleqn.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2013-09-21 21:38:14 +0000
committerKarl Berry <karl@freefriends.org>2013-09-21 21:38:14 +0000
commit304ffa799198faa14a701a1676e6d1b00240a194 (patch)
treec040388def7ab2046aaa481cec0313b84e85d6a6 /Master/texmf-dist/tex/lualatex/simurgh/simurgh-fleqn.sty
parentf5628028710fc1360a0446b4c92ae214d08ef20f (diff)
simurgh (21sep13)
git-svn-id: svn://tug.org/texlive/trunk@31719 c570f23f-e606-0410-a88d-b1316a301751
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