%% %% This is file `topsection.sty', %% generated with the docstrip utility. %% %% The original source files were: %% %% topsection.dtx (with options: `package') %% %% IMPORTANT NOTICE: %% %% This file is a generated file from the sources of the `ncctools' %% bundle. %% %% You are not allowed to modify this file. %% %% You are allowed to distribute this file if and only if %% it is distributed with the corresponding source files in %% the `ncctools' bundle. %% %% For the copying and distribution conditions of the source files, %% see the README file distributed with the ncctools bundle. %% %% File: topsection.dtx Copyright (C) 2005 by Alexander I. Rozhenko %% \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{topsection} [2005/12/24 v1.0 Top section definition (NCC)] \providecommand\@mkboth[2]{} \newcommand\@iftopchapter[2]{} \@ifundefined{chapter}{% \def\NCC@topsection{\section}% \let\@iftopchapter\@secondoftwo }{% \def\NCC@topsection{\chapter}% \let\@iftopchapter\@firstoftwo } \newcommand*\topsection[1]{} \AtBeginDocument{% \@ifpackageloaded{nccsect}{% \renewcommand*\topsection[1]{% \ifx\@mkboth\@gobbletwo \noheadingtag \NCC@topsection{#1}% \else \norunninghead \noheadingtag \NCC@topsection{#1}% \@mkboth{\MakeUppercase{#1}}{\MakeUppercase{#1}}% \fi }% }{% \renewcommand*\topsection[1]{% \NCC@topsection*{#1}% \@mkboth{\MakeUppercase{#1}}{\MakeUppercase{#1}}% }% }% } \endinput %% %% End of file `topsection.sty'.