| 1 |
%^^A manfnt.dtx --- doc source file for manfnt.sty -*-LaTeX-*- |
| 2 |
% \iffalse meta-comment |
| 3 |
%% Copyright (C) 1998 - 99 by Axel Kielhorn, all rights reserved |
| 4 |
%% Copyright (C) 1999 by Denis Kosygin, all rights reserved. |
| 5 |
%% |
| 6 |
%% This program can be redistributed and/or modified under the terms |
| 7 |
%% of the LaTeX Project Public License Distributed from CTAN |
| 8 |
%% archives in directory macros/latex/base/lppl.txt; either |
| 9 |
%% version 1 of the License, or any later version. |
| 10 |
% \fi |
| 11 |
% \CheckSum{118} |
| 12 |
% \iffalse |
| 13 |
% Below we define the release date and version of manfnt for which |
| 14 |
% this documentation is written. |
| 15 |
% \fi |
| 16 |
\def\fileversion{0.2} |
| 17 |
\def\filedate{1999/07/01} |
| 18 |
% \iffalse |
| 19 |
% Keep the definitions above uncommented and before the rest of the |
| 20 |
% package code so that the docstrip sticks them first in manfnt.sty. |
| 21 |
% Use \def to avoid conflicts with definitions \fileversion and |
| 22 |
% \filedate in other packages. |
| 23 |
% Keep them near the beginning and only in one place so that it is |
| 24 |
% easy to find them and modify for new releases. |
| 25 |
% Do not hide them from doc module, so that the numbers in |
| 26 |
% documentation are consistent with the numbers in manfnt.sty. |
| 27 |
% Do not enclose them in macrocode environment, as it inserts them in |
| 28 |
% the documentation too early. The beginning of section `Code' is |
| 29 |
% hacked to reflect their presence in manfnt.sty |
| 30 |
% \fi |
| 31 |
% \newcommand{\fixme}[1][FIXME!]{\texttt{#1}} |
| 32 |
% \newcommand{\docdate}{1999/07/01} |
| 33 |
% \iffalse |
| 34 |
% \docdate definition is hidden from docstrip because it is relevant |
| 35 |
% only in the documentation. |
| 36 |
% Keep it before \maketitle, so that the documentation date is correct. |
| 37 |
% If this package is ever archived with version control, perhaps it is |
| 38 |
% worthwhile to hack the archiving program to automatically update |
| 39 |
% \docdate whenever the current file changes. |
| 40 |
% \fi |
| 41 |
% |
| 42 |
% \changes{0.1}{\fixme}{Initial version} |
| 43 |
% \changes{0.2}{1997/06/10}{More symbol names added. Commands |
| 44 |
% \cmd{\manfntsymbol} and \cmd{\texdbend} (with variations).} |
| 45 |
% |
| 46 |
% \title{The \texttt{Manfnt} package\\ |
| 47 |
% A quick way to access the symbols in manfnt\thanks{This manual |
| 48 |
% documents version \fileversion{} released on \filedate{}.}} |
| 49 |
% \author{Axel Kielhorn\thanks{With additions by Denis Kosygin.}} |
| 50 |
% \renewcommand{\today}{\docdate} |
| 51 |
% \maketitle |
| 52 |
% |
| 53 |
% \iffalse |
| 54 |
% Below we hide the driver from doc module. |
| 55 |
% We still follow the doc conventions in case we decide later to |
| 56 |
% include the driver in the manual or to extract it into a separate |
| 57 |
% file with docstrip. |
| 58 |
% \fi |
| 59 |
% \iffalse |
| 60 |
% \section{Driver for \texttt{manfnt}} |
| 61 |
% \begin{macrocode} |
| 62 |
%<*driver> |
| 63 |
\documentclass{ltxdoc} |
| 64 |
\usepackage{manfnt} |
| 65 |
\begin{document} |
| 66 |
\DocInput{manfnt.dtx} |
| 67 |
\end{document} |
| 68 |
%</driver> |
| 69 |
% \end{macrocode} |
| 70 |
% \fi |
| 71 |
% |
| 72 |
% \section{Introduction} |
| 73 |
% The \TeX{} and metafont manuals use some special symbols not found in |
| 74 |
% the normal CM-fonts. Most of these symbols will be of little use for |
| 75 |
% the average author, but some, like the ``Dangerous Bend'' sign may be |
| 76 |
% approriate for some textbooks. |
| 77 |
% |
| 78 |
% Since there is no easy way to access these symbols I wrote a small |
| 79 |
% package which I distributed with my \texttt{refman} package. I didn't |
| 80 |
% expect much response and was quite surprised to get a mail from Denis |
| 81 |
% Kosygin who suggested some improvements. He also suggested releasing |
| 82 |
% it a stand-alone package, thus forcing me to write some |
| 83 |
% documentation\texttt{:-)} |
| 84 |
% |
| 85 |
% \subsection*{A word of caution} |
| 86 |
% Please use the symbols from this package sparingly. |
| 87 |
% Their unusual shapes attract attention, which means also |
| 88 |
% that they distract the reader from the main text. For any advice |
| 89 |
% how to write well there is a brilliant example, where it was not |
| 90 |
% followed. Still, in general, restraining means of expression |
| 91 |
% improves the overall aesthetic quality. |
| 92 |
% |
| 93 |
% This point of view is reflected in the design of \texttt{manfnt}. |
| 94 |
% In particular, that was the reason, why there are no switches to |
| 95 |
% manfnt similar to \cmd{\textrm} or \cmd{\rmfamily}. |
| 96 |
% |
| 97 |
% \section{The symbols} |
| 98 |
% |
| 99 |
% \DescribeMacro{\manfntsymbol} |
| 100 |
% To access a symbol in manfnt by its |
| 101 |
% code say \cmd{\manfntsymbol}\marg{code}. Symbol codes are shown in |
| 102 |
% a table at the end of this manual. Recall that in \TeX{} octal |
| 103 |
% codes begin with |'| and hexadecimal codes with |"|. |
| 104 |
% |
| 105 |
% Some symbols with ``interesting'' shapes are named to alleviate the |
| 106 |
% burden of looking up their codes. Their names are listed at the end |
| 107 |
% of this manual. |
| 108 |
% |
| 109 |
% \subsection*{The dangerous bends} |
| 110 |
% \newcommand{\danger}{\marginpar[\hfill\dbend]{\dbend\hfill}} |
| 111 |
% \newenvironment{example}{\smallskip\begin{trivlist}\item[]} |
| 112 |
% {\end{trivlist}\smallskip} |
| 113 |
% As shown below, if \danger\cmd{\dbend} is used directly in a text, |
| 114 |
% \LaTeX{} will place the center of the sign plate on the baseline. As |
| 115 |
% the result, the sign pole may overlap with the contents of the next |
| 116 |
% line\footnote{The reason for such design can be seen in the \TeX{}book |
| 117 |
% by D.~Knuth \cite{book:knuth}. There in ``dangerous bend'' |
| 118 |
% paragraphs the ``ground level'' of the sign is the base of the |
| 119 |
% next line. Special arrangments (which are beyond the scope of |
| 120 |
% this manual) are needed to produce similar effect in a \LaTeX{} |
| 121 |
% document.}. |
| 122 |
% \begin{example} |
| 123 |
% \newlength{\myminipagesep} |
| 124 |
% \newlength{\myminipagewidth} |
| 125 |
% \setlength{\myminipagewidth}{.5\textwidth} |
| 126 |
% \addtolength{\myminipagewidth}{-2.5em} |
| 127 |
% \begin{minipage}{\myminipagewidth} |
| 128 |
% Here is an example of an unfortunate use of \dbend. The text on |
| 129 |
% the next line is partially obscured by the sign pole. |
| 130 |
% \end{minipage} |
| 131 |
% \hspace{1em}^^A |
| 132 |
% \addtolength{\myminipagewidth}{3.5em}^^A |
| 133 |
% \begin{minipage}{\myminipagewidth} |
| 134 |
%\begin{verbatim} |
| 135 |
%Here is an example of an unfortunate |
| 136 |
%use of \dbend. The text on the next |
| 137 |
%line is partially obscured by |
| 138 |
%the sign pole. |
| 139 |
%\end{verbatim} |
| 140 |
% \end{minipage} |
| 141 |
% \end{example} |
| 142 |
% A better approach is illustrated in the beginning of this paragraph, |
| 143 |
% where the dangerous bend sign is placed on the text margins. This was |
| 144 |
% achieved with the help of the command~\cmd{\danger}\footnote{In |
| 145 |
% general you should design your own commands for using this symbol, |
| 146 |
% which reflect the meaning you assign to it. Book~\cite{book:lamport} on |
| 147 |
% \LaTeX{} by~L.~Lamport explains how to place text on margins.}, |
| 148 |
% defined in \texttt{manfnt.dtx}: |
| 149 |
%\begin{verbatim} |
| 150 |
%\newcommand{\danger}{\marginpar[\hfill\dbend]{\dbend\hfill}} |
| 151 |
%\end{verbatim} |
| 152 |
% The first sentence of the current paragraph was entered into the |
| 153 |
% source as |
| 154 |
% \begin{example} |
| 155 |
%\begin{verbatim} |
| 156 |
% As shown below, if \danger\cmd{\dbend} is used directly in a text, |
| 157 |
% \LaTeX{} will place the center of the sign plate on the baseline. |
| 158 |
%\end{verbatim} |
| 159 |
% \end{example} |
| 160 |
% |
| 161 |
% \DescribeMacro{\textdbend} |
| 162 |
% \DescribeMacro{\textlhdbend} |
| 163 |
% \DescribeMacro{\textreversedvideodbend} |
| 164 |
% For rare occasions, when you do need to include \textdbend{} into a |
| 165 |
% line of text, \texttt{manfnt} provides command~\cmd{\textdbend}, |
| 166 |
% which raises the ``ground level'' of the sign to the base line making |
| 167 |
% it suitable for inclusion. For example, the dangerous bend sign in |
| 168 |
% the previous sentence was produced by~\cmd{\textdbend}. Commands |
| 169 |
% \cmd{\textlhdbend} and \cmd{\textreversedvideodbend} act similarly. |
| 170 |
% \iffalse |
| 171 |
% We delay the printing of bibliography and tables until the end of |
| 172 |
% the document. |
| 173 |
% Below we define few commands which are used only in tables. |
| 174 |
% We also make | an ordinary character again, since it has a special |
| 175 |
% meaning in tables. |
| 176 |
% \fi |
| 177 |
% \renewcommand{\caption}[1]{\textbf{\large #1}\bigskip\bigskip} |
| 178 |
% \newcommand{\subcaptionsep}{1ex} |
| 179 |
% \newcommand{\subtablesep}{2.5ex} |
| 180 |
% \newcommand{\subcaption}[1]{\textbf{#1}} |
| 181 |
% \DeleteShortVerb{\|} |
| 182 |
% \StopEventually{ |
| 183 |
% \bibliographystyle{plain} |
| 184 |
% \begin{thebibliography}{1} |
| 185 |
% \bibitem{book:knuth} D.\ E.\ Knuth. |
| 186 |
% \newblock {\em The \TeX{}book}. |
| 187 |
% \newblock Addison-Wesley, Reading, Massachusetts, 1994. |
| 188 |
% \bibitem{book:lamport} L.\ Lamport. |
| 189 |
% \newblock {\em \LaTeX: a document preparation system}, -- 2nd ed. |
| 190 |
% \newblock Addison-Wesley, Reading, Massachusetts, 1994. |
| 191 |
% \end{thebibliography} |
| 192 |
% \begin{table}[p] |
| 193 |
% \begin{center} |
| 194 |
% \caption{Symbols in manfnt} |
| 195 |
% \begin{tabular}{c|c|c|c|c|c|c|c|c|c} |
| 196 |
% \textit{x} |
| 197 |
% & \textit{'0} & \textit{'1} & \textit{'2} & \textit{'3} |
| 198 |
% & \textit{'4} & \textit{'5} & \textit{'6} & \textit{'7} |
| 199 |
% & \\ \hline |
| 200 |
% \textit{'00x} & |
| 201 |
% \manfntsymbol{'000} & \manfntsymbol{'001} & |
| 202 |
% \manfntsymbol{'002} & \manfntsymbol{'003} & |
| 203 |
% \manfntsymbol{'004} & \manfntsymbol{'005} & |
| 204 |
% \manfntsymbol{'006} & \manfntsymbol{'007} & \rule[-3ex]{0pt}{5ex} |
| 205 |
% \texttt{"0x} \\ \cline{1-9} |
| 206 |
% \textit{'01x} & |
| 207 |
% \manfntsymbol{'010} & \manfntsymbol{'011} & |
| 208 |
% \manfntsymbol{'012} & \manfntsymbol{'013} & |
| 209 |
% \manfntsymbol{'014} & \manfntsymbol{'015} & |
| 210 |
% \manfntsymbol{'016} & \manfntsymbol{'017} & |
| 211 |
% \texttt{"0y} \\ \hline |
| 212 |
% \textit{'02x} & |
| 213 |
% \manfntsymbol{'020} & \manfntsymbol{'021} & |
| 214 |
% \manfntsymbol{'022} & \manfntsymbol{'023} & |
| 215 |
% \manfntsymbol{'024} & \manfntsymbol{'025} & |
| 216 |
% \manfntsymbol{'026} & \manfntsymbol{'027} & |
| 217 |
% \texttt{"1x} \\ \cline{1-9} |
| 218 |
% \textit{'03x} & |
| 219 |
% \manfntsymbol{'030} & \manfntsymbol{'031} & |
| 220 |
% \manfntsymbol{'032} & \manfntsymbol{'033} & |
| 221 |
% \manfntsymbol{'034} & \manfntsymbol{'035} & |
| 222 |
% \manfntsymbol{'036} & \manfntsymbol{'037} & |
| 223 |
% \texttt{"1y} \\ \hline |
| 224 |
% \textit{'04x} & |
| 225 |
% \manfntsymbol{'040} & \manfntsymbol{'041} & |
| 226 |
% \manfntsymbol{'042} & \manfntsymbol{'043} & |
| 227 |
% \manfntsymbol{'044} & \manfntsymbol{'045} & |
| 228 |
% \manfntsymbol{'046} & \manfntsymbol{'047} & |
| 229 |
% \texttt{"2x} \\ \cline{1-9} |
| 230 |
% \textit{'05x} & |
| 231 |
% \manfntsymbol{'050} & \manfntsymbol{'051} & |
| 232 |
% \manfntsymbol{'052} & \manfntsymbol{'053} & |
| 233 |
% \manfntsymbol{'054} & \manfntsymbol{'055} & |
| 234 |
% \manfntsymbol{'056} & \manfntsymbol{'057} & |
| 235 |
% \texttt{"2y} \\ \hline |
| 236 |
% \textit{'06x} & |
| 237 |
% \manfntsymbol{'060} & \manfntsymbol{'061} & |
| 238 |
% \manfntsymbol{'062} & \manfntsymbol{'063} & |
| 239 |
% \manfntsymbol{'064} & \manfntsymbol{'065} & |
| 240 |
% \manfntsymbol{'066} & \manfntsymbol{'067} & |
| 241 |
% \texttt{"3x} \\ \cline{1-9} |
| 242 |
% \textit{'07x} & |
| 243 |
% \manfntsymbol{'070} & \manfntsymbol{'071} & |
| 244 |
% \manfntsymbol{'072} & \manfntsymbol{'073} & |
| 245 |
% \manfntsymbol{'074} & \manfntsymbol{'075} & |
| 246 |
% \manfntsymbol{'076} & \manfntsymbol{'077} & |
| 247 |
% \texttt{"3y} \\ \hline |
| 248 |
% \textit{'10x} & |
| 249 |
% \manfntsymbol{'100} & \manfntsymbol{'101} & |
| 250 |
% \manfntsymbol{'102} & \manfntsymbol{'103} & |
| 251 |
% \manfntsymbol{'104} & \manfntsymbol{'105} & |
| 252 |
% \manfntsymbol{'106} & \manfntsymbol{'107} & |
| 253 |
% \texttt{"4x} \\ \cline{1-9} |
| 254 |
% \textit{'11x} & |
| 255 |
% \manfntsymbol{'110} & \manfntsymbol{'111} & |
| 256 |
% \manfntsymbol{'112} & \manfntsymbol{'113} & |
| 257 |
% \manfntsymbol{'114} & \manfntsymbol{'115} & |
| 258 |
% \manfntsymbol{'116} & \manfntsymbol{'117} & |
| 259 |
% \texttt{"4y} \\ \hline |
| 260 |
% \textit{'12x} & |
| 261 |
% \manfntsymbol{'120} & \manfntsymbol{'121} & |
| 262 |
% \manfntsymbol{'122} & \manfntsymbol{'123} & |
| 263 |
% \manfntsymbol{'124} & \manfntsymbol{'125} & |
| 264 |
% \manfntsymbol{'126} & \manfntsymbol{'127} & |
| 265 |
% \texttt{"5x} \\ \cline{1-9} |
| 266 |
% \textit{'13x} & |
| 267 |
% \manfntsymbol{'130} & \manfntsymbol{'131} & |
| 268 |
% \manfntsymbol{'132} & \manfntsymbol{'133} & |
| 269 |
% \manfntsymbol{'134} & \manfntsymbol{'135} & |
| 270 |
% \manfntsymbol{'136} & \manfntsymbol{'137} & |
| 271 |
% \texttt{"5y} \\ \hline |
| 272 |
% \textit{'14x} & |
| 273 |
% \manfntsymbol{'140} & \manfntsymbol{'141} & |
| 274 |
% \manfntsymbol{'142} & \manfntsymbol{'143} & |
| 275 |
% \manfntsymbol{'144} & \manfntsymbol{'145} & |
| 276 |
% \manfntsymbol{'146} & \manfntsymbol{'147} & |
| 277 |
% \texttt{"6x} \\ \cline{1-9} |
| 278 |
% \textit{'15x} & |
| 279 |
% \manfntsymbol{'150} & \manfntsymbol{'151} & |
| 280 |
% \manfntsymbol{'152} & \manfntsymbol{'153} & |
| 281 |
% \manfntsymbol{'154} & \manfntsymbol{'155} & |
| 282 |
% \manfntsymbol{'156} & \manfntsymbol{'157} & |
| 283 |
% \texttt{"6y} \\ \hline |
| 284 |
% \textit{'16x} & |
| 285 |
% \manfntsymbol{'160} & \manfntsymbol{'161} & |
| 286 |
% \manfntsymbol{'162} & \manfntsymbol{'163} & |
| 287 |
% \manfntsymbol{'164} & \manfntsymbol{'165} & |
| 288 |
% \manfntsymbol{'166} & \manfntsymbol{'167} & |
| 289 |
% \texttt{"7x} \\ \cline{1-9} |
| 290 |
% \textit{'17x} & |
| 291 |
% \manfntsymbol{'170} & \manfntsymbol{'171} & |
| 292 |
% \manfntsymbol{'172} & \manfntsymbol{'173} & |
| 293 |
% \manfntsymbol{'174} & \manfntsymbol{'175} & |
| 294 |
% \manfntsymbol{'176} & \manfntsymbol{'177} & \rule[-3ex]{0pt}{5ex} |
| 295 |
% \texttt{"7y}\\\hline |
| 296 |
% & \texttt{"8} & \texttt{"9} & \texttt{"A} & \texttt{"B} |
| 297 |
% & \texttt{"C} & \texttt{"D} & \texttt{"E} & \texttt{"F} |
| 298 |
% & \texttt{y} |
| 299 |
% \end{tabular} |
| 300 |
% \end{center} |
| 301 |
% \end{table} |
| 302 |
% \begin{table}[p] |
| 303 |
% \begin{center} |
| 304 |
% \caption{Symbol names in \texttt{manfnt}} |
| 305 |
% \begin{tabular}{clcl} |
| 306 |
% \multicolumn{4}{l}{\subcaption{Pen nibs}}\\[\subcaptionsep] |
| 307 |
% \manhpennib & \cmd{\manhpennib} & |
| 308 |
% \mantiltpennib & \cmd{\mantiltpennib} \\ |
| 309 |
% \manvpennib & \cmd{\manvpennib} & & \\[\subtablesep] |
| 310 |
% \multicolumn{4}{l}{\subcaption{Triangles}} \\[\subcaptionsep] |
| 311 |
% \mantriangleup & \cmd{\mantriangleup} & |
| 312 |
% \mantriangleright & \cmd{\mantriangleright}\\ |
| 313 |
% \mantriangledown & \cmd{\mantriangledown} & & \\[\subtablesep] |
| 314 |
% \multicolumn{4}{l}{\subcaption{Kidney beans}} \\[\subcaptionsep] |
| 315 |
% \mankidney & \cmd{\mankidney} & |
| 316 |
% \manpenkidney & \cmd{\manpenkidney} \\ |
| 317 |
% \manboldkidney & \cmd{\manboldkidney} & |
| 318 |
% \manlhpenkidney & \cmd{\manlhpenkidney} \\[\subtablesep] |
| 319 |
% \multicolumn{4}{l}{\subcaption{Circle variations}} \\[\subcaptionsep] |
| 320 |
% \manquartercircle & \cmd{\manquartercircle} & |
| 321 |
% \manfilledquartercircle & \cmd{\manfilledquartercircle} \\ |
| 322 |
% \manrotatedquartercircle & \cmd{\manrotatedquartercircle} & |
| 323 |
% \mancone & \cmd{\mancone} \\ |
| 324 |
% \manconcentriccircles & \cmd{\manconcentriccircles} & |
| 325 |
% \manconcentricdiamond & \cmd{\manconcentricdiamond} \\[\subtablesep] |
| 326 |
% \multicolumn{4}{l}{\subcaption{Cubes}}\\[\subcaptionsep] |
| 327 |
% \mancube & \cmd{\mancube} & |
| 328 |
% \manimpossiblecube & \cmd{\manimpossiblecube}\\[\subtablesep] |
| 329 |
% \multicolumn{4}{l}{\subcaption{Quadrifoliums}}\\[\subcaptionsep] |
| 330 |
% \manquadrifolium & \cmd{\manquadrifolium} & |
| 331 |
% \manrotatedquadrifolium & \cmd{\manrotatedquadrifolium}\\[\subtablesep] |
| 332 |
% \multicolumn{4}{l}{\subcaption{Miscellaneous symbols}} |
| 333 |
% \\[\subcaptionsep] |
| 334 |
% \manstar & \cmd{\manstar} & |
| 335 |
% \manerrarrow & \cmd{\manerrarrow} \\[\subtablesep] |
| 336 |
% \multicolumn{4}{l}{\subcaption{Dangerous bend signs}}\\[\subcaptionsep] |
| 337 |
% \dbend & \cmd{\dbend} & |
| 338 |
% \reversedvideodbend & \cmd{\reversedvideodbend} \\[2ex] |
| 339 |
% \lhdbend & \cmd{\lhdbend} & \\[2ex] |
| 340 |
% \end{tabular} |
| 341 |
% \end{center} |
| 342 |
% \end{table} |
| 343 |
%} |
| 344 |
%\MakeShortVerb{\|} ^^A End of \StopEventually. Restore the settings. |
| 345 |
% |
| 346 |
% \section{Code} |
| 347 |
% \subsection{Identification part} |
| 348 |
% \iffalse |
| 349 |
% In principle, definitions of \fileversion and \filedate ought to be |
| 350 |
% here. Since we have moved them to the beginning of the file for |
| 351 |
% practical reasons, we need to hack the beginning of this section to |
| 352 |
% show that they are in manfnt.sty and to fix the line numbering of code. |
| 353 |
% The block below fakes the definitions of \fileversion and \filedate. |
| 354 |
% To trick docstrip we bury them in <false> tags and hide the tags from |
| 355 |
% the doc module in meta-comments. |
| 356 |
% \fi |
| 357 |
% \iffalse |
| 358 |
%<*false> |
| 359 |
%\fi |
| 360 |
% \begin{macro}{\fileversion} |
| 361 |
% \begin{macro}{\filedate} |
| 362 |
% For technical reasons the definitions of \cmd{\fileversion} and |
| 363 |
% \cmd{\filedate} are left blank in the documentation. In the actual |
| 364 |
% \texttt{manfnt.sty} they are filled with current values (\fileversion{} and |
| 365 |
% \filedate{} respectively). |
| 366 |
% They are also shown on the title page of this manual. |
| 367 |
% \begin{macrocode} |
| 368 |
\def\fileversion{} |
| 369 |
\def\filedate{} |
| 370 |
% \end{macrocode} |
| 371 |
% \end{macro} |
| 372 |
% \end{macro} |
| 373 |
% \iffalse |
| 374 |
%</false> |
| 375 |
% \fi |
| 376 |
% \begin{macrocode} |
| 377 |
\NeedsTeXFormat{LaTeX2e} |
| 378 |
\ProvidesPackage{manfnt}[\filedate \fileversion LaTeX2e manfnt package] |
| 379 |
% \end{macrocode} |
| 380 |
% |
| 381 |
% \subsection{Options} |
| 382 |
% Currently no options are supported by this package. |
| 383 |
% |
| 384 |
% \subsection{Main code} |
| 385 |
% \subsubsection{Declaration of fonts} |
| 386 |
% \begin{macrocode} |
| 387 |
\DeclareFontFamily{U}{manual}{} |
| 388 |
\DeclareFontShape{U}{manual}{m}{n}{ <-> manfnt }{} |
| 389 |
% \end{macrocode} |
| 390 |
% \begin{macro}{\manfntsymbol} |
| 391 |
% Generally speaking \cmd{\manfntsymbol} must select font shape and |
| 392 |
% series too, in order to work correctly, since only normal shape and |
| 393 |
% medium series are provided. Instead we rely implicitely on default |
| 394 |
% behaviour of \LaTeX{} font substitution mechanism. |
| 395 |
% \begin{macrocode} |
| 396 |
\newcommand{\manfntsymbol}[1]{% |
| 397 |
{\fontencoding{U}\fontfamily{manual}\selectfont\symbol{#1}}} |
| 398 |
% \end{macrocode} |
| 399 |
% \end{macro} |
| 400 |
% |
| 401 |
% \subsubsection{Symbol names} |
| 402 |
% The names with few exceptions are derived from the corresponding |
| 403 |
% definitions in \texttt{manfnt.mf}. |
| 404 |
% \begin{macrocode} |
| 405 |
\newcommand{\manhpennib}{\manfntsymbol{21}} |
| 406 |
\newcommand{\mantiltpennib}{\manfntsymbol{22}} |
| 407 |
\newcommand{\manvpennib}{\manfntsymbol{23}} |
| 408 |
\newcommand{\mankidney}{\manfntsymbol{17}} |
| 409 |
\newcommand{\manboldkidney}{\manfntsymbol{18}} |
| 410 |
\newcommand{\manpenkidney}{\manfntsymbol{19}} |
| 411 |
\newcommand{\manlhpenkidney}{\manfntsymbol{20}} |
| 412 |
\newcommand{\manquartercircle}{\manfntsymbol{32}} |
| 413 |
\newcommand{\manfilledquartercircle}{\manfntsymbol{33}} |
| 414 |
\newcommand{\manrotatedquartercircle}{\manfntsymbol{34}} |
| 415 |
\newcommand{\mancone}{\manfntsymbol{35}} |
| 416 |
\newcommand{\manconcentriccircles}{\manfntsymbol{36}} |
| 417 |
\newcommand{\manconcentricdiamond}{\manfntsymbol{37}} |
| 418 |
\newcommand{\mantriangleright}{\manfntsymbol{120}}% Triangle for exercises |
| 419 |
\newcommand{\mantriangleup}{% Upper triangle for Addison-Wesley logo |
| 420 |
\manfntsymbol{54}} |
| 421 |
\newcommand{\mantriangledown}{% Lower triangle for Addison-Wesley logo |
| 422 |
\manfntsymbol{55}} |
| 423 |
\newcommand{\mancube}{\manfntsymbol{28}} |
| 424 |
\newcommand{\manimpossiblecube}{\manfntsymbol{29}} |
| 425 |
\newcommand{\manquadrifolium}{\manfntsymbol{38}}% \fouru |
| 426 |
\newcommand{\manrotatedquadrifolium}{\manfntsymbol{39}}% \fourc |
| 427 |
\newcommand{\manstar}{\manfntsymbol{30}}% Bicentennial star |
| 428 |
\newcommand{\manerrarrow}{\manfntsymbol{121}}% Arrow for errata lists |
| 429 |
\newcommand{\dbend}{\manfntsymbol{127}}% Z-shaped |
| 430 |
\newcommand{\lhdbend}{\manfntsymbol{126}}% Lefthanded (S-shaped) |
| 431 |
\newcommand{\reversedvideodbend}{\manfntsymbol{0}}% Reversed video |
| 432 |
% \end{macrocode} |
| 433 |
% |
| 434 |
% \subsubsection{Other commands} |
| 435 |
% \begin{macro}{\textdbend} |
| 436 |
% \begin{macro}{\textlhdbend} |
| 437 |
% \begin{macro}{\textreversedvideodbend} |
| 438 |
% User level commands \cmd{\textdbend}, \cmd{\textlhdbend} |
| 439 |
% and \cmd{\textreversedvideodbend} just provide the appropriate |
| 440 |
% argument to~\cmd{\text@dbend} which does the actual work. |
| 441 |
% \begin{macrocode} |
| 442 |
\newcommand{\textdbend}{\text@dbend{\dbend}} |
| 443 |
\newcommand{\textlhdbend}{\text@dbend{\lhdbend}} |
| 444 |
\newcommand{\textreversedvideodbend}{\text@dbend{\reversedvideodbend}} |
| 445 |
% \end{macrocode} |
| 446 |
% \end{macro} |
| 447 |
% \end{macro} |
| 448 |
% \end{macro} |
| 449 |
% |
| 450 |
% \begin{macro}{\test@dbend} |
| 451 |
% The source in \texttt{manfnt.mf} specifies \textdbend{} in cmr10 |
| 452 |
% settings as a box 500/36pt~wide, 270/36pt~high and 0pt~deep. |
| 453 |
% The actual image sticks out to~20/36pt${}+\epsilon$ above and |
| 454 |
% to~11pt below the box. |
| 455 |
% At 10pt size |\dbend| produces a box with height 7.5pt and zero depth. |
| 456 |
% The sign pole extends to 11pt below the base line\footnote{The |
| 457 |
% ``dangerous bend'' paragraphs in the \TeX{}book~\cite{book:knuth} are |
| 458 |
% typeset in 9pt size fonts with \cmd{\baselineskip} set to 11pt.}. |
| 459 |
% All this means that we need to raise the sign by 22/15 of its height. |
| 460 |
% \begin{macrocode} |
| 461 |
\newlength{\dbend@height} |
| 462 |
\newcommand{\text@dbend}[1]{% |
| 463 |
\settoheight{\dbend@height}{#1}% |
| 464 |
\divide\dbend@height by 15% |
| 465 |
\multiply\dbend@height by 22% |
| 466 |
\raisebox{\dbend@height}{#1}} |
| 467 |
% \end{macrocode} |
| 468 |
% This definition is clumsy but has an advantage of working. |
| 469 |
% Question by Denis Kosygin: |
| 470 |
% \begin{quote}\small |
| 471 |
% Can anyone explain why does |
| 472 |
%\begin{verbatim} |
| 473 |
%\newcommand{\text@dbend}[1]{\raisebox{22\height/15}{#1}} |
| 474 |
%\end{verbatim} |
| 475 |
% break? Sometimes it does what I mean, and sometimes it typesets |
| 476 |
% the argument raised to to 22\cmd{\height} followed by /15 on the |
| 477 |
% baseline. |
| 478 |
% \end{quote} |
| 479 |
% \end{macro} |
| 480 |
% |
| 481 |
% We end the file with an explicit |\endinput| which prevents the |
| 482 |
% docstrip program from putting character table into the generated |
| 483 |
% files. |
| 484 |
% \begin{macrocode} |
| 485 |
\endinput |
| 486 |
% \end{macrocode} |
| 487 |
%% \CharacterTable |
| 488 |
%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z |
| 489 |
%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z |
| 490 |
%% Digits \0\1\2\3\4\5\6\7\8\9 |
| 491 |
%% Exclamation \! Double quote \" Hash (number) \# |
| 492 |
%% Dollar \$ Percent \% Ampersand \& |
| 493 |
%% Acute accent \' Left paren \( Right paren \) |
| 494 |
%% Asterisk \* Plus \+ Comma \, |
| 495 |
%% Minus \- Point \. Solidus \/ |
| 496 |
%% Colon \: Semicolon \; Less than \< |
| 497 |
%% Equals \= Greater than \> Question mark \? |
| 498 |
%% Commercial at \@ Left bracket \[ Backslash \\ |
| 499 |
%% Right bracket \] Circumflex \^ Underscore \_ |
| 500 |
%% Grave accent \` Left brace \{ Vertical bar \| |
| 501 |
%% Right brace \} Tilde \~} |
| 502 |
%% |
| 503 |
% \DeleteShortVerb{\|} ^^A For table printing |
| 504 |
% \Finale |
| 505 |
%^^A End of file "manfnt.dtx" |
| 506 |
|