diff options
author | Norbert Preining <preining@logic.at> | 2014-03-04 05:05:45 +0000 |
---|---|---|
committer | Norbert Preining <preining@logic.at> | 2014-03-04 05:05:45 +0000 |
commit | fbe57f4bc9921279854b16480b26387401cc994b (patch) | |
tree | be7fe6e497e0eeb2ec01a6ca92ef71757b3e1ba2 /Master/texmf-dist/tex/latex/upmethodology/upmethodology-fmt.sty | |
parent | ff25537b4955ac9aed9f7865dc290a8108dc10dd (diff) |
upmethodology (4Mar)
git-svn-id: svn://tug.org/texlive/trunk@33091 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/upmethodology/upmethodology-fmt.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/upmethodology/upmethodology-fmt.sty | 37 |
1 files changed, 36 insertions, 1 deletions
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 %---------------------------------------- |