From 447204a54aa3fef7e845b6762bb939907cca8202 Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Thu, 6 Apr 2006 14:35:48 +0100 Subject: [PATCH] Grab zrhax.mtx and friends from somewhere. They're useful. --- Makefile | 12 ++++- zrhax.mtx | 15 ++++++ zrmhax.mtx | 14 ++++++ zrmkern.mtx | 158 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ zrvhax.mtx | 73 ++++++++++++++++++++++++++++ zryhax.mtx | 26 ++++++++++ 6 files changed, 296 insertions(+), 2 deletions(-) create mode 100644 zrhax.mtx create mode 100644 zrmhax.mtx create mode 100644 zrmkern.mtx create mode 100644 zrvhax.mtx create mode 100644 zryhax.mtx diff --git a/Makefile b/Makefile index d300d22..b431de1 100644 --- a/Makefile +++ b/Makefile @@ -6,20 +6,28 @@ bibdir = $(bibtexdir)/bib bstdir = $(bibtexdir)/bst texdir = $(texmf)/tex latexdir = $(texdir)/latex +fontinstdir = $(texdir)/fontinst default: all INSTALL_TARGETS = \ $(latexdir)/po.sty \ $(latexdir)/babelbst.tex $(bstdir)/mdwalpha.bst \ - $(bibdir)/mdw-crypto.bib $(bibdir)/mdw-crypto.bix + $(bibdir)/mdw-crypto.bib $(bibdir)/mdw-crypto.bix \ + $(fontinstdir)/zrhax.mtx \ + $(fontinstdir)/zrmhax.mtx \ + $(fontinstdir)/zrmkern.mtx \ + $(fontinstdir)/zrvhax.mtx \ + $(fontinstdir)/zryhax.mtx install: $(INSTALL_TARGETS) $(texmf)/ls-R all: babelbst.tex mdwalpha.bst mdw-crypto.bix $(texmf)/ls-R: $(INSTALL_TARGETS); mktexlsr $(texmf) -$(texdir) $(latexdir) $(bibtexdir) $(bibdir) $(bstdir): %:; mkdir -p $@ +$(texdir) $(latexdir) $(bibtexdir) $(bibdir) $(bstdir) $(fontinstdir): %: + mkdir -p $@ $(latexdir)/%: % $(latexdir); cp $< $@ +$(fontinstdir)/%: % $(fontinstdir); cp $< $@ $(bibdir)/%: % $(bibdir); cp $< $@ $(bstdir)/%: % $(bstdir); cp $< $@ %.bix: %.bib; bibindex $< diff --git a/zrhax.mtx b/zrhax.mtx new file mode 100644 index 0000000..ce1bc5a --- /dev/null +++ b/zrhax.mtx @@ -0,0 +1,15 @@ +\relax + +\metrics + +% This metrics file is loaded after having read the Times-Roman +% glyphs. We unset those glyphs that should be taken from cmr. + +\unsetglyph{plus} +\unsetglyph{equal} +\unsetglyph{parenleft} +\unsetglyph{parenright} +\unsetglyph{bracketleft} +\unsetglyph{bracketright} + +\endmetrics diff --git a/zrmhax.mtx b/zrmhax.mtx new file mode 100644 index 0000000..141899c --- /dev/null +++ b/zrmhax.mtx @@ -0,0 +1,14 @@ +\relax + +\metrics + +% This metrics file is loaded after having read the Times-Italic +% glyphs. We unset those glyphs that should be taken from cmmi. + +\unsetglyph{period} +\unsetglyph{comma} +\unsetglyph{less} +\unsetglyph{slash} +\unsetglyph{greater} + +\endmetrics diff --git a/zrmkern.mtx b/zrmkern.mtx new file mode 100644 index 0000000..62ccd50 --- /dev/null +++ b/zrmkern.mtx @@ -0,0 +1,158 @@ +\relax + +% The following adjustments (as originally derived by Alan Jeffrey) +% are tuned for Times-Italic and non-oblique Adobe Symbol. + +\metrics + +\needsfontinstversion{1.800} + +% \shiftglyph takes four parameters: +% +% #1 the name of the glyph +% #2 the amount of extra space at the left +% #3 the amount of extra space at the right +% #4 the amount of extra space for subscripts + +\setcommand\shiftglyph#1#2#3#4{ + \resetglyph{#1} + \movert{#2} + \glyph{#1}{1000} + \movert{#4} + \resetitalic{\add{\italic{#1}}{\sub{#3}{#4}}} + \endresetglyph +} + +% \skewkern sets a skewchar kern, assuming that `tie' +% is the skewchar. +% +% #1 the name of the glyph +% #2 the amount of skewchar kerning + +\setcommand\skewkern#1#2{\setkern{#1}{tie}{#2}} + + +% A +% B +\shiftglyph{C}{-50}{0}{-25} +% D +\shiftglyph{E}{0}{50}{0} +\shiftglyph{F}{0}{50}{-100} +% G +\shiftglyph{H}{0}{25}{-25} +\shiftglyph{I}{0}{0}{-25} +\shiftglyph{J}{0}{0}{-25} +\shiftglyph{K}{0}{0}{-25} +% L +% M +\shiftglyph{N}{0}{0}{-25} +% O +\shiftglyph{P}{0}{0}{-100} +% Q +% R +% S +\shiftglyph{T}{0}{50}{-75} +\shiftglyph{U}{-50}{50}{-25} +\shiftglyph{V}{-50}{50}{-50} +\shiftglyph{W}{-50}{50}{-50} +\shiftglyph{X}{0}{50}{-25} +\shiftglyph{Y}{-50}{50}{-50} +% Z + +% a +\shiftglyph{b}{0}{-25}{0} +% c +\shiftglyph{d}{0}{25}{0} +% e +\shiftglyph{f}{150}{0}{25} +\shiftglyph{g}{0}{-50}{0} +% h +% i +\shiftglyph{j}{150}{25}{0} +% k +\shiftglyph{l}{0}{50}{0} +% m +% n +\shiftglyph{o}{0}{-50}{0} +\shiftglyph{p}{75}{-25}{0} +% q +% r +% s +\shiftglyph{t}{-25}{50}{0} +% u +% v +% w +% x +% y +% z + +\shiftglyph{Upsilon}{0}{0}{-150} % was: -50 -100, adds up to -150 +\shiftglyph{weierstrass}{-100}{-200}{-150} + +\skewkern{A}{75} +\skewkern{B}{100} +\skewkern{C}{100} +\skewkern{D}{50} +\skewkern{E}{75} +\skewkern{F}{75} +\skewkern{G}{100} +\skewkern{H}{50} +\skewkern{I}{100} +\skewkern{J}{200} +\skewkern{K}{75} +% L +\skewkern{M}{100} +\skewkern{N}{25} +\skewkern{O}{100} +\skewkern{P}{100} +\skewkern{Q}{100} +\skewkern{R}{100} +\skewkern{S}{100} +\skewkern{T}{50} +\skewkern{U}{50} +\skewkern{X}{50} +\skewkern{Z}{50} + +\skewkern{a}{75} +% b +\skewkern{c}{75} +\skewkern{d}{200} +\skewkern{e}{75} +\skewkern{f}{150} +\skewkern{g}{75} +% h +\skewkern{i}{75} +\skewkern{j}{150} +% k +\skewkern{l}{100} +\skewkern{m}{50} +\skewkern{n}{50} +\skewkern{o}{75} +\skewkern{p}{100} +\skewkern{q}{75} +\skewkern{r}{50} +\skewkern{s}{100} +\skewkern{t}{50} +\skewkern{u}{75} +\skewkern{v}{75} +\skewkern{w}{75} +\skewkern{x}{75} +\skewkern{y}{75} +\skewkern{z}{50} + +\skewkern{dotlessi}{50} +\skewkern{dotlessj}{50} + +\skewkern{upsilon}{25} +\skewkern{iota}{-50} +\skewkern{lambda}{-75} +\skewkern{weierstrass}{175} +\skewkern{lscript}{125} + +\resetglyph{vector} + \movert{-100} + \glyph{vector}{1000} + \movert{100} +\endresetglyph + +\endmetrics diff --git a/zrvhax.mtx b/zrvhax.mtx new file mode 100644 index 0000000..6270feb --- /dev/null +++ b/zrvhax.mtx @@ -0,0 +1,73 @@ +\relax + +% This metrics file is loaded after having read the cmex glyps. +% We unset the big operators that should be taken from Symbol +% or from a scaled-down version of cmex. + +\metrics + +\setint{psy-textscale}{1000} +\setint{psy-displayscale}{1440} + +\unsetglyph{circledotdisplay} +\unsetglyph{circledottext} +\unsetglyph{circlemultiplydisplay} +\unsetglyph{circlemultiplytext} +\unsetglyph{circleplusdisplay} +\unsetglyph{circleplustext} +\unsetglyph{contintegraldisplay} +\unsetglyph{contintegraltext} +\unsetglyph{integraldisplay} +\unsetglyph{integraltext} +\unsetglyph{intersectiondisplay} +\unsetglyph{intersectiontext} +\unsetglyph{logicalanddisplay} +\unsetglyph{logicalandtext} +\unsetglyph{logicalordisplay} +\unsetglyph{logicalortext} +\unsetglyph{uniondisplay} +\unsetglyph{unionmultidisplay} +\unsetglyph{unionmultitext} +\unsetglyph{unionsqdisplay} +\unsetglyph{unionsqtext} +\unsetglyph{uniontext} + +\resetglyph{summationtext} + \glyph{summation}{\int{psy-textscale}} +\endresetglyph + +\resetglyph{summationdisplay} + \glyph{summation}{\int{psy-displayscale}} +\endresetglyph + +\resetglyph{producttext} + \glyph{product}{\int{psy-textscale}} +\endresetglyph + +\resetglyph{productdisplay} + \glyph{product}{\int{psy-displayscale}} +\endresetglyph + +\resetglyph{coproducttext} + \moveup{\neg{\depth{producttext}}} + \glyphrule{ + \width{producttext} + }{ + \add{\height{producttext}}{\depth{producttext}} + } + \moveup{\depth{producttext}} + \glyphwarning{missing glyph `coproducttext'} +\endresetglyph + +\resetglyph{coproductdisplay} + \moveup{\neg{\depth{productdisplay}}} + \glyphrule{ + \width{productdisplay} + }{ + \add{\height{productdisplay}}{\depth{productdisplay}} + } + \moveup{\depth{productdisplay}} + \glyphwarning{missing glyph `coproductdisplay'} +\endresetglyph + +\endmetrics diff --git a/zryhax.mtx b/zryhax.mtx new file mode 100644 index 0000000..19addd6 --- /dev/null +++ b/zryhax.mtx @@ -0,0 +1,26 @@ +\relax + +\metrics + +% This metrics file is loaded after having read the cmsy glyphs. +% We unset those glyphs that should be taken from Times or Symbol. + +\unsetglyph{infinity} +\unsetglyph{proportional} + +\unsetglyph{emptysetstress} + +\unsetglyph{Rfraktur} +\unsetglyph{Ifraktur} + +\unsetglyph{aleph} + +\unsetglyph{coproduct} +\unsetglyph{gradient} + +\unsetglyph{section} +\unsetglyph{dagger} +\unsetglyph{daggerdbl} +\unsetglyph{paragraph} + +\endmetrics -- 2.11.0