diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/kotex-oblivoir/memhangul-common/obchaptertoc.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/kotex-oblivoir/memhangul-common/obchaptertoc.sty | 36 |
1 files changed, 21 insertions, 15 deletions
diff --git a/Master/texmf-dist/tex/latex/kotex-oblivoir/memhangul-common/obchaptertoc.sty b/Master/texmf-dist/tex/latex/kotex-oblivoir/memhangul-common/obchaptertoc.sty index 3e9b5eb4af5..74f0492bc41 100644 --- a/Master/texmf-dist/tex/latex/kotex-oblivoir/memhangul-common/obchaptertoc.sty +++ b/Master/texmf-dist/tex/latex/kotex-oblivoir/memhangul-common/obchaptertoc.sty @@ -4,7 +4,7 @@ %%% %%% written by Nova de Hi %%% -\ProvidesPackage{obchaptertoc}[2020/09/03, v2.0] +\ProvidesPackage{obchaptertoc}[2023/01/30, v3.0] \RequirePackage{l3keys2e} \ExplSyntaxOn @@ -197,21 +197,25 @@ \newcommand\chaptertoc{ \begingroup - \chaptertocfont - \let\@orig@markboth\markboth - \renewcommand\markboth[2]{} - \setcounter{@memmarkcntra}{\value{tocdepth}} - \let\changetocdepth\@gobble - \normalchangetocdepth{-10} - \cftinsertcode{start-\thetocmarker}{\normalchangetocdepth{\theobchaptocmaxdepth}} - \cftinsertcode{end-\thetocmarker}{\normalchangetocdepth{-10}} - \let\tocheadstart\relax - \let\printtoctitle\@gobble - \let\aftertoctitle\relax - %%% formatting chaptertoc - \@ChapterTOCFormat - \tableofcontents* + \chaptertocfont + \let\@orig@markboth\markboth + \renewcommand\markboth[2]{} + \let\@orig@thispagestyle\thispagestyle + \renewcommand\thispagestyle[1]{} + \setcounter{@memmarkcntra}{\value{tocdepth}} + \let\changetocdepth\@gobble + \normalchangetocdepth{-10} + \cftinsertcode{start-\thetocmarker}{\normalchangetocdepth{\theobchaptocmaxdepth}} + \cftinsertcode{end-\thetocmarker}{\normalchangetocdepth{-10}} + \let\tocheadstart\relax + \let\printtoctitle\@gobble + \let\aftertoctitle\relax + %%% formatting chaptertoc + \@ChapterTOCFormat + \tableofcontents* \endgroup + \let\thispagestyle\@orig@thispagestyle + \let\markboth\@orig@markboth \setcounter{tocdepth}{\value{@memmarkcntra}} \m@mindentafterchapter \ifChapterTOCafterskip @@ -221,3 +225,5 @@ } \endinput + +%%% version 3.0: pagestyle bug fixed |