diff options
author | Norbert Preining <preining@logic.at> | 2006-10-04 08:43:01 +0000 |
---|---|---|
committer | Norbert Preining <preining@logic.at> | 2006-10-04 08:43:01 +0000 |
commit | ba9472aebfed07843bc4faa00c7b96bc86194691 (patch) | |
tree | 4a952a012e2f1663beaac6384dec265fb50dd361 /Master/texmf-dist/tex/latex/ncclatex/nccheadings.sty | |
parent | a88bdfe70c672cfced299babf0a54881a916bcca (diff) |
Fix ctan2tds for pgf installation
comment powerdot-doc-vn in tpm-ctan-check, it always breaks
Update of the following packages:
labelcas pstricks-add sectionbox ltxmisc frenchle flowfram verse emulateapj
pst-pdf poemscol babelbib dk-bib breakurl screenplay ncctools xkeyval bibleref
muthesis pst-labo pgf ncclatex active-conf xcolor commath lineno dottex makeplo
git-svn-id: svn://tug.org/texlive/trunk@2240 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/ncclatex/nccheadings.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/ncclatex/nccheadings.sty | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/ncclatex/nccheadings.sty b/Master/texmf-dist/tex/latex/ncclatex/nccheadings.sty new file mode 100644 index 00000000000..c97e7deb60c --- /dev/null +++ b/Master/texmf-dist/tex/latex/ncclatex/nccheadings.sty @@ -0,0 +1,74 @@ +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{nccheadings} + [2005/12/28 v1.00 Headings in ncc-style (NCC)] +% +% \changes{v1.00}{2005/12/28}{This version is uploaded to CTAN} +% +% NCC page style with headings support +% +\def\NCC@setpsheading{% + \let\@oddfoot\@empty\let\@evenfoot\@empty + \def\@evenhead{% + \thepage\hfil + {\small\itshape\ignorespaces\leftmark\unskip}\hfil + }% + \def\@oddhead{% + \hfil{\small\itshape\ignorespaces\rightmark\unskip}\hfil + \thepage + }% + \reset@font +} +\def\NCC@firstmark#1{\markboth{#1}{#1}} +\def\NCC@secondmark#1{\markright{#1}} +% +% Specify `headings' and `myheadings' page styles +% +\@ifundefined{chapter}{% +% +% Styles for article-like classes +% + \def\ps@headings{\NCC@setpsheading + \def\partmark##1{% + \NCC@firstmark{\ifnum \c@secnumdepth>\m@ne\thepart.\enskip \fi + \ignorespaces##1}}% + \def\sectionmark##1{% + \NCC@firstmark{\ifnum \c@secnumdepth>\z@\thesection.\enskip \fi + \ignorespaces##1}}% + \def\subsectionmark##1{% + \NCC@secondmark{\ifnum\c@secnumdepth>\@ne\thesubsection.\enskip\fi + \ignorespaces##1}}% + } + \def\ps@myheadings{\NCC@setpsheading + \let\partmark \@gobble + \let\sectionmark \@gobble + \let\subsectionmark\@gobble + } + \ps@myheadings +}{% +% +% Styles for book-like classes +% + \@ifundefined{if@mainmatter}{% + \newif\if@mainmatter \@mainmattertrue + } + \def\ps@headings{\NCC@setpsheading + \def\partmark##1{% + \NCC@firstmark{\ifnum \c@secnumdepth>-2\relax + \partname\ \thepart.\enskip \fi + \ignorespaces##1}}% + \def\chaptermark##1{% + \NCC@firstmark{\ifnum \c@secnumdepth>\m@ne + \if@mainmatter \@chapapp\ \thechapter.\enskip \fi \fi + \ignorespaces##1}}% + \def\sectionmark##1{% + \NCC@secondmark{\ifnum\c@secnumdepth>\z@\thesection.\enskip\fi + \ignorespaces##1}}% + } + \def\ps@myheadings{\NCC@setpsheading + \let\partmark \@gobble + \let\chaptermark\@gobble + \let\sectionmark\@gobble + } + \ps@headings +} +\endinput
\ No newline at end of file |