summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/optidef/optidef.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2016-06-28 21:01:33 +0000
committerKarl Berry <karl@freefriends.org>2016-06-28 21:01:33 +0000
commit0befe222db173f4cc063239c7fe3385e51d01031 (patch)
treecf8483f2699a1ca97f09f34bf28ceb2a10a537af /Master/texmf-dist/tex/latex/optidef/optidef.sty
parentdec1c39ca21c6280d34498fe7b592b40860f0863 (diff)
optidef (28jun16)
git-svn-id: svn://tug.org/texlive/trunk@41559 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/optidef/optidef.sty')
-rw-r--r--Master/texmf-dist/tex/latex/optidef/optidef.sty20
1 files changed, 11 insertions, 9 deletions
diff --git a/Master/texmf-dist/tex/latex/optidef/optidef.sty b/Master/texmf-dist/tex/latex/optidef/optidef.sty
index b3115bbf9a9..0bc5e994ddb 100644
--- a/Master/texmf-dist/tex/latex/optidef/optidef.sty
+++ b/Master/texmf-dist/tex/latex/optidef/optidef.sty
@@ -1,4 +1,4 @@
-% optidef - Version 1.1
+% optidef - Version 1.2
%
%Copyright 2016 J. Lago Garcia
%
@@ -12,7 +12,7 @@
%This work consists of the file optidef.sty.
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{optidef}[2016/06/26 - version=1.1, Package for defining optimization problems]
+\ProvidesPackage{optidef}[2016/06/28 - version=1.2, Package for defining optimization problems]
\RequirePackage{environ}
\RequirePackage{mathtools}
@@ -39,10 +39,12 @@
{
\ifthenelse{\isempty{#4}}
{
- &\underset{\displaystyle #1}{\mathrm{#3}} \quad #2\span\span\span\span
+ %&\underset{\displaystyle #1}{\mathrm{#3}} \quad #2\span\span\span\span
+ &\underset{\displaystyle #1}{\mathrlap{\mathrm{#3}}\phantom{\mathrm{subject~to}}} \quad #2\span\span\span\span
}
{
- #4 ~~ &\underset{\displaystyle #1}{\mathrm{#3}} \quad #2\span\span\span\span
+ %#4 ~~ &\underset{\displaystyle #1}{\mathrm{#3}} \quad #2\span\span\span\span
+ #4 ~~ &\underset{\displaystyle #1}{\mathrlap{\mathrm{#3}}\phantom{\mathrm{subject~to}}} \quad #2\span\span\span\span
}
}
@@ -398,7 +400,7 @@
\begin{equation}
#4
\begin{alignedat}{5}
- \bodyobj{#2}{#3}{arg min}{#5}
+ \bodyobj{#2}{#3}{arg~min}{#5}
\BODY
\end{alignedat}
\end{equation}
@@ -441,7 +443,7 @@
\begin{subequations}
#4
\begin{alignat}{5}
- \bodyobj{#2}{#3}{arg min}{#5}
+ \bodyobj{#2}{#3}{arg~min}{#5}
\BODY
\end{alignat}
\end{subequations}
@@ -467,7 +469,7 @@
\begin{equation}
#4
\begin{alignedat}{5}
- \bodyobj{#2}{#3}{arg maxi}{#5}
+ \bodyobj{#2}{#3}{arg~maxi}{#5}
\BODY
\end{alignedat}
\end{equation}
@@ -486,7 +488,7 @@
\NewEnviron{argmaxi*}[5][]{%
\selectConstraint{#1}
\begin{alignat*}{5}
- \bodyobj{#2}{#3}{arg maxi}{#5}
+ \bodyobj{#2}{#3}{arg~maxi}{#5}
\BODY
\end{alignat*}
\setStandardMini
@@ -510,7 +512,7 @@
\begin{subequations}
#4
\begin{alignat}{5}
- \bodyobj{#2}{#3}{arg maxi}{#5}
+ \bodyobj{#2}{#3}{arg~maxi}{#5}
\BODY
\end{alignat}
\end{subequations}