%% %% This is file `cybercic.sty', %% generated with the docstrip utility. %% %% The original source files were: %% %% cybercic.dtx (with options: `package') %% --- BEGIN DISCLAIMER --- %% Those who use this do so at their own risk; %% AFSEO does not provide maintenance nor support. %% --- END DISCLAIMER --- %% --- BEGIN AFSEO_DATA_RIGHTS --- %% This is a work of the U.S. Government and is placed %% into the public domain in accordance with 17 USC Sec. %% 105. Those who redistribute or derive from this work %% are requested to include a reference to the original, %% at , for example by %% including this notice in its entirety in derived works. %% --- END AFSEO_DATA_RIGHTS --- %% %% This is a generated file. %% %% Copyright and distribution license not yet determined. %% Made in 2012 by Jared Jennings at the (U.S.) Air %% Force SEEK EAGLE Office. %% \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{cybercic} [2015/06/24 Fixed packaging issues] \makeatletter \newif\ifCybercontrolsincontentsenabled \Cybercontrolsincontentsenabledtrue \newcommand \alphpart {pt\Roman{part}} \ifdefined\chapter \newcommand \alphchapter {\alphpart ch\Roman{chapter}} \newcommand \alphsection {\alphchapter se\Roman{section}} \else \newcommand \alphsection {\alphpart se\Roman{section}} \fi \newcommand \alphsubsection {\alphsection su\Roman{subsection}} \newcommand \alphsubsubsection {\alphsubsection ss\Roman{subsubsection}} \newcommand \alphparagraph {\alphsubsubsection p\Roman{paragraph}} \newcommand \alphsubparagraph {\alphparagraph sp\Roman{subparagraph}} \let\skia@orig@sect\@sect \gdef\@sect#1#2#3#4#5#6[#7]#8{% \ifCybercontrolsincontentsenabled \ifnum #2>\c@tocdepth \skia@orig@sect{#1}{#2}{#3}{#4}{#5}{#6}[#7]{#8} \else \edef\last@division{#1\csname alph#1\endcsname} \edef\last@divtitle{\csname titleof\last@division \endcsname} \edef\last@divaddedto{\csname addedto\last@division \endcsname} \expandafter\def\last@divtitle{#7} \skia@orig@sect{#1}{#2}{#3}{#4}{#5}{#6}[\noexpand\csname titleof\last@division\endcsname]{#8} \fi \else \skia@orig@sect{#1}{#2}{#3}{#4}{#5}{#6}[#7]{#8} \fi} \ifdefined\@chapter \let\skia@orig@chapter\@chapter \gdef\@chapter[#1]#2{% \ifCybercontrolsincontentsenabled \edef\last@division{chapter\alphchapter} \edef\last@divtitle{\csname titleof\last@division \endcsname} \edef\last@divaddedto{\csname addedto\last@division \endcsname} \expandafter\def\last@divtitle{#1} \skia@orig@chapter[\noexpand\csname titleof\last@division\endcsname]{#2} \else \skia@orig@chapter[#1]{#2} \fi} \fi % defined @chapter \@ifpackageloaded{hyperref}{% \gdef\addcontentsline#1#2#3{% toc extension, type, tag \begingroup \let\label\@gobble \let\textlatin\@firstofone \ifx\@currentHref\@empty \Hy@Warning{% No destination for bookmark of \string\addcontentsline,% \MessageBreak destination is added% }% \phantomsection \fi \expandafter\ifx\csname toclevel@#2\endcsname\relax \begingroup \def\Hy@tempa{#1}% \ifx\Hy@tempa\Hy@bookmarkstype \Hy@WarningNoLine{bookmark level for unknown #2 defaults to 0}% \else \Hy@Info{bookmark level for unknown #2 defaults to 0}% \fi \endgroup \expandafter\gdef\csname toclevel@#2\endcsname{0}% \fi \edef\Hy@toclevel{\csname toclevel@#2\endcsname}% \let\saved@numberline\numberline \ifHy@bookmarksnumbered \let\numberline\Hy@numberline \else \let\numberline\@gobble \fi \edef\Hy@expandedtag{#3} \let\numberline\saved@numberline \Hy@writebookmark{\csname the#2\endcsname}% {\Hy@expandedtag}% {\@currentHref}% {\Hy@toclevel}% {#1}% \ifHy@verbose \typeout{pdftex: bookmark at \the\inputlineno: {\csname the#2\endcsname} {\Hy@expandedtag} {\@currentHref}% {\Hy@toclevel}% {#1}% }% \fi \addtocontents{#1}{% \protect\contentsline{#2}{#3}{\thepage}{\@currentHref}% }% \endgroup } } \newcommand\su@ExpandTwoArgs[3]{% \protected@edef\su@SubString{#1}% \protected@edef\su@String{#2}% \expandafter\expandafter\expandafter#3% \expandafter\expandafter\expandafter{% \expandafter\su@SubString\expandafter }\expandafter{\su@String}% } \newcommand*\IfSubStringInString[2]{% \su@ExpandTwoArgs{#1}{#2}\su@IfSubStringInString } \newcommand*\su@IfSubStringInString[2]{% \def\su@compare##1#1##2\@nil{% \def\su@param{##2}% \ifx\su@param\@empty \expandafter\@secondoftwo \else \expandafter\@firstoftwo \fi }% \su@compare#2\@nnil#1\@nil } \def\addtosectionname#1{% \def\skia@yes{yes} \expandafter\ifx\last@divaddedto\skia@yes \IfSubStringInString{#1}{\last@divtitle}{}{% \expandafter\edef\last@divtitle{\last@divtitle , #1}% } \else \expandafter\edef\last@divtitle{\last@divtitle ---#1} \fi \expandafter\def\last@divaddedto{yes}} \makeatother \endinput %% %% End of file `cybercic.sty'.