texlive[51818] Master/texmf-dist: upmethodology (4aug19)
commits+karl at tug.org
commits+karl at tug.org
Sun Aug 4 23:17:09 CEST 2019
Revision: 51818
http://tug.org/svn/texlive?view=revision&revision=51818
Author: karl
Date: 2019-08-04 23:17:09 +0200 (Sun, 04 Aug 2019)
Log Message:
-----------
upmethodology (4aug19)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/upmethodology/upmethodology-doc.pdf
trunk/Master/texmf-dist/doc/latex/upmethodology/upmethodology-doc.tex
trunk/Master/texmf-dist/tex/latex/upmethodology/UPMVERSION.def
trunk/Master/texmf-dist/tex/latex/upmethodology/upmethodology-fmt.sty
Modified: trunk/Master/texmf-dist/doc/latex/upmethodology/upmethodology-doc.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/upmethodology/upmethodology-doc.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/upmethodology/upmethodology-doc.tex 2019-08-04 21:16:47 UTC (rev 51817)
+++ trunk/Master/texmf-dist/doc/latex/upmethodology/upmethodology-doc.tex 2019-08-04 21:17:09 UTC (rev 51818)
@@ -2,12 +2,13 @@
\setfrontcover{classic}
-\declaredocument{\LaTeX\ Packages for Unified Process Methodology}{Official Documentation}{UPM-2017-02}
+\declaredocument{\LaTeX\ Packages for Unified Process Methodology}{Official Documentation}{UPM-2019-01}
\updateversion{23.0}{\makedate{17}{02}{2017}}{Replace the package \texttt{subfigure} by \texttt{subcaption}.}{\upmpublic}
\incsubversion{\makedate{10}{03}{2017}}{Fixing subfigure invalid alignement.}{\upmpublic}
\incsubversion{\makedate{08}{08}{2017}}{Fixing spelling errors and typos.}{\upmpublic}
\incsubversion{\makedate{28}{11}{2017}}{Add 'standardlists' option.}{\upmpublic}
+\incsubversion{\makedate{04}{08}{2019}}{Add 'graphicspathcontext' option.}{\upmpublic}
\addauthorvalidator*[galland at arakhne.org]{St{\'e}phane}{Galland}{Original Author}
\addauthor*{Frans}{van Dunn\'e}{Reviewer}
@@ -423,6 +424,26 @@
Example: \texttt{{\textbackslash}graphicspath\{\{./imgs/\},\{./imgs/auto/\}\}} \\
\end{description}
+\section{Contextual Search Path for \texttt{graphicx}}
+
+As described into the previous section, the \texttt{graphicx} package is able to search for files into a set of defined paths.
+
+In order to define a search path that is valid for a part of the document, the \texttt{graphicspathcontext} environment is defined. This environment redefines the \texttt{graphicx} path with the environment's parameter. The original value of the \texttt{graphicx} path is restored when existing of the environment.
+
+The defined environment is: \\
+\texttt{{\textbackslash}begin\{graphicspathcontext\}\{path\}} \\
+\texttt{...}\\
+\texttt{{\textbackslash}end\{graphicspathcontext\}} \\
+
+
+The parameter \texttt{path} must follow the syntactic definition of the \texttt{graphicx} path. If you want to reuse the current value of the \texttt{graphicx} path, you could obtain it by using the \texttt{{\textbackslash}old} macro, such as: \\
+\texttt{{\textbackslash}begin\{graphicspathcontext\}\{{mypath},{\textbackslash}old\}} \\
+\texttt{...}\\
+\texttt{{\textbackslash}end\{graphicspathcontext\}} \\
+
+\emph{Note that \texttt{{\textbackslash}old} must not be inside curly braces.}
+
+
\section{Figures}
It may be verbose to put \LaTeX\ code to include a figure inside your document. To simplify your life, you could include a figure with the following macros: \\
Modified: trunk/Master/texmf-dist/tex/latex/upmethodology/UPMVERSION.def
===================================================================
--- trunk/Master/texmf-dist/tex/latex/upmethodology/UPMVERSION.def 2019-08-04 21:16:47 UTC (rev 51817)
+++ trunk/Master/texmf-dist/tex/latex/upmethodology/UPMVERSION.def 2019-08-04 21:17:09 UTC (rev 51818)
@@ -1 +1 @@
-\def\UPMVERSION{20171210}
+\def\UPMVERSION{20190804}
Modified: trunk/Master/texmf-dist/tex/latex/upmethodology/upmethodology-fmt.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/upmethodology/upmethodology-fmt.sty 2019-08-04 21:16:47 UTC (rev 51817)
+++ trunk/Master/texmf-dist/tex/latex/upmethodology/upmethodology-fmt.sty 2019-08-04 21:17:09 UTC (rev 51818)
@@ -17,7 +17,7 @@
% write to the Free Software Foundation, Inc., 59 Temple Place - Suite
% 330, Boston, MA 02111-1307, USA.
-\global\edef\upm at package@fmt at ver{2017/12/10}
+\global\edef\upm at package@fmt at ver{2019/08/04}
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
\ProvidesPackage{upmethodology-fmt}[\upm at package@fmt at ver]
@@ -161,6 +161,20 @@
\fi
\graphicspath{{./}}
+%-----------------------------------------
+% LOCAL DEFINITION OF TH GRAPHICS PATH
+%-----------------------------------------
+
+\newenvironment{graphicspathcontext}[1]{%
+ \bgroup%
+ \let\upm at tmp@graphicspathcontext at ginputpath\Ginput at path%
+ \def\old{\upm at tmp@graphicspathcontext at ginputpath}%
+ \protected at edef\upm at tmp@graphicspathcontext at tmp{\protect\graphicspath{#1}}%
+ \upm at tmp@graphicspathcontext at tmp%
+}{%
+ \egroup%
+}
+
%----------------------------------------
% FIGURES
%----------------------------------------
More information about the tex-live-commits
mailing list