Re: [NTG-context] printing an envelope--solution.

2005-06-01 Thread John R. Culleton
On Monday 30 May 2005 06:58 pm, John R. Culleton wrote:
 Using my my Ricoh AP2600 printer I want to feed envelopes with
 the narrow side first, which means the the print image must be
 rotated 90 degrees. It is not clear how this can be done in
 Context. Here is an example file:
-- 
snip

Never mind. I did it in plain TeX with pstricks thus:

\input pstricks
\special{papersize=4.25in,9.5in}
\voffset 4.5in
\parindent 0pt
\parskip 0pt
\def\crlf{\hfil\break}
\rput{90}{
\vbox{
John Culleton\crlf
2401 Haight Avenue\crlf
Eldersburg, MD 21784

{
\leftskip 3.75in
\obeylines
\input addr
}
}
}
\bye

Instead of printing a horizontal page and rotating the page
I printed a vertical page and rotated the text within it.

Still curious if there is a Context solution to this common
problem.

John Culleton



___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] printing an envelope--solution.

2005-06-01 Thread Hans Hagen

John R. Culleton wrote:

On Wednesday 01 June 2005 02:15 pm, Vit Zyka wrote:


\definepapersize[env][width=4.25in,height=9.5in]
\papersize[env][env]

\setuplayout
  [topspace=1in,bottomspace=1in,backspace=1.5in,cutspace=.5in,
   header=0pt,footer=0pt,margin=0pt,
   width=middle,height=middle]

\starttext
\rotated


!it blew up here. did not recognize \rotated



\rotate (no d)

--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] printing an envelope--solution.

2005-06-01 Thread Otared Kavian


On 1 juin 2005, at 15:33, John R. Culleton wrote:


On Wednesday 01 June 2005 02:15 pm, Vit Zyka wrote:

\definepapersize[env][width=4.25in,height=9.5in]
\papersize[env][env]

\setuplayout
   [topspace=1in,bottomspace=1in,backspace=1.5in,cutspace=.5in,
    header=0pt,footer=0pt,margin=0pt,
    width=middle,height=middle]

\starttext
\rotated

!it blew up here. did not recognize \rotated



Hi John,

That was the same for me: \rotated is not defined.
However looking into my ConTeXt archives I found an example about 
rotations, and after a new definition of your paper size discovered 
that the following works: I hope it is what you are looking for...


Best regards: OK

%%% envelope-2.tex
\definepapersize[env][width=9.5in,height=4.25in]

\setuppapersize
  [env,rotated] % this rotates the page
  [env,landscape] % onto a landscaped size

\setuplayout[location=left,width=middle,height=middle]

\showframe

\starttext
\startstandardmakeup
John Culleton\crlf
2401 Haight Avenue\crlf
Eldersburg, MD 21784
\blank
\hskip 3in \vbox{
Independent Contract Services\crlf
Landmark Community Newspapers\crlf
Carroll County Times\crlf
P.O. Box 346\crlf
Westminster MD 21158
}
\stopstandardmakeup
\stoptext


___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context