texlive[44669] Master/texmf-dist: optidef (21jun17)

commits+karl at tug.org commits+karl at tug.org
Fri Jun 23 00:35:49 CEST 2017


Revision: 44669
          http://tug.org/svn/texlive?view=revision&revision=44669
Author:   karl
Date:     2017-06-23 00:35:49 +0200 (Fri, 23 Jun 2017)
Log Message:
-----------
optidef (21jun17)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/optidef/README.md
    trunk/Master/texmf-dist/doc/latex/optidef/optidef.pdf
    trunk/Master/texmf-dist/doc/latex/optidef/optidef.tex
    trunk/Master/texmf-dist/tex/latex/optidef/optidef.sty

Modified: trunk/Master/texmf-dist/doc/latex/optidef/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/optidef/README.md	2017-06-22 22:35:35 UTC (rev 44668)
+++ trunk/Master/texmf-dist/doc/latex/optidef/README.md	2017-06-22 22:35:49 UTC (rev 44669)
@@ -62,11 +62,11 @@
 
 ## Contact for issue reporting or suggestions
 
-E-mail: j.lagogarcia(at)tudelft.nl
+E-mail: J.LagoGarcia(at)tudelft.nl
 
 Github: https://github.com/jeslago/optidef
 
-## Latest stable version: Optidef 2.4
+## Latest stable version: Optidef 2.5
 
 CTAN: https://www.ctan.org/pkg/optidef
 

Modified: trunk/Master/texmf-dist/doc/latex/optidef/optidef.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/optidef/optidef.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/optidef/optidef.tex	2017-06-22 22:35:35 UTC (rev 44668)
+++ trunk/Master/texmf-dist/doc/latex/optidef/optidef.tex	2017-06-22 22:35:49 UTC (rev 44669)
@@ -7,7 +7,7 @@
 
 \lstset{basicstyle=\ttfamily,breaklines=true}
 % Title Page
-\title{\textit{\textbf{Optidef}} \\ A Latex library for optimization problems\\ \textnormal{Version - 2.4}}
+\title{\textit{\textbf{Optidef}} \\ A Latex library for optimization problems\\ \textnormal{Version - 2.5}}
 
 \author{Jesus Lago Garcia}
 
@@ -683,9 +683,41 @@
 	\addConstraint{r(x_0,x_N)}{= 0.  \label{dOCP:boundary}}
 \end{mini!}
 
+\section{Compatibility issues with other packages}
+When using the cleveref package in couple with the optidef package two measures have to taken for the packages to work properly:
+
+\begin{enumerate}
+	\item As also indicated in the cleveref documentation, the optidef package has to be loaded before the cleveref package.
+	\item To avoid crashes, the \verb|\label| commands in the optidef environments have to be replaced by the protected counterparts \verb|\protect\label|. This is required because of the standard Latex issue of moving arguments and fragile commands\footnote{\url{goo.gl/wmKbNU}}.
+\end{enumerate} 
+
+\noindent A code example taking into account both measures is the following:
+
+\begin{verbatim}
+  \documentclass{article}
+  \usepackage{optidef}
+  \usepackage{cleveref}
+  
+  \begin{document}
+  
+  \begin{mini!}
+    {w}{f(w)+ R(w+6x) \protect\label{eq:ObjectiveExample1}}
+    {\label{eq:Example1}}{}
+    \addConstraint{g(w)}{=0 \protect\label{eq:C1Example3}}
+    \addConstraint{n(w)}{= 6 \protect\label{eq:C2Example1}}
+    \addConstraint{L(w)+r(x)}{=Kw+p \protect\label{eq:C3Example1}}
+  \end{mini!}
+
+  Example labels: \cref{eq:Example1} and \cref{eq:ObjectiveExample1}.
+
+  \end{document}
+\end{verbatim}
+
+	
+	
 \section{Code definition}
 \begin{lstlisting}
-% optidef - Version 2.4
+% optidef - Version 2.5
 %
 %Copyright 2017 J. Lago Garcia
 %
@@ -694,12 +726,12 @@
 %
 %This work has the LPPL maintenance status 'maintained'. The Current Maintainer of this work is J. Lago Garcia.
 %
-%E-mail: j.lagogarcia at tudelft.nl
+%E-mail: J.LagoGarcia at tudelft.nl
 %
 %This work consists of the file optidef.sty.
 
 \NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{optidef}[2017/05/24 - version=2.4,  Package for defining optimization problems]
+\ProvidesPackage{optidef}[2017/06/21 - version=2.5,  Package for defining optimization problems]
 
 \RequirePackage{environ}
 \RequirePackage{mathtools}	

Modified: trunk/Master/texmf-dist/tex/latex/optidef/optidef.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/optidef/optidef.sty	2017-06-22 22:35:35 UTC (rev 44668)
+++ trunk/Master/texmf-dist/tex/latex/optidef/optidef.sty	2017-06-22 22:35:49 UTC (rev 44669)
@@ -1,4 +1,4 @@
-% optidef - Version 2.4
+% optidef - Version 2.5
 %
 %Copyright 2017 J. Lago Garcia
 %
@@ -7,12 +7,12 @@
 %
 %This work has the LPPL maintenance status 'maintained'. The Current Maintainer of this work is J. Lago Garcia.
 %
-%E-mail: j.lagogarcia at tudelft.nl
+%E-mail: J.LagoGarcia at tudelft.nl
 %
 %This work consists of the file optidef.sty.
 
 \NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{optidef}[2017/05/24 - version=2.4,  Package for defining optimization problems]
+\ProvidesPackage{optidef}[2017/06/21 - version=2.5,  Package for defining optimization problems]
 
 \RequirePackage{environ}
 \RequirePackage{mathtools}	



More information about the tex-live-commits mailing list