* Adjusting topspace for letterhead in layer construct
@ 2014-11-19 17:41 jdh
2014-11-19 21:45 ` Wolfgang Schuster
0 siblings, 1 reply; 2+ messages in thread
From: jdh @ 2014-11-19 17:41 UTC (permalink / raw)
To: ConTeXt Typesetting
mtx-context | current version: 2014.10.18 14:30
I only want about 3 to 5 mm between the physical top of the page and the
top of the letterhead (in this example, a company's and contact
information).
In \setlayer I set y=3mm
The pdf view of the output looks good, but an actual printout (and a
look at a print preview with a pdf viewer) of the generated pdf file
puts the top of the letterhead about 17 mm down from the top edge. This
is too much. I tried adjusting topspace and topdistance to 0 didn't
seem to have any affect.
I am using theh ConText standalone: mtx-context version: 2014.10.18 14:30
Here is a simple minimal exmple:
%
% Start of minimal example
\setuppapersize[letter][letter]
\setuppagenumbering[location=footer]
\setuplayout[
backspace=31mm,
header=5mm,
rightmargin=2cm, leftmargin=2cm ]
\definelayer
[Logo] % name of the layer we are defining
[ repeat=yes,
x=5mm,y=3mm, % Just what is this?
hoffset=0mm,voffset=0mm, % and what is this? ...offset from where?
width=\paperwidth
]
\setupTABLE[r][1,2,3][height=5mm,frame=off] % Put letterhead
information in here.
\starttext
\setlayer[Logo][]
{
\bTABLE
\bTR
\bTD \eTD \bTD \sc{Company Name}\eTD \bTD
\sc{info}@\sc{something}.\sc{where} \eTD
\eTR
\bTR
\bTD \eTD \bTD 2059 Forest Ave, Ste X \eTD \bTD
\sc{www}.\sc{domain}.\sc{topleveldomain} \eTD
\eTR
\bTR
\bTD \eTD \bTD City, Province \eTD \bTD Tel (xxx) 999-1234 \eTD
\eTR
\eTABLE
}
\setupbackgrounds[page][background=Logo]
~ % Need `` to avoid a NULL content page so can generate a pdf
\stoptext
%
% End of minimal example
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Adjusting topspace for letterhead in layer construct
2014-11-19 17:41 Adjusting topspace for letterhead in layer construct jdh
@ 2014-11-19 21:45 ` Wolfgang Schuster
0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Schuster @ 2014-11-19 21:45 UTC (permalink / raw)
To: mailing list for ConTeXt users
> Am 19.11.2014 um 18:41 schrieb jdh <dhenman@gmail.com>:
>
>
>
> mtx-context | current version: 2014.10.18 14:30
>
> I only want about 3 to 5 mm between the physical top of the page and the top of the letterhead (in this example, a company's and contact information).
>
> In \setlayer I set y=3mm
>
>
> The pdf view of the output looks good, but an actual printout (and a look at a print preview with a pdf viewer) of the generated pdf file puts the top of the letterhead about 17 mm down from the top edge. This is too much. I tried adjusting topspace and topdistance to 0 didn't seem to have any affect.
Check your printer settings, most printers downscale the document when the distance between the text and the margins are too small.
Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-11-19 21:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-19 17:41 Adjusting topspace for letterhead in layer construct jdh
2014-11-19 21:45 ` Wolfgang Schuster
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).