diff options
author | Karl Berry <karl@freefriends.org> | 2006-01-13 00:00:27 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2006-01-13 00:00:27 +0000 |
commit | e9351f8ac4f8603d6020be78e092e939e24d89d0 (patch) | |
tree | 8685ab79522a6950137c99cb014279dedf34e334 /Master/texmf-dist/tex/latex/ncclatex/ncchdr.sty | |
parent | 1fa165c67ca6c4bade32ffbec3cfcc8ea860507c (diff) |
ncclatex
git-svn-id: svn://tug.org/texlive/trunk@1131 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/ncclatex/ncchdr.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/ncclatex/ncchdr.sty | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/ncclatex/ncchdr.sty b/Master/texmf-dist/tex/latex/ncclatex/ncchdr.sty new file mode 100644 index 00000000000..f05c47adc2f --- /dev/null +++ b/Master/texmf-dist/tex/latex/ncclatex/ncchdr.sty @@ -0,0 +1,66 @@ +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{ncchdr} + [2005/01/12 v1.02 Fancy headers for NCC class (NCC)] +% +% \changes{v1.01}{2002/02/14}{This version is uploaded to CTAN} +% \changes{v1.02}{2002/04/25}{Bug in left header fixed} +% \changes{v1.03}{2005/01/12}{Bug in \PassOptionsToPackage command fixed} +% +% This package redefines NCC page styles to fancy styles +% and defines the fancy `title' page style if the `title' option is used. +% This style has three header marks: +% \lefttitlemark, \titlemark (in center), and \righttitlemark. +% +% If NCC class is not loaded, the package transfers redifinition of +% styles to the nccfancyhdr package in assumption that one of standard +% LaTeX classes is loaded. +% +\@ifundefined{NCC@setpsheading}{% + \def\NCC@temp{\PassOptionsToPackage{\CurrentOption}{nccfancyhdr}}% +}{% + \def\NCC@temp{% + \def\NCC@setpsheading{\ps@fancy + \fancyhead[CO]{% + \fancycenter{}% + {\small\itshape\ignorespaces\rightmark\unskip}% + {\thepage}% + }% + \fancyhead[CE]{% + \fancycenter{\thepage}% + {\small\itshape\ignorespaces\leftmark\unskip}% + {}% + }% + }% + }% +} +% +\DeclareOption{empty}{% + \PassOptionsToPackage{\CurrentOption}{nccfancyhdr}% + \AtEndOfPackage{\pagestyle{empty}}% +} +\DeclareOption{plain}{% + \PassOptionsToPackage{\CurrentOption}{nccfancyhdr}% + \AtEndOfPackage{\pagestyle{plain}}% +} +\DeclareOption{myheadings}{% + \NCC@temp + \AtEndOfPackage{\pagestyle{myheadings}}% +} +\DeclareOption{headings}{% + \NCC@temp + \AtEndOfPackage{\pagestyle{headings}}% +} +\DeclareOption{title}{% + \def\ps@title{\ps@fancy + \fancyhead[L]{\ignorespaces\lefttitlemark\unskip}% + \fancyhead[C]{\ignorespaces\titlemark\unskip}% + \fancyhead[R]{\ignorespaces\righttitlemark\unskip}% + }% + \newcommand\lefttitlemark{}% + \newcommand\titlemark{}% + \newcommand\righttitlemark{}% + \AtEndOfPackage{\pagestyle{title}}% +} +\ProcessOptions* +\RequirePackage{nccfancyhdr} +\endinput |