%% %% This is file `nameref.sty', %% generated with the docstrip utility. %% %% The original source files were: %% %% nameref.dtx (with options: `package') %% \def\filedate{1996/07/22} \def\docdate {1995/04/14} \def\fileversion{2.5} \ProvidesPackage{nameref}[\filedate\space Cross-referencing by name of section] \RequirePackage{ifthen} \def\strip@period#1.\relax#2\@@@{#1} \def\label#1{% \@bsphack \bgroup \let\label\@gobble \def\ref{\protect\ref}% \edef\@currentlabstr{\expandafter\strip@prefix\meaning\@currentlabelname}% \protected@write\@auxout{}% {\string\newlabel{#1}{% {\@currentlabel}% {\thepage}% {\expandafter\strip@period\@currentlabstr\relax.\relax\@@@}% {\@currentHref}% }}% \egroup \@esphack } \let\ltx@label\label \@ifundefined{slabel}{}{% \def\slabel#1{% \@bsphack \if@filesw {\let\label\@gobble \def\ref{\protect\ref}% \edef\@currentlabstr{\expandafter\strip@prefix\meaning\@currentlabelname}% \let\thepage\relax \def\protect{\noexpand\noexpand\noexpand}% \edef\@tempa{\write\@auxout{\string \newlabel{#1}{% {\thesubequation}% {\thepage}% {\expandafter\strip@period\@currentlabstr\relax.\relax\@@@}% {\@currentHref}% }}}% \expandafter}\@tempa \if@nobreak \ifvmode\nobreak\fi\fi \fi\@esphack}} \def\@writetocindents{% \begingroup \@for\@tempa:=-1,0,1,2,3\do{% \immediate\write\@auxout{% \string\newlabel{tocindent\@tempa}{% \csname r@tocindent\@tempa\endcsname}{}{}}% }% \endgroup} \let\old@sect\@sect \def\@sect#1#2#3#4#5#6[#7]#8{% \def\@currentlabelname{#7}% \old@sect{#1}{#2}{#3}{#4}{#5}{#6}[{#7}]{\Sectionformat{#8}{#2}}% } \let\old@ssect\@ssect \def\@ssect#1#2#3#4#5{% \def\@currentlabelname{#5}% \old@ssect{#1}{#2}{#3}{#4}{\Sectionformat{#5}{#1}}% } \let\old@part\@part \def\@part[#1]#2{% \def\@currentlabelname{#1}% \old@part[{#1}]{#2}% } \let\old@chapter\@chapter \def\@chapter[#1]#2{% \def\@currentlabelname{#1}% \old@chapter[{#1}]{#2}% } \let\old@schapter\@schapter \def\@schapter#1{% \def\@currentlabelname{#1}% \old@schapter{#1}% } \def\@currentlabelname{} \def\@currentHref{} \long\def\@firstoffour#1#2#3#4{#1} \long\def\@secondoffour#1#2#3#4{#2} \long\def\@thirdoffour#1#2#3#4{#3} \long\def\@fourthoffour#1#2#3#4{#4} \def\T@ref#1{\expandafter\@setref\csname r@#1\endcsname\@firstoffour{#1}} \def\T@pageref#1{\expandafter\@setref\csname r@#1\endcsname \@secondoffour{#1}} \def\ref{\protect\T@ref} \def\pageref{\protect\T@pageref} \def\T@nameref#1{\expandafter\@setref\csname r@#1\endcsname \@thirdoffour{#1}} \def\nameref{\protect\T@nameref} \def\Nameref#1{`\nameref{#1}' on page~\pageref{#1}} \def\Sectionformat#1#2{#1} \def\LouSectionformat#1#2{% \ifnum#2=1 \if@twoside \ifthenelse{\isodd{\thepage}}% {\raggedright}% {\raggedleft}% \else \raggedleft \fi #1 \\[2pt]\rule{\columnwidth}{1.5pt} \else #1 \fi } \endinput %% %% End of file `nameref.sty'.