diff options
author | Karl Berry <karl@freefriends.org> | 2013-04-07 18:29:49 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2013-04-07 18:29:49 +0000 |
commit | 80b364fa37a748aef4fac9903b0892b1d4961087 (patch) | |
tree | b93e677c5392e1a2805044ccece2f73e5f1a71c0 /Master/texmf-dist/dvips/config/alt-rule.pro | |
parent | b04c2e1a42573e9735547702356c7b9a769a6855 (diff) |
texmf -> texmf-dist: dvips
git-svn-id: svn://tug.org/texlive/trunk@29715 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/dvips/config/alt-rule.pro')
-rw-r--r-- | Master/texmf-dist/dvips/config/alt-rule.pro | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Master/texmf-dist/dvips/config/alt-rule.pro b/Master/texmf-dist/dvips/config/alt-rule.pro new file mode 100644 index 00000000000..c7fb9443923 --- /dev/null +++ b/Master/texmf-dist/dvips/config/alt-rule.pro @@ -0,0 +1,17 @@ +%! +% Patch by TVZ +% Makes dvips files draw rules with stroke rather than fill. +% Makes narrow rules more predictable at low resolutions +% after distilling to PDF. +% May have unknown consequences for very thick rules. +% Tested only with dvips 5.85(k). +TeXDict begin +/QV { + gsave newpath /ruleY X /ruleX X + Rx Ry gt + { ruleX ruleY Ry 2 div sub moveto Rx 0 rlineto Ry } + { ruleX Rx 2 div add ruleY moveto 0 Ry neg rlineto Rx } + ifelse + setlinewidth 0 setlinecap stroke grestore +} bind def +end |