Re: [NTG-context] printing an envelope--solution.
![](https://secure.gravatar.com/avatar/3f064216b5088b4646c82e1fc2d58293.jpg?s=120&d=mm&r=g)
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
What about something like: \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 [rotation=90] {\rbox{ Name\\ Street\\ State }}% \stoptext vit ---------------------------------------------------------------- <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 -- Vít Zýka --- http://typokvitek.com Automatic document typesetting Automaticka sazba dokumentu -- --
![](https://secure.gravatar.com/avatar/8b3c344f0adba6016612e05447039f44.jpg?s=120&d=mm&r=g)
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
-- John Culleton The answers to all your publishing questions are found in the excellent books listed in the word-famous shortlist! http://wexfordpress.com/tex/shortlist.pdf
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
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 -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/5faea8b4fa0adb143383811dc94f0d22.jpg?s=120&d=mm&r=g)
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
![](https://secure.gravatar.com/avatar/62c54476729274ddfefd6b1f53e311dc.jpg?s=120&d=mm&r=g)
Hello John, [...]
\rotated !it blew up here. did not recognize \rotated
if you are uncertain, go to http://texshow.contextgarden.net and search for something like "rotat" or so. Patrick -- ConTeXt wiki and more: http://contextgarden.net
![](https://secure.gravatar.com/avatar/5faea8b4fa0adb143383811dc94f0d22.jpg?s=120&d=mm&r=g)
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
![](https://secure.gravatar.com/avatar/5faea8b4fa0adb143383811dc94f0d22.jpg?s=120&d=mm&r=g)
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
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
Otared Kavian wrote:
That was the same for me: \rotated is not defined.
but \rotate is -) Hans ----------------------------------------------------------------- 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 -----------------------------------------------------------------
participants (5)
-
Hans Hagen
-
John R. Culleton
-
Otared Kavian
-
Patrick Gundlach
-
Vit Zyka