From fbe57f4bc9921279854b16480b26387401cc994b Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Tue, 4 Mar 2014 05:05:45 +0000 Subject: upmethodology (4Mar) git-svn-id: svn://tug.org/texlive/trunk@33091 c570f23f-e606-0410-a88d-b1316a301751 --- .../tex/latex/upmethodology/UPMVERSION.def | 2 +- .../tex/latex/upmethodology/upmethodology-fmt.sty | 37 +++++++++++++++++++++- .../latex/upmethodology/upmethodology-p-common.sty | 2 +- 3 files changed, 38 insertions(+), 3 deletions(-) (limited to 'Master/texmf-dist/tex/latex') diff --git a/Master/texmf-dist/tex/latex/upmethodology/UPMVERSION.def b/Master/texmf-dist/tex/latex/upmethodology/UPMVERSION.def index 8c7352552d4..b7b6f6b03b5 100644 --- a/Master/texmf-dist/tex/latex/upmethodology/UPMVERSION.def +++ b/Master/texmf-dist/tex/latex/upmethodology/UPMVERSION.def @@ -1 +1 @@ -\def\UPMVERSION{20130209} +\def\UPMVERSION{20140303} diff --git a/Master/texmf-dist/tex/latex/upmethodology/upmethodology-fmt.sty b/Master/texmf-dist/tex/latex/upmethodology/upmethodology-fmt.sty index cad37b19981..90c44579ae3 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{2014/02/09} +\global\edef\upm@package@fmt@ver{2014/03/03} \NeedsTeXFormat{LaTeX2e}[1995/12/01] \ProvidesPackage{upmethodology-fmt}[\upm@package@fmt@ver] @@ -823,6 +823,41 @@ \setcounter{secnumdepth}{3} \setcounter{tocdepth}{3} +% Change the color of the TOC for the "dotted" lines +%\let\upm@format@dottedtocline@old\@dottedtocline +%\gdef\@dottedtocline#1#2#3#4#5{% +% %{depth}{left margin}{right margin}{text}{page number} +% \upm@format@dottedtocline@old{#1}{#2}{#3}{#4}{#5}% +%} + +% Change the color of the TOC for the parts +\@ifundefined{l@part}{}{ +\let\upm@format@l@part@old\l@part +\renewcommand*\l@part[2]{% + %{text}{page number} + \upm@format@l@part@old{\textcolor{parttitlecolor}{#1}}{\textcolor{parttitlecolor}{#2}}% +} +} + +% Change the color of the TOC for the chapters +\@ifundefined{l@chapter}{}{ +\let\upm@format@l@chapter@old\l@chapter +\renewcommand*\l@chapter[2]{% + %{text}{page number} + \upm@format@l@chapter@old{\textcolor{chaptertitlecolor}{#1}}{\textcolor{chaptertitlecolor}{#2}}% +} +} + +% Overide the color configuration of the MINITOC package +\AtBeginDocument{ + \@ifundefined{minitoc}{}{% + \global\let\upm@format@mtcSfont@old\mtcSfont + \gdef\mtcSfont{\upm@format@mtcSfont@old\color{sectiontitlecolor}} + \global\let\upm@format@mtifont@old\mtifont + \gdef\mtifont{\upm@format@mtifont@old\color{chaptertitlecolor}} + } +} + %---------------------------------------- % ENUMERATIONS %---------------------------------------- diff --git a/Master/texmf-dist/tex/latex/upmethodology/upmethodology-p-common.sty b/Master/texmf-dist/tex/latex/upmethodology/upmethodology-p-common.sty index e28af917933..54357c42f0f 100644 --- a/Master/texmf-dist/tex/latex/upmethodology/upmethodology-p-common.sty +++ b/Master/texmf-dist/tex/latex/upmethodology/upmethodology-p-common.sty @@ -16,7 +16,7 @@ % 330, Boston, MA 02111-1307, USA. % -\global\edef\upm@package@private@doctype@ver{2013/10/14} +\global\edef\upm@package@private@doctype@ver{2014/03/03} \NeedsTeXFormat{LaTeX2e}[1995/12/01] \ProvidesPackage{upmethodology-p-common}[\upm@package@private@doctype@ver] -- cgit v1.2.3