Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!rpi!batcomputer!cornell!uw-beaver!stowe.cs.washington.edu!pauld From: pauld@stowe.cs.washington.edu (Paul Barton-Davis) Newsgroups: comp.text.tex Subject: Re: Looking for .sty for a C Code function manual Keywords: unixman.sty Message-ID: <1991Apr17.002650.3838@beaver.cs.washington.edu> Date: 17 Apr 91 00:26:50 GMT References: <1991Apr8.114158.10349@usenet@kadsma> <1991Apr11.213807.12773@ccu1.aukuni.ac.nz> <1991Apr12.173053.9936@beaver.cs.washington.edu> <1991Apr16.154534.1844@porthos.cc.bellcore.com> Sender: news@beaver.cs.washington.edu (USENET News System) Reply-To: pauld@cs.washington.edu (Paul Barton-Davis) Organization: Computer Science & Engineering, U. of Washington, Seattle Lines: 339 as requested. I have palatino.sty, dingbats.sty, bookman.sty et alia, but a look at you dvi[2t]*ps manual should make it fairly clear how to transform Times into something else. You just need to use whatever fontname mapping scheme your dvi driver uses ion place of t-rom, t-ita etc. Please note the addition of new font switches: \tb "typewriter" bold \ho helvetica oblique (if you use helvetica as sf, consider this san-serif oblique) \hb helvetica bold (as above) \bi bold italics (roman family) \bo bold oblique (roman family) Normal LaTeX doesn't need these, because normal LaTeX doesn't have the TFM files to use for these fonts. I don't use them a lot, but they are handy, especially \tb. enjoy, Paul Barton-Davis UW Computer Science Lab ``to shatter tradition makes us feel free'' --- cut here for times.sty ------ %% times.sty - use Times Roman as the basic font family \def\@mrm{t-rom}% Times Roman \def\@mit{t-ita}% Times Italic \def\@msl{t-obl}% Times Oblique \def\@mbf{t-bol}% Times Bold \def\@mbi{t-bolita}% Times Bold Italic \def\@mbo{t-bolobl}% Times Bold Oblique \def\@mtt{c-med}% Courier \def\@mtb{c-bol}% Courier Bold \def\@mcsc{t-romsc}% Times Roman Small Caps \def\@mss{h-med}% Helvetica \def\@hob{h-obl}% Helvetica Oblique \def\@hbf{h-bol}% Helvetica Bold %% and do the fonts themselves \input{psdef.sty} ----- cut here for psdef.sty %% Font stuff for lots of PostScript fonts, %% with Times-Roman as the main family %% Paul Davis January 1989 %% This file makes a number of extra font switches available: %% This borrowed from the file palatino.sty, obtained from Sebastian Rahtz, %% (actual author unknown). \def\@@getfont#1#2#3#4#5#6#7{% \@ifundefined{\string #1\string #5}{\global\expandafter \font \csname \string #1\string #5\endcsname #4\@ptscale{#5}\relax}{}% \@ifundefined{\string #1\string #6}{\global\expandafter \font \csname \string #1\string #6\endcsname #4\@ptscale{#6}\relax}{}% \@ifundefined{\string #1\string #7}{\global\expandafter \font \csname \string #1\string #7\endcsname #4\@ptscale{#7}\relax}{}% \@ifundefined{\string #1\string #3}{\global\expandafter \let \csname \string #1\string #3\endcsname #3\relax \@addfontinfo#3{\textfont #2\csname \string #1\string #5\endcsname \scriptfont #2\csname \string #1\string #6\endcsname \scriptscriptfont #2\csname \string #1\string #7\endcsname \def#1{\fam #2\csname\string #1\string #5\endcsname}}}{}#3#1} \def\@@@getfont#1#2#3#4#5{% \@ifundefined{\string #1\string #5}{\global\expandafter \font \csname \string #1\string #5\endcsname #4\@ptscale{#5}\relax}{}% \@ifundefined{\string #1\string #3}{\global\expandafter \let \csname \string #1\string #3\endcsname #3\relax \@addfontinfo#3{\def#1{\fam #2\csname\string #1\string #5\endcsname}}}{}#3#1} %% note the added new font specs (\pho, \phb, \ptb etc.) for %% extra fonts needed. \def\@psfonts#1#2#3#4{% \def\prm{\@@@getfont\prm\z@#1\@mrm{#2}}% \def\pit{\@@getfont\pit\itfam#1\@mit{#2}{#3}{#4}}% \def\pbi{\@@getfont\pbi\itfam#1\@mbi{#2}{#3}{#4}}% \def\pbo{\@@getfont\pbo\bffam#1\@mbo{#2}{#3}{#4}}% \def\psl{\@@getfont\psl\slfam#1\@msl{#2}{#3}{#4}}% \def\pbf{\@@getfont\pbf\bffam#1\@mbf{#2}{#3}{#4}}% \def\ptt{\@@getfont\ptt\ttfam#1\@mtt{#2}{#3}{#4}% \@nohyphens\ptt {#2}\@nohyphens\ptt {#3}\@nohyphens\ptt {#4}}% \def\psf{\@@getfont\psf\sffam#1\@mss{#2}{#3}{#4}}% \def\psc{\@@getfont\psc\scfam#1\@mcsc{#2}{#3}{#4}}% \def\pho{\@@getfont\pho\sffam#1\@hob{#2}{#3}{#4}}% \def\phb{\@@getfont\phb\bffam#1\@hbf{#2}{#3}{#4}}% \def\ptb{\@@getfont\ptb\bffam#1\@mtb{#2}{#3}{#4}}}% %% define new font switch for extra fonts \def\ho{\protect\pho}% helvetica oblique \def\hb{\protect\phb}% helvetica bold \def\tb{\protect\ptb}% courier ("typewriter") bold \def\bi{\protect\pbi}% times bold italic \def\bo{\protect\pbo}% times bold oblique \def\vpt{\textfont\z@\fivrm \scriptfont\z@\fivrm \scriptscriptfont\z@\fivrm \textfont\@ne\fivmi \scriptfont\@ne\fivmi \scriptscriptfont\@ne\fivmi \textfont\tw@\fivsy \scriptfont\tw@\fivsy \scriptscriptfont\tw@\fivsy \textfont\thr@@\tenex \scriptfont\thr@@\tenex \scriptscriptfont\thr@@\tenex \def\unboldmath{\everymath{}\everydisplay{}\@nomath \unboldmath\fam\@ne\@boldfalse}\@boldfalse \def\boldmath{\@subfont\boldmath\unboldmath}% \@psfonts\@vpt555% \def\ly{\fam\lyfam\fivly}\textfont\lyfam\fivly \scriptfont\lyfam\fivly \scriptscriptfont\lyfam\fivly \@setstrut\rm} \def\@vpt{} \def\vipt{\textfont\z@\sixrm \scriptfont\z@\sixrm \scriptscriptfont\z@\sixrm \textfont\@ne\sixmi \scriptfont\@ne\sixmi \scriptscriptfont\@ne\sixmi \textfont\tw@\sixsy \scriptfont\tw@\sixsy \scriptscriptfont\tw@\sixsy \textfont\thr@@\tenex \scriptfont\thr@@\tenex \scriptscriptfont\thr@@\tenex \def\unboldmath{\everymath{}\everydisplay{}\@nomath \unboldmath\@boldfalse}\@boldfalse \def\boldmath{\@subfont\boldmath\unboldmath}% \@psfonts\@vipt666 \def\ly{\fam\lyfam\sixly}\textfont\lyfam\sixly \scriptfont\lyfam\sixly \scriptscriptfont\lyfam\sixly \@setstrut\rm} \def\@vipt{} \def\viipt{\textfont\z@\sevrm \scriptfont\z@\sixrm \scriptscriptfont\z@\fivrm \textfont\@ne\sevmi \scriptfont\@ne\fivmi \scriptscriptfont\@ne\fivmi \textfont\tw@\sevsy \scriptfont\tw@\fivsy \scriptscriptfont\tw@\fivsy \textfont\thr@@\tenex \scriptfont\thr@@\tenex \scriptscriptfont\thr@@\tenex \def\unboldmath{\everymath{}\everydisplay{}\@nomath \unboldmath\@boldfalse}\@boldfalse \def\boldmath{\@subfont\boldmath\unboldmath}% \@psfonts\@viipt755% \def\ly{\fam\lyfam\sevly}\textfont\lyfam\sevly \scriptfont\lyfam\fivly \scriptscriptfont\lyfam\fivly \@setstrut \rm} \def\@viipt{} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \def\viiipt{\textfont\z@\egtrm \scriptfont\z@\sixrm \scriptscriptfont\z@\fivrm \textfont\@ne\egtmi \scriptfont\@ne\sixmi \scriptscriptfont\@ne\fivmi \textfont\tw@\egtsy \scriptfont\tw@\sixsy \scriptscriptfont\tw@\fivsy \textfont\thr@@\tenex \scriptfont\thr@@\tenex \scriptscriptfont\thr@@\tenex \def\unboldmath{\everymath{}\everydisplay{}\@nomath \unboldmath\@boldfalse}\@boldfalse \def\boldmath{\@subfont\boldmath\unboldmath}% \@psfonts\@viiipt865% \def\ly{\fam\lyfam\egtly}\textfont\lyfam\egtly \scriptfont\lyfam\sixly \scriptscriptfont\lyfam\fivly \@setstrut \rm} \def\@viiipt{} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \def\ixpt{\textfont\z@\ninrm \scriptfont\z@\sixrm \scriptscriptfont\z@\fivrm \textfont\@ne\ninmi \scriptfont\@ne\sixmi \scriptscriptfont\@ne\fivmi \textfont\tw@\ninsy \scriptfont\tw@\sixsy \scriptscriptfont\tw@\fivsy \textfont\thr@@\tenex \scriptfont\thr@@\tenex \scriptscriptfont\thr@@\tenex \def\unboldmath{\everymath{}\everydisplay{}\@nomath\unboldmath \@boldfalse}\@boldfalse \def\boldmath{\@subfont\boldmath\unboldmath}% \@psfonts\@ixpt965% \def\ly{\fam\lyfam\ninly}\textfont\lyfam\ninly \scriptfont\lyfam\sixly \scriptscriptfont\lyfam\fivly \@setstrut \rm} \def\@ixpt{} \def\xpt{\textfont\z@\tenrm \scriptfont\z@\sevrm \scriptscriptfont\z@\fivrm \textfont\@ne\tenmi \scriptfont\@ne\sevmi \scriptscriptfont\@ne\fivmi \textfont\tw@\tensy \scriptfont\tw@\sevsy \scriptscriptfont\tw@\fivsy \textfont\thr@@\tenex \scriptfont\thr@@\tenex \scriptscriptfont\thr@@\tenex \def\unboldmath{\everymath{}\everydisplay{}\@nomath\unboldmath \textfont\@ne\tenmi \textfont\tw@\tensy \textfont\lyfam\tenly \@boldfalse}\@boldfalse \def\boldmath{\@ifundefined{tenmib}{\global\font\tenmib\@mbi \global\font\tensyb\@mbsy \global\font\tenlyb\@lasyb\relax\@addfontinfo\@xpt {\def\boldmath{\everymath{\mit}\everydisplay{\mit}\@prtct\@nomathbold \textfont\@ne\tenmib \textfont\tw@\tensyb \textfont\lyfam\tenlyb \@prtct\@boldtrue}}}{}\@xpt\boldmath}% \@psfonts\@xpt{10}75% \def\ly{\fam\lyfam\tenly}\textfont\lyfam\tenly \scriptfont\lyfam\sevly \scriptscriptfont\lyfam\fivly \@setstrut \rm} \def\@xpt{} \def\xipt{\textfont\z@\elvrm \scriptfont\z@\egtrm \scriptscriptfont\z@\sixrm \textfont\@ne\elvmi \scriptfont\@ne\egtmi \scriptscriptfont\@ne\sixmi \textfont\tw@\elvsy \scriptfont\tw@\egtsy \scriptscriptfont\tw@\sixsy \textfont\thr@@\tenex \scriptfont\thr@@\tenex \scriptscriptfont\thr@@\tenex \def\unboldmath{\everymath{}\everydisplay{}\@nomath\unboldmath \textfont\@ne\elvmi \textfont\tw@\elvsy \textfont\lyfam\elvly \@boldfalse}\@boldfalse \def\boldmath{\@ifundefined{elvmib}{\global\font\elvmib\@mbi\@halfmag \global\font\elvsyb\@mbsy\@halfmag \global\font\elvlyb\@lasyb\@halfmag\relax\@addfontinfo\@xipt {\def\boldmath{\everymath{\mit}\everydisplay{\mit}\@prtct\@nomathbold \textfont\@ne\elvmib \textfont\tw@\elvsyb \textfont\lyfam\elvlyb\@prtct\@boldtrue}}}{}\@xipt\boldmath}% \@psfonts\@xipt{11}86% \def\ly{\fam\lyfam\elvly}\textfont\lyfam\elvly \scriptfont\lyfam\egtly \scriptscriptfont\lyfam\sixly \@setstrut \rm} \def\@xipt{} \def\xiipt{\textfont\z@\twlrm \scriptfont\z@\egtrm \scriptscriptfont\z@\sixrm \textfont\@ne\twlmi \scriptfont\@ne\egtmi \scriptscriptfont\@ne\sixmi \textfont\tw@\twlsy \scriptfont\tw@\egtsy \scriptscriptfont\tw@\sixsy \textfont\thr@@\tenex \scriptfont\thr@@\tenex \scriptscriptfont\thr@@\tenex \def\unboldmath{\everymath{}\everydisplay{}\@nomath\unboldmath \textfont\@ne\twlmi \textfont\tw@\twlsy \textfont\lyfam\twlly \@boldfalse}\@boldfalse \def\boldmath{\@ifundefined{twlmib}{\global\font\twlmib\@mbi\@magscale1\global \font\twlsyb\@mbsy \@magscale1\global\font \twllyb\@lasyb\@magscale1\relax\@addfontinfo\@xiipt {\def\boldmath{\everymath {\mit}\everydisplay{\mit}\@prtct\@nomathbold \textfont\@ne\twlmib \textfont\tw@\twlsyb \textfont\lyfam\twllyb\@prtct\@boldtrue}}}{}\@xiipt\boldmath}% \@psfonts\@xiipt{12}86% \def\ly{\fam\lyfam\twlly}\textfont\lyfam\twlly \scriptfont\lyfam\egtly \scriptscriptfont\lyfam\sixly \@setstrut \rm} \def\@xiipt{} \def\xivpt{\textfont\z@\frtnrm \scriptfont\z@\tenrm \scriptscriptfont\z@\sevrm \textfont\@ne\frtnmi \scriptfont\@ne\tenmi \scriptscriptfont\@ne\sevmi \textfont\tw@\frtnsy \scriptfont\tw@\tensy \scriptscriptfont\tw@\sevsy \textfont\thr@@\tenex \scriptfont\thr@@\tenex \scriptscriptfont\thr@@\tenex \def\unboldmath{\everymath{}\everydisplay{}\@nomath\unboldmath \textfont\@ne\frtnmi \textfont\tw@\frtnsy \textfont\lyfam\frtnly \@boldfalse}\@boldfalse \def\boldmath{\@ifundefined{frtnmib}{\global\font \frtnmib\@mbi\@magscale2\global\font\frtnsyb\@mbsy\@magscale2 \global\font\frtnlyb\@lasyb\@magscale2\relax\@addfontinfo\@xivpt {\def\boldmath{\everymath {\mit}\everydisplay{\mit}\@prtct\@nomathbold \textfont\@ne\frtnmib \textfont\tw@\frtnsyb \textfont\lyfam\frtnlyb\@prtct\@boldtrue}}}{}\@xivpt\boldmath}% \@psfonts\@xivpt{14}{10}7% \def\ly{\fam\lyfam\frtnly}\textfont\lyfam\frtnly \scriptfont\lyfam\tenly \scriptscriptfont\lyfam\sevly \@setstrut \rm} \def\@xivpt{} \def\xviipt{\textfont\z@\svtnrm \scriptfont\z@\twlrm \scriptscriptfont\z@\tenrm \textfont\@ne\svtnmi \scriptfont\@ne\twlmi \scriptscriptfont\@ne\tenmi \textfont\tw@\svtnsy \scriptfont\tw@\twlsy \scriptscriptfont\tw@\tensy \textfont\thr@@\tenex \scriptfont\thr@@\tenex \scriptscriptfont\thr@@\tenex \def\unboldmath{\everymath{}\everydisplay{}\@nomath\unboldmath \textfont\@ne\svtnmi \textfont\tw@\svtnsy \textfont\lyfam\svtnly \@boldfalse}\@boldfalse \def\boldmath{\@subfont\boldmath\unboldmath}% \@psfonts\@xviipt{17}{12}{10}% \def\ly{\fam\lyfam\svtnly}\textfont\lyfam\svtnly \scriptfont\lyfam\twlly \scriptscriptfont\lyfam\tenly \@setstrut \rm} \def\@xviipt{} \def\xxpt{\textfont\z@\twtyrm \scriptfont\z@\frtnrm \scriptscriptfont\z@\twlrm \textfont\@ne\twtymi \scriptfont\@ne\frtnmi \scriptscriptfont\@ne\twlmi \textfont\tw@\twtysy \scriptfont\tw@\frtnsy \scriptscriptfont\tw@\twlsy \textfont\thr@@\tenex \scriptfont\thr@@\tenex \scriptscriptfont\thr@@\tenex \def\unboldmath{\everymath{}\everydisplay{}\@nomath\unboldmath \textfont\@ne\twtymi \textfont\tw@\twtysy \textfont\lyfam\twtyly \@boldfalse}\@boldfalse \def\boldmath{\@subfont\boldmath\unboldmath}% \@psfonts\@xxpt{20}{14}{12}% \def\ly{\fam\lyfam\twtyly}\textfont\lyfam\twtyly \scriptfont\lyfam\frtnly \scriptscriptfont\lyfam\twlly \@setstrut \rm} \def\@xxpt{} \def\xxvpt{\textfont\z@\twfvrm \scriptfont\z@\twtyrm \scriptscriptfont\z@\svtnrm \textfont\@ne\twtymi \scriptfont\@ne\twtymi \scriptscriptfont\@ne\svtnmi \textfont\tw@\twtysy \scriptfont\tw@\twtysy \scriptscriptfont\tw@\svtnsy \textfont\thr@@\tenex \scriptfont\thr@@\tenex \scriptscriptfont\thr@@\tenex \def\unboldmath{\everymath{}\everydisplay{}\@nomath\unboldmath \textfont\@ne\twtymi \textfont\tw@\twtysy \textfont\lyfam\twtyly \@boldfalse}\@boldfalse \def\boldmath{\@subfont\boldmath\unboldmath}% \@psfonts\@xxvpt{25}{20}{17}% \def\ly{\fam\lyfam\twtyly}\textfont\lyfam\twtyly \scriptfont\lyfam\twtyly \scriptscriptfont\lyfam\svtnly \@setstrut \rm} \def\@xxvpt{} ---- cut here for threepart.sty ---- % Three part head and foot macros. 1/87 % Lance Berc % Olsen & Associates mcvax!unizh!olsen!lance@seismo.css.gov % Seefeldstrasse 233 % CH-8008 Zurich % How users can set the head and foot text. \def\lhead#1{\gdef\@lhead{#1}} \def\lfoot#1{\gdef\@lfoot{#1}} \def\chead#1{\gdef\@chead{#1}} \def\cfoot#1{\gdef\@cfoot{#1}} \def\rhead#1{\gdef\@rhead{#1}} \def\rfoot#1{\gdef\@rfoot{#1}} % Initialization of the head and foot text. % By default the page number is at the center of the foot and everything % else is empty. \def\@lhead{} \def\@lfoot{} \def\@chead{} \def\@cfoot{{\rm \thepage}} \def\@rhead{} \def\@rfoot{} % Put together a three part header or footer given the left, center and % right text. The \lap commands put the text into an hbox of zero size, % so overlapping text is not detected (it just overlaps). \def\@threepart#1#2#3{\rlap{#1} \hfil {#2} \hfil \llap{#3}} % Swap the notices on odd and even pages when twosided. \def\ps@threepartheadings { \def\@oddhead{\@threepart{\@lhead}{\@chead}{\@rhead}} \def\@oddfoot{\@threepart{\@lfoot}{\@cfoot}{\@rfoot}} \if@twoside \def\@evenhead{\@threepart{\@rhead}{\@chead}{\@lhead}} \def\@evenfoot{\@threepart{\@rfoot}{\@cfoot}{\@lfoot}} \else \def\@evenhead{\@threepart{\@lhead}{\@chead}{\@rhead}} \def\@evenfoot{\@threepart{\@lfoot}{\@cfoot}{\@rfoot}} \fi } % Default page style \ps@threepartheadings % Default footers \cfoot{\thepage} -- Paul Barton-Davis UW Computer Science Lab ``to shatter tradition makes us feel free''