| 1 |
%% |
| 2 |
%% This is file `unidoc.sty', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% universa.dtx (with options: `docpackage') |
| 8 |
%% |
| 9 |
%% Copyright (C) 1998 Christian Holm. |
| 10 |
%% |
| 11 |
%% This file is NOT the source for universal, because almost all |
| 12 |
%% comments have been stripped from it. It is NOT the preferred |
| 13 |
%% form of universal for making modifications to it. |
| 14 |
%% |
| 15 |
%% Therefore you can NOT redistribute and/or modify THIS file. |
| 16 |
%% You can however redistribute the complete source (universa.dtx |
| 17 |
%% and universa.ins) and/or modify it under the terms of the GNU |
| 18 |
%% General Public License as published by the Free Software |
| 19 |
%% Foundation; either version 2, or (at your option) any later |
| 20 |
%% version. |
| 21 |
%% |
| 22 |
%% The universal font and package is distributed in the hope that |
| 23 |
%% it will be useful, but WITHOUT ANY WARRANTY; without even the |
| 24 |
%% implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR |
| 25 |
%% PURPOSE. See the GNU General Public License for more details. |
| 26 |
%% |
| 27 |
%% You should have received a copy of the GNU General Public |
| 28 |
%% License along with this package; if not, write to the |
| 29 |
%% Free Software Foundation, Inc., |
| 30 |
%% 675 Mass Ave, Cambridge, |
| 31 |
%% MA 02139, USA. |
| 32 |
%% |
| 33 |
%% See the file universa.dtx for further comments and documentation. |
| 34 |
%% |
| 35 |
|
| 36 |
\ProvidesPackage{unidoc} |
| 37 |
[\unifiledate\space\unifileversion\space universal documenation package.] |
| 38 |
\newif\ifeepic\eepicfalse |
| 39 |
\DeclareOption*{\PassOptionsToPackage{\CurrentOption}{uni}} |
| 40 |
\ProcessOptions\relax |
| 41 |
\RequirePackage{doc} |
| 42 |
\RequirePackage{mflogo} |
| 43 |
\RequirePackage[colorlinks,% |
| 44 |
linkcolor=red,% |
| 45 |
anchorcolor=black,% |
| 46 |
citecolor=green,% |
| 47 |
filecolor=black,% |
| 48 |
menucolor=black,% |
| 49 |
urlcolor=blue,% |
| 50 |
hyperindex,% |
| 51 |
linktocpage,% |
| 52 |
pdfduplex=duplexFlipLongEdge,% |
| 53 |
a4paper,% |
| 54 |
bookmarks=true]{hyperref} |
| 55 |
\RequirePackage{uni} |
| 56 |
\IfFileExists{eepic.sty}{% |
| 57 |
\RequirePackage{eepic}\eepictrue}{% |
| 58 |
\PackageWarning{unidoc}{`eepic.sty' not found, so there will be no |
| 59 |
pictures - you are warned.}\eepicfalse} |
| 60 |
|
| 61 |
\def\file#1{ |
| 62 |
\def\c@r{#1} |
| 63 |
\c@CodelineNo0 |
| 64 |
\if@filesw |
| 65 |
\immediate\write\@indexfile |
| 66 |
{\string\indexentry{#1=\string\texttt{#1}% |
| 67 |
\string\space(File)}% |
| 68 |
{\thepage}}\fi} |
| 69 |
|
| 70 |
\def\main#1{\texttt{{\small\c@r}:\ #1}} |
| 71 |
|
| 72 |
\def\src#1#2{\texttt{{\small#1}:\ #2}} |
| 73 |
|
| 74 |
\def\fontcodeindex#1{% |
| 75 |
\@bsphack\begingroup\let\_=\protect\_% |
| 76 |
\special@index{% |
| 77 |
\expandafter\string#1\actualchar% |
| 78 |
{\string\FontCodeFont\space#1}% |
| 79 |
\encapchar src{\c@r}}\endgroup\@esphack} |
| 80 |
|
| 81 |
\def\fontmacroindex#1{% |
| 82 |
\@bsphack\begingroup\let\_=\protect\_% |
| 83 |
\special@index{% |
| 84 |
\expandafter\string#1\actualchar% |
| 85 |
{\string\MacroFont\space#1}% |
| 86 |
\encapchar src{\c@r}}\endgroup\@esphack} |
| 87 |
|
| 88 |
\newcount\startfontcodeline |
| 89 |
\newcount\startfontmacroline |
| 90 |
|
| 91 |
\def\fontcode#1{ |
| 92 |
\def\saved@fontname{#1} |
| 93 |
\let\temp@MF\MacroFont\let\MacroFont\FontCodeFont |
| 94 |
\let\temp@PMN\PrintMacroName\let\PrintMacroName\PrintFontName |
| 95 |
\let\temp@SMI\SpecialMainIndex |
| 96 |
\let\SpecialMainIndex\fontcodeindex |
| 97 |
\macro{#1}} |
| 98 |
\def\endfontcode{ |
| 99 |
\endmacro |
| 100 |
\let\MacroFont\temp@MF |
| 101 |
\let\SpecialMainIndex\temp@SMI |
| 102 |
\let\PrintMacroName\temp@PMN} |
| 103 |
\let\FontCodeFont\unibf |
| 104 |
\def\PrintFontName#1{\strut\MacroFont\saved@fontname\ } |
| 105 |
|
| 106 |
\def\fontmacro#1{ |
| 107 |
\let\temp@under\_ |
| 108 |
\let\_\MacroUnderscore |
| 109 |
\let\temp@SMI\SpecialMainIndex |
| 110 |
\let\SpecialMainIndex\fontmacroindex |
| 111 |
\macro{#1}} |
| 112 |
\def\endfontmacro{% |
| 113 |
\endmacro\let\SpecialMainIndex\temp@SMI\let\_\temp@under} |
| 114 |
\def\MacroUnderscore{{\char"5F}} |
| 115 |
|
| 116 |
\let\beginillu\ifeepic |
| 117 |
\let\illuother\else |
| 118 |
\let\endillu\fi |
| 119 |
\def\Newestchanges#1#2#3{ |
| 120 |
\ifx\saved@macroname\@empty% |
| 121 |
\marginpar{\small\raggedright{\sl Change on} #2, {\sl Version} |
| 122 |
\expandafter\@gobble#1} |
| 123 |
\else% |
| 124 |
\llap{$\bullet$\footnote{{\sl Change of } |
| 125 |
{\MacroFont\expandafter\string\saved@macroname} |
| 126 |
{\sl on} #2, {\sl Version }\expandafter\@gobble#1}} |
| 127 |
\fi |
| 128 |
\changes{#1}{#2}{#3}} |
| 129 |
|
| 130 |
\def\Lcs#1{\texttt{\char"5C{}#1}} |
| 131 |
|
| 132 |
\newcount\n\newcount\m\newcount\p\newdimen\dim |
| 133 |
\newif\ifskipping |
| 134 |
\def\oct#1{\hbox{\rm\'{}\kern-.2em\it#1\/\kern.05em}} |
| 135 |
\def\hex#1{\hbox{\rm\H{}\tt#1}} |
| 136 |
|
| 137 |
\def\setdigs#1"#2{\gdef\h{#2} |
| 138 |
\m=\n \divide\m by 64 \xdef\0{\the\m}% |
| 139 |
\multiply\m by-64 \advance\m by\n \divide\m by 8 \xdef\1{\the\m}} |
| 140 |
|
| 141 |
\def\testrow{\setbox0=\hbox{\penalty 1\def\\{\char"\h}% |
| 142 |
\\0\\1\\2\\3\\4\\5\\6\\7\\8\\9\\A\\B\\C\\D\\E\\F% |
| 143 |
\global\p=\lastpenalty}} |
| 144 |
|
| 145 |
\def\oddline{ |
| 146 |
\cr\noalign{\nointerlineskip}\multispan{19}\hrulefill& |
| 147 |
\setbox0=\hbox{\lower 2.3pt\hbox{\hex{\h x}}}\smash{\box0}\cr |
| 148 |
\noalign{\nointerlineskip}} |
| 149 |
|
| 150 |
\def\evenline{ |
| 151 |
\loop\skippingfalse |
| 152 |
\ifnum\n<256 \m=\n \divide\m 16 \chardef\next=\m |
| 153 |
\expandafter\setdigs\meaning\next \testrow |
| 154 |
\ifnum\p=1 \skippingtrue \fi\fi |
| 155 |
\ifskipping \global\advance\n 16\repeat |
| 156 |
\ifnum\n=256 \let\next=\endchart\else\let\next=\morechart\fi |
| 157 |
\next} |
| 158 |
|
| 159 |
\def\morechart{ |
| 160 |
\cr\noalign{\hrule\penalty5000} |
| 161 |
\chartline \oddline \m=\1 \advance\m 1 \xdef\1{\the\m} |
| 162 |
\chartline \evenline} |
| 163 |
|
| 164 |
\def\chartline{&\oct{\0\1x}&&\:&&\:&&\:&&\:&&\:&&\:&&\:&&\:&&} |
| 165 |
\def\chartstrut{\lower4.5pt\vbox to14pt{}} |
| 166 |
|
| 167 |
\def\:{\setbox0=\hbox{\char\n}% |
| 168 |
\ifdim\ht0>7.5pt\reposition |
| 169 |
\else\ifdim\dp0>2.5pt\reposition\fi\fi |
| 170 |
\box0\global\advance\n 1 } |
| 171 |
\def\reposition{ |
| 172 |
\setbox0=\vbox{\kern2pt\box0}\dim=\dp0 |
| 173 |
\advance\dim 2pt \dp0=\dim} |
| 174 |
\def\centerlargechars{ |
| 175 |
\def\reposition{\setbox0=\hbox{$\vcenter{\kern2pt\box0\kern2pt}$}}} |
| 176 |
|
| 177 |
\def\chart{$$\global\n=0 |
| 178 |
\halign to\hsize\bgroup |
| 179 |
\chartstrut##\tabskip0pt plus10pt&&\hfil##\hfil&\vrule##\cr |
| 180 |
\lower6.5pt\null&&& |
| 181 |
\oct0&&\oct1&&\oct2&&\oct3&&\oct4&&\oct5&&\oct6&&\oct7&\evenline} |
| 182 |
\def\endchart{ |
| 183 |
\cr\noalign{\hrule} |
| 184 |
\raise11.5pt\null&&&\hex 8&&\hex 9&&\hex A&&\hex B& |
| 185 |
&\hex C&&\hex D&&\hex E&&\hex F&\cr |
| 186 |
\egroup$$\par} |
| 187 |
|
| 188 |
\def\FontChart#1#2{ |
| 189 |
%% \marginpar{\small\raggedright Letters and symbols in \texttt{#1} |
| 190 |
%% font.} |
| 191 |
\begin{figure}[htbp] |
| 192 |
\begingroup |
| 193 |
\font\chart@font=#1 |
| 194 |
\chart@font |
| 195 |
\chart |
| 196 |
\endgroup |
| 197 |
\caption{Letters and symbols in \texttt{#1} --- #2} |
| 198 |
\label{fig:font:#1} |
| 199 |
\end{figure}} |
| 200 |
|
| 201 |
\IndexPrologue{% |
| 202 |
\section{Index}\markboth{Index}{Index} |
| 203 |
The Numbers written in \textit{italic} refer to the pages, where |
| 204 |
a macros usage is descriped, while those in \texttt{typewrite} refer |
| 205 |
to line numbers in the files, mentioned before, where the definition |
| 206 |
is, while \textsl{slanted} shows the places it is used. Normal letters |
| 207 |
refer to pages, wether it be descriptions or usage.} |
| 208 |
\GlossaryPrologue{% |
| 209 |
\section{Change History}\markboth{Change History}{Change History} |
| 210 |
Below is listed the changes made to the \universal{} font and the |
| 211 |
\LaTeX{} support package \textsf{uni}, from version~1.0 to 2.0.} |
| 212 |
|
| 213 |
\setcounter{IndexColumns}{2} |
| 214 |
|
| 215 |
\DoNotIndex{\@bsphack,\@empty,\@esphack,\@gobble,\@ifnextchar,% |
| 216 |
\@ifundefined,\@indexfile,\@onlypreamble,\iffalse,\_,\,\accent,% |
| 217 |
\aftergroup,\actualchar,\advance,\begin,\begingroup,\bgroup,% |
| 218 |
\box,\bullet,\changes,\char,\chardef,\CheckModules,\CodeLineIndex,% |
| 219 |
\cr,\crcr,\csname,\DeclareFontFamily,\DeclareFontShape,\DeclareMacro,% |
| 220 |
\dim,\divide,\dp,\DeclareOption,\def,\DoNotIndex,\edef,\egroup,\else,% |
| 221 |
\end,\endcsname,\EnableCrossrefs,\encapchar,\endgroup,\endmacro,% |
| 222 |
\expandafter,\fbox,\fi,\font,\footnote,\fontemcoding,\fontfamuliy,% |
| 223 |
\fontseries,\fontshape,\gdef,\global,\H,\h,\halign,\hbox,\hfil,% |
| 224 |
\hidewidth,\hrule,\hrulefill,\hsize,\ht,\hyphenchar,\if@filesw,% |
| 225 |
\ifdim,\IfFileExists,\ifnum,\ifskipping,\ifx,\immediate,\indexentry,% |
| 226 |
\it,\itdefault,\kern,\lastpenalty,\LaTeX,\LaTeXe,\leavevmode,\let,% |
| 227 |
\llap,\loop,\lower,\m,\macro,\MacroFont,\marginpar,\marginparwidth,% |
| 228 |
\markboth,\mdseries,\meaning,\multiply,\multispan,\n,\newcommand,% |
| 229 |
\newcount,\newdimen,\newif,\newline,\next,\noalign,\noexpand,% |
| 230 |
\nointerlineskip,\not@math@alphabet,\null,\ooalign,\p,\par,\penalty,% |
| 231 |
\ProcessOptions,\protect,\ProvidesFile,\ProvidesPackage,% |
| 232 |
\RecordChanges,\raggedright,\raise,\relax,\renewcommand,\repeat,% |
| 233 |
\RequirePackage,\rm,\saved@macroname,\scshape,\section,\selectfont,% |
| 234 |
\setcounter,\setbox,\show,\skippingfalse,\skippingture,\sl,\slshape,% |
| 235 |
\small,\smash,\space,\special@index,\SpecialMainIndex,\stop,\string,% |
| 236 |
\strut,\tabskip,\TeX,\TeXbook,\textit,\textsf,\textsl,\texttt,\the,% |
| 237 |
\thepage,\tt,\typeout,\unhbox,\universal,\upshape,\usefont,\vbox,% |
| 238 |
\vcenter,\vrule,\write,\xdef,\z@,\PackageError,\PackageWarning, |
| 239 |
\PassOptionsToPackage,\GlossaryPrologue,\',\0,\1,\bfseries, |
| 240 |
\centerlargechars,\DeclareRobustCommand,\DeclareTextFontCommand, |
| 241 |
\ExecuteOptions,\familydefault,\fontencoding,\fontfamily,\hex,\oct, |
| 242 |
\IndexPrologue,\oddline} |
| 243 |
|
| 244 |
\EnableCrossrefs |
| 245 |
\CodelineIndex |
| 246 |
\RecordChanges |
| 247 |
\CheckModules |
| 248 |
\marginparwidth=54pt |
| 249 |
\newcommand{\NFSS}{\textsf{NFSS}} |
| 250 |
\newcommand{\ftnguide}{\textit{\LaTeXe{} Font Selection}} |
| 251 |
\newcommand{\clsguide}{ \textit{\LaTeXe{} for Class and Packages |
| 252 |
Writers}} \newcommand{\TeXbook}{\TeX\textsf{book}} |
| 253 |
\newcommand{\MFbook}{\MF\textsf{book}} |
| 254 |
\newcommand{\universal}{\textunibf{universal}} |
| 255 |
|
| 256 |
\endinput |
| 257 |
%% |
| 258 |
%% End of file `unidoc.sty'. |