summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/cybercic
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2015-03-26 21:51:06 +0000
committerKarl Berry <karl@freefriends.org>2015-03-26 21:51:06 +0000
commitefe8dd74ac2303dd4b4977ec4eeadec2f690e017 (patch)
treedb21655c5389da94f9bd799b1d7295beb770eec2 /Master/texmf-dist/tex/latex/cybercic
parent78d21c95ac9354e8bb835a91b8ce0fc17db16a42 (diff)
cybercic (26mar15)
git-svn-id: svn://tug.org/texlive/trunk@36634 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/cybercic')
-rw-r--r--Master/texmf-dist/tex/latex/cybercic/cybercic.sty162
1 files changed, 162 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/cybercic/cybercic.sty b/Master/texmf-dist/tex/latex/cybercic/cybercic.sty
new file mode 100644
index 00000000000..b1426dc1a80
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/cybercic/cybercic.sty
@@ -0,0 +1,162 @@
+%%
+%% 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 <https://github.com/afseo/cmits>, 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 <jared.jennings.ctr@us.af.mil> at the (U.S.) Air
+%% Force SEEK EAGLE Office.
+%%
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{cybercic}
+ [2015/03/21 Bumped version to match cyber]
+\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'.