diff options
author | Karl Berry <karl@freefriends.org> | 2019-09-28 21:34:06 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2019-09-28 21:34:06 +0000 |
commit | aaf5bfa44aee090306074edc3433e49fcc23837b (patch) | |
tree | 655bd4dca36134a75233bcdf023b9359a94b45f5 /Master/texmf-dist/tex/latex/upmethodology | |
parent | ba8f9817d50e9533e8925630f9fe1290be27cf33 (diff) |
upmethodology (28sep19)
git-svn-id: svn://tug.org/texlive/trunk@52200 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/upmethodology')
-rw-r--r-- | Master/texmf-dist/tex/latex/upmethodology/UPMVERSION.def | 2 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/upmethodology/upmethodology-fmt.sty | 52 |
2 files changed, 37 insertions, 17 deletions
diff --git a/Master/texmf-dist/tex/latex/upmethodology/UPMVERSION.def b/Master/texmf-dist/tex/latex/upmethodology/UPMVERSION.def index fbd7b4b22f6..267de193195 100644 --- a/Master/texmf-dist/tex/latex/upmethodology/UPMVERSION.def +++ b/Master/texmf-dist/tex/latex/upmethodology/UPMVERSION.def @@ -1 +1 @@ -\def\UPMVERSION{20190917} +\def\UPMVERSION{20190928} diff --git a/Master/texmf-dist/tex/latex/upmethodology/upmethodology-fmt.sty b/Master/texmf-dist/tex/latex/upmethodology/upmethodology-fmt.sty index bbdd4bce1e6..776022789d5 100644 --- a/Master/texmf-dist/tex/latex/upmethodology/upmethodology-fmt.sty +++ b/Master/texmf-dist/tex/latex/upmethodology/upmethodology-fmt.sty @@ -1,6 +1,6 @@ % Layout and Pagraph Format for Unified Process Methodology % -% Copyright (c) 2006-2009, 2012-2015 Stephane GALLAND <galland@arakhne.org> +% Copyright (c) 2006-2009, 2012-2019 Stephane GALLAND <galland@arakhne.org> % % This program is free library; you can redistribute it and/or modify % it under the terms of the GNU Lesser General Public License as @@ -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{2019/08/04} +\global\edef\upm@package@fmt@ver{2019/09/28} \NeedsTeXFormat{LaTeX2e}[1995/12/01] \ProvidesPackage{upmethodology-fmt}[\upm@package@fmt@ver] @@ -1370,34 +1370,54 @@ \newsavebox{\upm@highlight@box@save} -\newenvironment{upm@highligh@box}[2]{% +% Parameters are: +% #1: the width of the box +% #2: the name of the picture +% #3: the name of the border color +% #4: the name of the background color +% #5: the name of the text color +\newenvironment{upm@highligh@box}[5]{% \par \vspace{.5cm} \begin{tabular}{|p{#1}|} - \hline - \begin{window}[0,l,{\mbox{\includegraphics[width=1cm]{#2}}},{}] -}{% - \end{window}\\ \hline \end{tabular} + \arrayrulecolor{#3}% + \hline + \cellcolor{#4} + \begin{window}[0,l,{\mbox{\includegraphics[width=1cm]{#2}}},{}] + \color{#5} + }{% + \normalcolor\end{window}\\ \hline \end{tabular} \vspace{.5cm} \par } -\newenvironment{upmcaution}[1][\linewidth]{% - \upm@highligh@box{#1}{upm_caution.png}% +% Colors for the highligh boxes +\colorlet{highlightboxbackground_caution}{white} +\colorlet{highlightboxforeground_caution}{black} +\colorlet{highlightboxborder_caution}{black} +\colorlet{highlightboxbackground_info}{white} +\colorlet{highlightboxforeground_info}{black} +\colorlet{highlightboxborder_info}{black} +\colorlet{highlightboxbackground_question}{white} +\colorlet{highlightboxforeground_question}{black} +\colorlet{highlightboxborder_question}{black} + +\newenvironment{upmcaution}[1][.8\linewidth]{% + \bgroup\centering\upm@highligh@box{#1}{upm_caution.pdf}{highlightboxborder_caution}{highlightboxbackground_caution}{highlightboxforeground_caution}% }{% - \endupm@highligh@box% + \endupm@highligh@box\egroup% } -\newenvironment{upminfo}[1][\linewidth]{% - \upm@highligh@box{#1}{upm_info.png}% +\newenvironment{upminfo}[1][.8\linewidth]{% + \bgroup\centering\upm@highligh@box{#1}{upm_info.pdf}{highlightboxborder_info}{highlightboxbackground_info}{highlightboxforeground_info}% }{% - \endupm@highligh@box% + \endupm@highligh@box\egroup% } -\newenvironment{upmquestion}[1][\linewidth]{% - \upm@highligh@box{#1}{upm_question.png}% +\newenvironment{upmquestion}[1][.8\linewidth]{% + \bgroup\centering\upm@highligh@box{#1}{upm_question.pdf}{highlightboxborder_question}{highlightboxbackground_question}{highlightboxforeground_question}% }{% - \endupm@highligh@box% + \endupm@highligh@box\egroup% } %---------------------------------------- |