On 30-Dec-08 11:50:21, Chris Schaller wrote:
> Hi,
> Trying to add printer's marks to my roff documents. I stumbled across
> groff's graphics commands, but all of them start from current location
> and I did not find a command to move the current location to an
> arbitrary position.
> 
> Is there any way to add those marks to a groff source or do I have to
> add postscript code via \X'ps: <I'm lost here>'?
> 
> Cheers,
>   Chris

If you're referring to "cut-marks" or "crop-marks", the following is
an example of what I have used.

It is invoked at the first (left-justified) printing position on a
page by

  \*[crop_marks]

The detailed metrics were defined by the application; you may probably
need to change these to suit yourself. But it can be done in troff!

Hoping this helps,
Ted.
======================================================================
.ds crop_marks \
\Z'\
\D't 100u'\h'-100u'\
\v'-7000u-0.7c'\h'-0.7c'\
\Z'\h'-0.2c'\D'l -0.8c 0''\Z'\v'-0.2c'\D'l 0 -0.8c''\
'\
\Z'\
\v'-7000u-0.7c'\h'210p+0.7c'\
\Z'\h'+0.2c'\D'l +0.8c 0''\Z'\v'-0.2c'\D'l 0 -0.8c''\
'\
\Z'\
\v'-7000u+414p+0.7c'\h'-0.7c'\
\Z'\h'-0.2c'\D'l -0.8c 0''\Z'\v'+0.2c'\D'l 0 +0.8c''\
'\
\Z'\
\v'-7000u+414p+0.7c'\h'210p+0.7c'\
\Z'\h'+0.2c'\D'l +0.8c 0''\Z'\v'+0.2c'\D'l 0 +0.8c''\
'\
\Z'\
\v'-7000u+207p'\h'-1.3c'\
\Z'\D'l -0.4c 0''\Z'\D'l 0 +0.8c''\Z'\D'l +0.4c 0''\Z'\D'l 0 -0.8c''\
\Z'\h'-0.2c'\D'c 0.4c''\
'\
\Z'\
\v'-7000u+207p'\h'+1.3c+210p'\
\Z'\D'l -0.4c 0''\Z'\D'l 0 +0.8c''\Z'\D'l +0.4c 0''\Z'\D'l 0 -0.8c''\
\Z'\h'-0.2c'\D'c 0.4c''\
'\
\Z'\
\v'-7000u-1.3c'\h'+105p'\
\Z'\D'l -0.8c 0''\Z'\D'l 0 +0.4c''\Z'\D'l +0.8c 0''\Z'\D'l 0 -0.4c''\
\Z'\h'-0.2c'\D'c 0.4c''\
'\
\Z'\
\v'-7000u+414p+1.3c'\h'+105p'\
\Z'\D'l -0.8c 0''\Z'\D'l 0 +0.4c''\Z'\D'l +0.8c 0''\Z'\D'l 0 -0.4c''\
\Z'\h'-0.2c'\D'c 0.4c''\
'



--------------------------------------------------------------------
E-Mail: (Ted Harding) <ted.hard...@manchester.ac.uk>
Fax-to-email: +44 (0)870 094 0861
Date: 30-Dec-08                                       Time: 12:19:39
------------------------------ XFMail ------------------------------


Reply via email to