|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T e
Length: 5660 (0x161c) Types: TextFile Names: »examples2.tex«
└─⟦52210d11f⟧ Bits:30007239 EUUGD2: TeX 3 1992-12 └─⟦af5ba6c8e⟧ »unix3.0/DVIWARE.tar.Z« └─⟦ca79c7339⟧ └─⟦this⟧ »DVIware/laser-setters/dvi-to-ps/TeXPS/doc/examples2.tex«
\InputD{fotable.tip} \InputD{ex-mac.tex} \InputD{inputc.tip} \font\helv = PS-Helvetica \font\cour= PS-Courier \font\timesr = PS-Times-Roman \font\ti = PS-Times-Italic at 15.33pt \font\helvtwo = PS-Helvetica-2 \font\symbol = PS-Symbol \font\execps = PS-ExecPs \font\cmrten = cmr10 \font\cmttten = cmtt10 % ===================== \chapter{More Examples} % ===================== \label{c-examples2} This chapter contains additional \PS{} font examples and also show other features of the editor such as using {\tt tpic} to produce diagrams and similar items. The source code for this chapter can be found un {\tt doc/examples2.tex}. \section{\protect\PS{} Procedure Characters} % ========================================== \label{s-execps-ex} I will now show the font table of an extended Times-Roman font where some character positions, which are by default empty, have been filled by \PS{} procedures. The font chart for this font can be found in \FigRef{f-chart-execps}, \page. In case you would like to {\it replace\/} a character on a character position which is already used by a \PS{} procedure character simply define the character position you want to use in the \PS{} procedure heading. In other words character code assignments in the {\tt PFD} file and the definition of a \PS{} procedure character have precedence over the assignments which are derived from character codes in the {\tt AFM} file. The {\tt PFD} file to generate the above font reads as follows. Observe the way these \PS{} procedures are defined with a certain standard preamble and postamble in each procedure. {\VerbatimTab = 8 \ListVerb{PS-ExecPs.pfd} } Let us show a brief example here where this font is actually used. The five \PS{} procedure characters defined in the example have been mapped to the unused positions '0--'5. It is also possible to simply replace a character as it was done for the position of the~@ ('100). \begin{quote} \execps So here is an example for using this font with funny symbols in it. Let's print some as in \char0\ (\verb+\char0+) and here is another one as in \char1\ (\verb+\char1+). Oh yes, remember there is no ``{\tt @}'' anymore, you now get a~``@'' instead. \end{quote} \foc{\execps}{PS-ExecPs}{f-chart-execps} \clearpage \section{Examples with Accents} % ============================= \label{s-ps-accents} Accents work too as the following example shows. Observe that all accents in the \PS{} fonts are mapped to the same positions as in the standard \TeX{} text fonts. Therefore there was no need to change the accent macros. Here are finally some examples: % \testtext % ========= % Some test text to demonstrate accents % #1: font name (PS-...) % #2: font change instruction \def\testtext #1#2{\par {#2 Now present some examples of accents using the #1 font. Here we have some accent examples: \`o, and \'o and \^o and \"o and \~o and \=o and \.o and \u o, and \v o, and \H o and \t oo. \par } } \testtext{PS-Helvetica}{\helv} \testtext{PS-Times-Roman}{\timesr} \testtext{PS-Courier}{\rightskip = 0pt plus 6em \cour} \section{Font Sizes} % ================== \PS{} fonts can be used at any size because the characters are stored as outlines and they can be scaled to any desirable size. For the example below the following instruction to load the font was used: \verb+\font\tibig = PS-Times-Italic at 15.33pt+. {\ti \baselineskip = 18pt And so here we even have some text in Times-Italics. That should do it for a short example. This time as a 15.33~pt font, by the way. This if one of the nicer properties of PostScript fonts---the capability to load them at any size needed. You can use \PS{} fonts at ANY size! } \section{The \protect\PS{} Symbol Font} % ===================================== \label{s-ps-symbol} I include the Symbol font in our set of examples. See \FigRef{f-chart-symbol}, \page, for the chart of this font. All codes of the symbol font are assigned according to the {\tt AFM} file. There are no default assignments necessary. The encoding vector table is also enclosed. I will now show an experiment to build opening curly braces using the symbol font in various sizes. \foc{\symbol}{PS-Symbol}{f-chart-symbol} \clearpage \evl{PS-Symbol} \clearpage \section{A Variation of the Helvetica Font} % ========================================= \label{s-helvetica-2} I will now generate a variation of the Helvetica font. The following example will demonstrate how many changes can be made using the {\tt PFD} file. For instance, I made every character a little smaller than its natural width as defined in the {\tt AFM} file. For that purpose the {\tt WidthDelta} command of {\tt PFD} files was used. Here is the {\tt PFD} file of our font. {\VerbatimTab = 8 \ListVerb{PS-Helvetica-2.pfd} } {\helvtwo And here we quickly use this font. As you can see from the input, the following changes were made: \begin{enumerate} \item The kerning between ``A'' and ``V'' has been increased so the two characters touch each other:~``AV''. \item The kerning between ``o'' and ``o'' has been changed. Now these characters run into each other:~``oo''. \item All characters are slightly tilted also stretched and the overall size is larger. Well, you have found that out by now. \item ``O'' and ``E'' together print as ``OE'', ``o'' and ``e'' together print as~``oe''. This was done by adding some ligatures. \end{enumerate} } \foc{\helvtwo}{PS-Helvetica-2}{f-chart-hel-2} Here is the set of macros generated through the {\tt TeXMacroDefs} instruction (this is the file {\tt PS-Helvetica-2-mac.tex}): \label{ps-helvetica-2-mac} \ListVerb{PS-Helvetica-2-mac.tex}