summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/fundus/outline.dtx
blob: 17f3481cf18839b2c89dddd342ff0294badc2e13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
\def\filename{outline.dtx}
\def\fileversion{1.1}
\def\filedate{1997/08/26}
\let\docversion=\fileversion
\let\docdate=\filedate
% \iffalse meta-comment
%
% Copyright 1997 by Gerd Neugebauer
% 
% For further copyright information, and conditions for modification
% and distribution, see the file legal.txt, and any other copyright
% notices in this file.
% 
%   This system is distributed in the hope that it will be useful,
%   but WITHOUT ANY WARRANTY; without even the implied warranty of
%   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
% 
%   For error reports concerning UNCHANGED versions of this file no
%   more than one year old, see bugs.txt.
% 
%   Please do not request updates from us directly.  Primary
%   distribution is through the CTAN archives.
% 
% 
% IMPORTANT COPYRIGHT NOTICE:
% 
% You are NOT ALLOWED to distribute this file alone.
% 
% You are allowed to distribute this file under the condition that it
% is distributed together with all the files listed in manifest.txt.
% 
% If you receive only some of these files from someone, complain!
% 
% 
% Permission is granted to copy this file to another file with a
% clearly different name and to customize the declarations in that
% copy to serve the needs of your installation, provided that you
% comply with the conditions in the file legal.txt.
% 
% However, NO PERMISSION is granted to produce or to distribute a
% modified version of this file under its original name.
%  
% You are NOT ALLOWED to change this file.
% 
% 
% 
% \fi
% \iffalse
%%% File: outline.dtx
%% Copyright (C) 1997 Gerd Neugebauer
%% all rights reserved.
%<package>\NeedsTeXFormat{LaTeX2e}
%<package>\ProvidesPackage{outline}[1997/08/26 v1.1 LaTeX package outline]
%<*driver>
\documentclass{ltxdoc}
\usepackage{outline}
\GetFileInfo{outline.sty}
\begin{document}
\title{The \texttt{outline} package\thanks
       {This file has version number \fileversion, dated \filedate.}\\
      for use with \LaTeX2e}
\author{Gerd Neugebauer\\Mainzer Str.~16\\56321 Rhens\\
  \texttt{gerd@informatik.uni-koblenz.de}}
\date{\docdate}
\maketitle
\DocInput{outline.dtx}
\end{document}
%</driver>
% \fi
%
% \CheckSum{19}
%% \CharacterTable
%%  {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
%%   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
%%   Digits        \0\1\2\3\4\5\6\7\8\9
%%   Exclamation   \!     Double quote  \"     Hash (number) \#
%%   Dollar        \$     Percent       \%     Ampersand     \&
%%   Acute accent  \'     Left paren    \(     Right paren   \)
%%   Asterisk      \*     Plus          \+     Comma         \,
%%   Minus         \-     Point         \.     Solidus       \/
%%   Colon         \:     Semicolon     \;     Less than     \<
%%   Equals        \=     Greater than  \>     Question mark \?
%%   Commercial at \@     Left bracket  \[     Backslash     \\
%%   Right bracket \]     Circumflex    \^     Underscore    \_
%%   Grave accent  \`     Left brace    \{     Vertical bar  \|
%%   Right brace   \}     Tilde         \~}
%
%    \changes{v1.0}{1997/08/01}{First internal version.}
%    \changes{v1.1}{1997/08/26}{Renaming and some rearrangements.}
%
%
%    \section{Introduction}
%
%    Doug Henderson has provided some routines in METAFONT to create
%    outlined versions of arbitrary METAFONT fonts. They can be found
%    on the CTAN in the directory
%    \texttt{tex-archive/fonts/cm/cmoutlines} together with some
%    sample files which show outlined versions of a few computer
%    modern fonts.
%    This package provides means to use suich outlined fonts in \LaTeXe.
%
%
%    \section{Usage}
%
%    This file can be used as a package by placing its name
%    in the argument of |\usepackage|. Afterwards some new commands
%    are defined which are described below. Note that before these
%    commands can be used a font has to be selected. This is done with
%    the following command:
%
%    \DescribeMacro{\SetOutlineFonts}
%    The command |\SetOutlineFonts| initializes the fonts used for
%    the outlining macros. The first argument is a font specification
%    as used by \verb|\newfont|. Note that no spaces are allowed at
%    the beginning. This font is loaded together with a font which has
%    an \verb|o| prepended to its name. The font specification may
%    contain scaling instructions. Thus the following invocation is
%    legal: 
%
%    \verb|\SetOutlineFonts{cmbx12 scaled \magstep2}|
%
%    This instruction requires the tfm files of the fonts
%    \texttt{cmbx12} and \texttt{ocmbx12} to be loadable in the given
%    sizes. The font with the prepended \verb|o| is assumed to contain
%    the outlined version of the font without the leading \verb|o|.
%
%    \DescribeMacro{\outline}
%    The command |\outline| typesets its argument in a box using the
%    outlined font declared with \verb|\SetOutlineFonts|.
%
%    \DescribeMacro{\OutLine}
%    The command |\OutLine| typesets its third argument in a box
%    using the outlined font declared with \verb|\SetOutlinedFonts|.
%    The interior of the characters is drawn in the color given as
%    first argument. The outline is drawn in the color given as second
%    argument. The colors can take any color names accepted by the
%    color package. Thus
%
%    \verb|\OutLine{yellow}{red}{Outlined text}|
%
%    typesets the text ``Outlined text'' in yellow bordered in red.
% 
%    \StopEventually{}
%
%
%    \section{Implementation}
%
%
%    \begin{macrocode}
\RequirePackage{color}
%    \end{macrocode}
%
%    \begin{macro}{\SetOutlineFonts}
%    The macro |\SetOutlineFonts| loads the fonts for the outline macros.
%    \begin{macrocode}
\newcommand\SetOutlineFonts[1]{%
  \newfont\OL@i{o#1}%
  \newfont\OL@ii{#1}%
}
%    \end{macrocode}
%    \end{macro}
%
%  
%    \begin{macro}{\outline}
%    The macro |\outline| typesets its argument with the outline font.
%    \begin{macrocode}
\newcommand\outline[1]{\mbox{\OL@i #1}}
%    \end{macrocode}
%    \end{macro}
%
%    \begin{macro}{\OutLine}
%    The macro |\OutLine| typesets its argument with the outline
%    font.  The interior is filled with the color given as second
%    argument. The color of the outline is given as third argument.

%    \begin{macrocode}
\newcommand\OutLine[3]{%
  \mbox{\rlap{\textcolor{#1}{\OL@ii #3}}\textcolor{#2}{\OL@i #3}}}
%    \end{macrocode}
%    \end{macro}
%
%
% \Finale
%
\endinput