LATEX-L Archives

Mailing list for the LaTeX3 project


Options: Use Classic View

Use Proportional Font
Show Text Part by Default
Condense Mail Headers

Topic: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Sender: Mailing list for the LaTeX3 project <[log in to unmask]>
From: Karsten Tinnefeld <[log in to unmask]>
Date: Tue, 7 Mar 2000 10:19:16 +0100
In-Reply-To: Your message of "Mon, 06 Mar 2000 22:05:01 GMT." <[log in to unmask]>
Reply-To: Mailing list for the LaTeX3 project <[log in to unmask]>
Parts/Attachments: text/plain (82 lines)
> >  I do not want to have the code in a package.  This would
> > result in a patch.  A hook wouldn't blow the kernel up, the begin
> > document hook is only a few lines of code.
> even if it was 1 line of code (which actually it is as there is a begin
> page hook, but it disables itself after the first time, so it can be
> advertised as \AtBeginDvi) you would want it as a package.

Code like this has been lying around here for a while. Find below my
bophook.sty and a test file that marks the boundaries in DIN letters.

\ProvidesPackage{\filename}[\filedate\space v\fileversion\space
  bop-hook, K. Tinnefeld]
% PageLayout should contain margin- and textdimen. settings,
% e. g. changed in the ps@xxx commands.
\let \@pagelayout \relax
\let \@originpic \relax
  \unvbox \@begindvibox
  \global\let \@begindvi \@empty}
  \unvbox \@begindvibox
  \global\let \@begindvi \@originprint}
  \setbox\@tempboxa\vbox to\z@{%
    \vskip-1in \moveleft1in \vbox{%
  \box\@tempboxa \@pagelayout}

\documentclass[a4paper, oneside]{letter}
    \put(105,-22.5){\makebox(0,0){\Large Brief nach DIN 676 B--A4 (1995--05)}}
    %%% Faltmarken
    %%% Lochermarke

Karsten Tinnefeld                       [log in to unmask]
Fachbereich Informatik, Lehrstuhl 2                   T +49 231 755-4737
Universitšt Dortmund, D-44221 Dortmund, Deutschland   F +49 231 755-2047