diff options
Diffstat (limited to 'macros/latex/contrib/upmethodology/src/upmethodology-fmt.sty')
-rw-r--r-- | macros/latex/contrib/upmethodology/src/upmethodology-fmt.sty | 45 |
1 files changed, 43 insertions, 2 deletions
diff --git a/macros/latex/contrib/upmethodology/src/upmethodology-fmt.sty b/macros/latex/contrib/upmethodology/src/upmethodology-fmt.sty index 776022789d..bb28d2ce6c 100644 --- a/macros/latex/contrib/upmethodology/src/upmethodology-fmt.sty +++ b/macros/latex/contrib/upmethodology/src/upmethodology-fmt.sty @@ -1,6 +1,6 @@ % Layout and Pagraph Format for Unified Process Methodology % -% Copyright (c) 2006-2009, 2012-2019 Stephane GALLAND <galland@arakhne.org> +% Copyright (c) 2006-2009, 2012-2021 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/09/28} +\global\edef\upm@package@fmt@ver{2021/07/08} \NeedsTeXFormat{LaTeX2e}[1995/12/01] \ProvidesPackage{upmethodology-fmt}[\upm@package@fmt@ver] @@ -1536,12 +1536,53 @@ \colorlet{emphboxbackground}{backtableheader} \colorlet{emphboxborder}{fronttableheader} \colorlet{emphboxtext}{fronttableheader} +\colorlet{emphboxbackgroundb}{yellow!7} +\colorlet{emphboxbackgroundc}{green!10} +%----- +% Draw an emph box without title +% [#1]: width of the box (linewidth by default) \NewEnviron{emphbox}[1][\linewidth]{% \begin{framedcolorminipage}{#1}{emphboxborder}{emphboxbackground}% \centering\color{emphboxtext}\BODY% \end{framedcolorminipage}% } +%----- +% Draw an emph box with title +% [#1]: width of the box (linewidth by default) +% #2: text of the title +\NewEnviron{titleemphbox}[2][\linewidth]{% + \begin{framedcolorminipage}{#1}{emphboxborder}{emphboxbackground}% + \centering\color{emphboxtext}% + \vspace{.25cm}\uline{\textbf{#2}}\\[.25cm]% + \raggedright\BODY\vspace{.25cm}% + \end{framedcolorminipage}\\[.4cm]% +} + +%----- +% Draw an emph box without title with the second background color +% [#1]: width of the box (linewidth by default) +% #2: text of the title +\NewEnviron{titleemphbox2}[2][\linewidth]{% + \begin{framedcolorminipage}{#1}{emphboxborder}{emphboxbackgroundb}% + \centering\color{emphboxtext}% + \vspace{.25cm}\uline{\textbf{#2}}\\[.25cm]% + \raggedright\BODY\vspace{.25cm}% + \end{framedcolorminipage}\\[.4cm]% +} + +%----- +% Draw an emph box without title with the third background color +% [#1]: width of the box (linewidth by default) +% #2: text of the title +\NewEnviron{titleemphbox3}[2][\linewidth]{% + \begin{framedcolorminipage}{#1}{emphboxborder}{emphboxbackgroundc}% + \centering\color{emphboxtext}% + \vspace{.25cm}\uline{\textbf{#2}}\\[.25cm]% + \raggedright\BODY\vspace{.25cm}% + \end{framedcolorminipage}\\[.4cm]% +} + \endinput |