summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2019-08-04 21:17:09 +0000
committerKarl Berry <karl@freefriends.org>2019-08-04 21:17:09 +0000
commit8fe8e01cd9dc4177d5f98c145b2a3669f2e0ca73 (patch)
treef0a00fd9812b5fda634769b307549bd658151145
parent897546c9e162a3c22de2216f7ed0fd13bc57fa26 (diff)
upmethodology (4aug19)
git-svn-id: svn://tug.org/texlive/trunk@51818 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Master/texmf-dist/doc/latex/upmethodology/upmethodology-doc.pdfbin359313 -> 355555 bytes
-rw-r--r--Master/texmf-dist/doc/latex/upmethodology/upmethodology-doc.tex23
-rw-r--r--Master/texmf-dist/tex/latex/upmethodology/UPMVERSION.def2
-rw-r--r--Master/texmf-dist/tex/latex/upmethodology/upmethodology-fmt.sty16
4 files changed, 38 insertions, 3 deletions
diff --git a/Master/texmf-dist/doc/latex/upmethodology/upmethodology-doc.pdf b/Master/texmf-dist/doc/latex/upmethodology/upmethodology-doc.pdf
index 89561bc47ae..f1bad92b537 100644
--- a/Master/texmf-dist/doc/latex/upmethodology/upmethodology-doc.pdf
+++ b/Master/texmf-dist/doc/latex/upmethodology/upmethodology-doc.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/upmethodology/upmethodology-doc.tex b/Master/texmf-dist/doc/latex/upmethodology/upmethodology-doc.tex
index 6f2a9c2948c..c7b44593fbf 100644
--- a/Master/texmf-dist/doc/latex/upmethodology/upmethodology-doc.tex
+++ b/Master/texmf-dist/doc/latex/upmethodology/upmethodology-doc.tex
@@ -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@arakhne.org]{St{\'e}phane}{Galland}{Original Author}
\addauthor*{Frans}{van Dunn\'e}{Reviewer}
@@ -423,6 +424,26 @@ To redefine these extensions, you must invoke:\\
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: \\
diff --git a/Master/texmf-dist/tex/latex/upmethodology/UPMVERSION.def b/Master/texmf-dist/tex/latex/upmethodology/UPMVERSION.def
index 6b9e66e5af3..02b668610db 100644
--- a/Master/texmf-dist/tex/latex/upmethodology/UPMVERSION.def
+++ b/Master/texmf-dist/tex/latex/upmethodology/UPMVERSION.def
@@ -1 +1 @@
-\def\UPMVERSION{20171210}
+\def\UPMVERSION{20190804}
diff --git a/Master/texmf-dist/tex/latex/upmethodology/upmethodology-fmt.sty b/Master/texmf-dist/tex/latex/upmethodology/upmethodology-fmt.sty
index 057e348e887..bbdd4bce1e6 100644
--- a/Master/texmf-dist/tex/latex/upmethodology/upmethodology-fmt.sty
+++ b/Master/texmf-dist/tex/latex/upmethodology/upmethodology-fmt.sty
@@ -17,7 +17,7 @@
% write to the Free Software Foundation, Inc., 59 Temple Place - Suite
% 330, Boston, MA 02111-1307, USA.
-\global\edef\upm@package@fmt@ver{2017/12/10}
+\global\edef\upm@package@fmt@ver{2019/08/04}
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
\ProvidesPackage{upmethodology-fmt}[\upm@package@fmt@ver]
@@ -161,6 +161,20 @@
\fi
\graphicspath{{./}}
+%-----------------------------------------
+% LOCAL DEFINITION OF TH GRAPHICS PATH
+%-----------------------------------------
+
+\newenvironment{graphicspathcontext}[1]{%
+ \bgroup%
+ \let\upm@tmp@graphicspathcontext@ginputpath\Ginput@path%
+ \def\old{\upm@tmp@graphicspathcontext@ginputpath}%
+ \protected@edef\upm@tmp@graphicspathcontext@tmp{\protect\graphicspath{#1}}%
+ \upm@tmp@graphicspathcontext@tmp%
+}{%
+ \egroup%
+}
+
%----------------------------------------
% FIGURES
%----------------------------------------