| 1 |
% \iffalse |
| 2 |
% trsym.dtx |
| 3 |
% Copyright (c) 2000 Jan Holfert |
| 4 |
% |
| 5 |
% This file is part of the `trsym' program. |
| 6 |
% |
| 7 |
% This program may be distributed and/or modified under the |
| 8 |
% conditions of the LaTeX Project Public License, either version 1.2 |
| 9 |
% of this license or (at your option) any later version. |
| 10 |
% The latest version of this license is in |
| 11 |
% http://www.latex-project.org/lppl.txt |
| 12 |
% and version 1.2 or later is part of all distributions of LaTeX |
| 13 |
% version 1999/12/01 or later. |
| 14 |
% |
| 15 |
% This program consists of all files listed in manifest.txt. |
| 16 |
% \fi |
| 17 |
% |
| 18 |
% \iffalse |
| 19 |
%<*!metafont&!metafont10&!metafont12> |
| 20 |
\def\trsymfileversion{1.0} |
| 21 |
\def\trsymfiledate{2000/06/25} |
| 22 |
%</!metafont&!metafont10&!metafont12> |
| 23 |
% \fi |
| 24 |
% |
| 25 |
% \iffalse |
| 26 |
%<*package> |
| 27 |
\NeedsTeXFormat{LaTeX2e} |
| 28 |
\ProvidesPackage{trsym} |
| 29 |
[\trsymfiledate v\trsymfileversion transformation symbol font] |
| 30 |
%</package> |
| 31 |
% \fi |
| 32 |
% |
| 33 |
% \iffalse |
| 34 |
%<*driver> |
| 35 |
\NeedsTeXFormat{LaTeX2e} |
| 36 |
\documentclass{ltxdoc} |
| 37 |
\usepackage{trsym} |
| 38 |
\begin{document} |
| 39 |
\DocInput{trsym.dtx} |
| 40 |
\end{document} |
| 41 |
%</driver> |
| 42 |
% \fi |
| 43 |
% |
| 44 |
% \RecordChanges |
| 45 |
% \OnlyDescription |
| 46 |
% |
| 47 |
% \title{\textsf{trsym} package\\ version \trsymfileversion} |
| 48 |
% \author{Jan Holfert, \texttt{[email protected]}} |
| 49 |
% \date{\trsymfiledate} |
| 50 |
% |
| 51 |
% \changes{1.0}{2000/06/25}{Released version 1.0} |
| 52 |
% |
| 53 |
% \newcommand{\tfh}{\TransformHoriz} |
| 54 |
% \newcommand{\itfh}{\InversTransformHoriz} |
| 55 |
% \newcommand{\tfv}{\TransformVert} |
| 56 |
% \newcommand{\itfv}{\InversTransformVert} |
| 57 |
% \newcommand{\bs}{\textbackslash} |
| 58 |
% |
| 59 |
% \maketitle |
| 60 |
% |
| 61 |
% \section*{Installation} |
| 62 |
% If you see the symbols in section ``Usage'', the files are |
| 63 |
% already installed. There is no need to do the installation |
| 64 |
% again. Otherwise, do the following: |
| 65 |
% \begin{enumerate} |
| 66 |
% \item Create a subdirectory \textsf{trsym} in your local source path |
| 67 |
% for \textsf{MetaFont} files. If you use the configuration file for |
| 68 |
% the \textsf{docstrip} utility doing this is obligatory. |
| 69 |
% \item Run ``\textsf{latex trsym.ins}''. If you use \textsf{docstrips}' |
| 70 |
% configuration file, everything is copied to its right |
| 71 |
% place. Otherwise, copy \textsf{trsy.mf}, \textsf{trsy10.mf} and |
| 72 |
% \textsf{trsy12.mf} into the subdirectory \textsf{trsym} |
| 73 |
% (e.g. \bs\bs localtexmf\bs fonts\bs source\bs trsym). Copy |
| 74 |
% \textsf{utrsy.fd} and \textsf{trsym.sty} into a subdirectory |
| 75 |
% \textsf{trsym} in your local \LaTeX{} path (e.g. \bs\bs |
| 76 |
% localtexmf\bs tex\bs latex\bs trsym) |
| 77 |
% \end{enumerate} |
| 78 |
% \section*{Usage} |
| 79 |
% Write \textsf{\bs usepackage\{trsym\}} into your \LaTeX{} file's preamble. |
| 80 |
% In \textsf{mathmode} use the following commands generating the |
| 81 |
% according symbol. The commands in parenthesis are short versions of |
| 82 |
% the commands as I used to declare in my documents.\\[1em] |
| 83 |
% \begin{displaymath} |
| 84 |
% \begin{array}{lc} |
| 85 |
% \mbox{command} & \mbox{symbol}\\ |
| 86 |
% \hline |
| 87 |
% \mbox{\rule{0pt}{1.1em}\textsf{\bs TransformHoriz (\bs tfh)}} & \tfh\\ |
| 88 |
% \mbox{\textsf{\bs InversTransformHoriz (\bs itfh)}} & \itfh\\ |
| 89 |
% \mbox{\textsf{\bs TransformVert (\bs tfv)}} & \tfv\\ |
| 90 |
% \mbox{\textsf{\bs InversTransformVert (\bs itfv)}} & \itfv |
| 91 |
% \end{array} |
| 92 |
% \end{displaymath} |
| 93 |
% |
| 94 |
% \StopEventually |
| 95 |
% |
| 96 |
% \begin{macrocode} |
| 97 |
%<*package> |
| 98 |
\DeclareSymbolFont{transfsymbol}{U}{trsy}{m}{n} |
| 99 |
|
| 100 |
\DeclareMathSymbol{\TransformHoriz}{\mathrel}{transfsymbol}{0} |
| 101 |
\DeclareMathSymbol{\InversTransformHoriz}{\mathrel}{transfsymbol}{1} |
| 102 |
\DeclareMathSymbol{\TransformVert}{\mathrel}{transfsymbol}{2} |
| 103 |
\DeclareMathSymbol{\InversTransformVert}{\mathrel}{transfsymbol}{3} |
| 104 |
%</package> |
| 105 |
|
| 106 |
%<*fontdefinition> |
| 107 |
\ProvidesFile{utrsy.fd} |
| 108 |
[\trsymfiledate v\trsymfileversion transformation symbol font definitions] |
| 109 |
\DeclareFontFamily{U}{trsy}{} |
| 110 |
\DeclareFontShape{U}{trsy}{m}{n}{ |
| 111 |
<-11> trsy10 |
| 112 |
<11-> trsy12 |
| 113 |
}{} |
| 114 |
%</fontdefinition> |
| 115 |
|
| 116 |
%<*metafont> |
| 117 |
font_identifier:="TRANSFORMATION"; |
| 118 |
|
| 119 |
qqs:=ceiling(qqs#*hppp); |
| 120 |
define_pixels(qqw,qqh); |
| 121 |
|
| 122 |
fontdimen 1: 0,0,0,0,0,0,0,qqs#; |
| 123 |
let cmchar=\; |
| 124 |
|
| 125 |
cmchar "horizontal transformation symbol"; |
| 126 |
beginchar(0,1.5qqw#,.75qqh#,0); |
| 127 |
pickup pencircle scaled qqs; |
| 128 |
y1=y2=y3=y4=1/2h; |
| 129 |
20x1=5x2=4w; |
| 130 |
70x3=30x4=21w; |
| 131 |
diam_sharp:=1/5w; |
| 132 |
draw fullcircle scaled diam_sharp shifted z1; |
| 133 |
draw z3--z4; |
| 134 |
pickup pencircle scaled (diam_sharp+qqs); |
| 135 |
drawdot z2; |
| 136 |
endchar; |
| 137 |
|
| 138 |
cmchar "horizontal inverse transformation symbol"; |
| 139 |
beginchar(1,1.5qqw#,.75qqh#,0); |
| 140 |
pickup pencircle scaled qqs; |
| 141 |
y1=y2=y3=y4=1/2h; |
| 142 |
20x1=5x2=4w; |
| 143 |
70x3=30x4=21w; |
| 144 |
diam_sharp:=1/5w; |
| 145 |
draw fullcircle scaled diam_sharp shifted z2; |
| 146 |
draw z3--z4; |
| 147 |
pickup pencircle scaled (diam_sharp+qqs); |
| 148 |
drawdot z1; |
| 149 |
endchar; |
| 150 |
|
| 151 |
cmchar "vertical transformation symbol"; |
| 152 |
beginchar(2,.75qqw#,1.15qqh#,.35qqh#); |
| 153 |
pickup pencircle scaled qqs; |
| 154 |
x1=x2=x3=x4=1/2w; |
| 155 |
5(y1+d)=20(y2+d)=4(h+d); |
| 156 |
70(y3+d)=30(y4+d)=21(h+d); |
| 157 |
diam_sharp:=1/5(h+d); |
| 158 |
draw fullcircle scaled diam_sharp shifted z1; |
| 159 |
draw z3--z4; |
| 160 |
pickup pencircle scaled (diam_sharp+qqs); |
| 161 |
drawdot z2; |
| 162 |
endchar; |
| 163 |
|
| 164 |
cmchar "vertical inverse transformation symbol"; |
| 165 |
beginchar(3,.75qqw#,1.15qqh#,.35qqh#); |
| 166 |
pickup pencircle scaled qqs; |
| 167 |
x1=x2=x3=x4=1/2w; |
| 168 |
5(y1+d)=20(y2+d)=4(h+d); |
| 169 |
70(y3+d)=30(y4+d)=21(h+d); |
| 170 |
diam_sharp:=1/5(h+d); |
| 171 |
draw fullcircle scaled diam_sharp shifted z2; |
| 172 |
draw z3--z4; |
| 173 |
pickup pencircle scaled (diam_sharp+qqs); |
| 174 |
drawdot z1; |
| 175 |
endchar; |
| 176 |
|
| 177 |
bye |
| 178 |
%</metafont> |
| 179 |
|
| 180 |
%<*metafont10> |
| 181 |
inner bye; |
| 182 |
if not unknown cmbase: |
| 183 |
errhelp "This font must be generated using the plain base."; |
| 184 |
errmessage "You can't use cmbase for this font!"; |
| 185 |
expandafter bye |
| 186 |
fi |
| 187 |
font_size 10pt#; |
| 188 |
mode_setup; |
| 189 |
qqs# = .4pt#; |
| 190 |
qqh# = 10pt#; |
| 191 |
qqw# = 10pt#; |
| 192 |
input trsy; |
| 193 |
bye. |
| 194 |
%</metafont10> |
| 195 |
|
| 196 |
%<*metafont12> |
| 197 |
inner bye; |
| 198 |
if not unknown cmbase: |
| 199 |
errhelp "This font must be generated using the plain base."; |
| 200 |
errmessage "You can't use cmbase for this font!"; |
| 201 |
expandafter bye |
| 202 |
fi |
| 203 |
font_size 12pt#; |
| 204 |
mode_setup; |
| 205 |
qqs# = .4pt#; |
| 206 |
qqh# = 12pt#; |
| 207 |
qqw# = 12pt#; |
| 208 |
input trsy; |
| 209 |
bye. |
| 210 |
%</metafont12> |
| 211 |
% \end{macrocode} |