summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2012-02-25 14:51:01 -0800
committerH. Peter Anvin <hpa@zytor.com>2012-02-25 14:51:01 -0800
commit13ac842709c2db2ed8402abcf1248c90a6df13e9 (patch)
tree9977313dc8342eb92b9bdf1e3a63b001d9dff272 /doc
parent8aa01db9b4bff40ec76c46c638d9fc9ec7d38f6c (diff)
downloadnasm-13ac842709c2db2ed8402abcf1248c90a6df13e9.tar.gz
nasm-13ac842709c2db2ed8402abcf1248c90a6df13e9.tar.bz2
nasm-13ac842709c2db2ed8402abcf1248c90a6df13e9.zip
doc: Allow repositioning the EPS logo
Allow specifying an offset from the computed position of the EPS logo: \M{logoxadj}{adjustment} \M{logoyadj}{adjustment} The adjustment is given in Postscript points (1/72" = 0.352778 mm) and using the Postscript coordinate system, with the origin in the lower left. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'doc')
-rwxr-xr-xdoc/genps.pl7
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/genps.pl b/doc/genps.pl
index c7c23cf..222db8a 100755
--- a/doc/genps.pl
+++ b/doc/genps.pl
@@ -1148,6 +1148,13 @@ if ( defined($metadata{epslogo}) &&
$x = ($psconf{pagewidth}-$width*$scale)/2;
$y = ($psconf{pageheight}-$height*$scale)/2;
+ if ( defined($metadata{logoxadj}) ) {
+ $x += $metadata{logoxadj};
+ }
+ if ( defined($metadata{logoyadj}) ) {
+ $y += $metadata{logoyadj};
+ }
+
print "BeginEPSF\n";
print $x, ' ', $y, " translate\n";
print $scale, " dup scale\n" unless ( $scale == 1 );