Re: Problems with printing envelopes.

Tomas By <[email protected]> Tue, 11 Nov 2025 13:43:13 +0100
Newsgroups gmane.comp.tex.texhax
Message-ID <[email protected]>
Hello,

I have checked your files (and also looked at the question you posted
on [La]tex SE), and I have to say the problem seems to be imaginary.

If you change to 'voffset=0mm' in the NewEnvelope command (line 73 in
demo.tex) then the address is in the corner with no margins.

And in your PDF (demo.pdf) the left (or top after rotation), margin
seems to be zero (and you have `hoffset=0mm' in the file).

Changing to `hoffset=12mm' seems to produce a margin that is the same
as the other one, not much larger as you seem to be saying.

If there is still an actual problem, you need to explain exactly what
you are doing to produce the files, which programs and commands you
use. It could be, for example, that the printer driver adds margins.

(I'm using standard Latex on latest Ubuntu.)

/Tomas


On Tue, 11 Nov 2025 07:39:10 +0100, Rolf Turner wrote:
> The essential problem is that the left hand margin (this is actually
> the *top* margin after the document has been rotated 90 degrees
> clockwise so as to align the envelope correctly with the printer) is
> too large.  The envelopes come out with a left hand margin
> of (at least) 35 mm. whereas I would like it to be 12 mm.
> 
> In the document that my helpful interlocutor provided, the margins seem
> to be controlled by the quantities "return hoffset" and "return
> voffset".  (See the attached file "demo.tex".)
> 
> Setting "return voffset=12mm" works just fine.  It gives a distance of
> 12 mm. between the upper edge of the envelope and the top of the return
> address.  As desired.
> 
> However setting "return hoffset=12mm" produces a distance between
> the left hand edge of the envelope and the return address which is much
> too large. Even if this quantity is set to 0mm or 0pt, the distance is
> still too large.
> 
> I tried setting it to a negative value, but this had the effect of
> cutting off a segment of the return address.  The part of the return
> address that actually appeared was still 35 mm. from the left hand edge
> of the envelope.
> 
> It seems that a "hard" left hand margin of 35 mm. is imposed and my
> understanding of the LaTeX code provided is inadequate for me to see
> how to change this.
> 
> Can someone, cleverer and more knowledgeable than I, point me in the
> right direction?  I have attached the LaTeX code (that I cannot
> properly understand), demo.tex, and the resulting demo.pdf file.
> The document in demo.pdf has been rotated 90 degrees clockwise by my
> pdf viewer so that it is all ready to be printed onto paper/hard copy.