ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Re: printing an envelope--solution.
  2005-06-01 14:15 printing an envelope--solution Vit Zyka
@ 2005-06-01 13:33 ` John R. Culleton
  2005-06-01 19:04   ` Hans Hagen
                     ` (4 more replies)
  0 siblings, 5 replies; 9+ messages in thread
From: John R. Culleton @ 2005-06-01 13:33 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: printing an envelope--solution.
@ 2005-06-01 14:15 Vit Zyka
  2005-06-01 13:33 ` John R. Culleton
  0 siblings, 1 reply; 9+ messages in thread
From: Vit Zyka @ 2005-06-01 14:15 UTC (permalink / raw)


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 --
--

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: printing an envelope--solution.
  2005-06-01 13:33 ` John R. Culleton
@ 2005-06-01 19:04   ` Hans Hagen
  2005-06-01 19:43   ` Otared Kavian
                     ` (3 subsequent siblings)
  4 siblings, 0 replies; 9+ messages in thread
From: Hans Hagen @ 2005-06-01 19:04 UTC (permalink / raw)


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
-----------------------------------------------------------------

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: printing an envelope--solution.
  2005-06-01 13:33 ` John R. Culleton
  2005-06-01 19:04   ` Hans Hagen
@ 2005-06-01 19:43   ` Otared Kavian
  2005-06-01 19:49   ` Patrick Gundlach
                     ` (2 subsequent siblings)
  4 siblings, 0 replies; 9+ messages in thread
From: Otared Kavian @ 2005-06-01 19:43 UTC (permalink / raw)



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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: printing an envelope--solution.
  2005-06-01 13:33 ` John R. Culleton
  2005-06-01 19:04   ` Hans Hagen
  2005-06-01 19:43   ` Otared Kavian
@ 2005-06-01 19:49   ` Patrick Gundlach
  2005-06-01 21:08   ` Otared Kavian
  2005-06-10 11:45   ` Otared Kavian
  4 siblings, 0 replies; 9+ messages in thread
From: Patrick Gundlach @ 2005-06-01 19:49 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: printing an envelope--solution.
  2005-06-01 13:33 ` John R. Culleton
                     ` (2 preceding siblings ...)
  2005-06-01 19:49   ` Patrick Gundlach
@ 2005-06-01 21:08   ` Otared Kavian
  2005-06-10 11:45   ` Otared Kavian
  4 siblings, 0 replies; 9+ messages in thread
From: Otared Kavian @ 2005-06-01 21:08 UTC (permalink / raw)



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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: printing an envelope--solution.
  2005-06-01 13:33 ` John R. Culleton
                     ` (3 preceding siblings ...)
  2005-06-01 21:08   ` Otared Kavian
@ 2005-06-10 11:45   ` Otared Kavian
  2005-06-10 14:00     ` Hans Hagen
  4 siblings, 1 reply; 9+ messages in thread
From: Otared Kavian @ 2005-06-10 11:45 UTC (permalink / raw)



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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: printing an envelope--solution.
  2005-06-10 11:45   ` Otared Kavian
@ 2005-06-10 14:00     ` Hans Hagen
  0 siblings, 0 replies; 9+ messages in thread
From: Hans Hagen @ 2005-06-10 14:00 UTC (permalink / raw)


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
-----------------------------------------------------------------

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: printing an envelope--solution.
  2005-05-30 18:58 printing an envelope John R. Culleton
@ 2005-06-01  8:30 ` John R. Culleton
  0 siblings, 0 replies; 9+ messages in thread
From: John R. Culleton @ 2005-06-01  8:30 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2005-06-10 14:00 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-06-01 14:15 printing an envelope--solution Vit Zyka
2005-06-01 13:33 ` John R. Culleton
2005-06-01 19:04   ` Hans Hagen
2005-06-01 19:43   ` Otared Kavian
2005-06-01 19:49   ` Patrick Gundlach
2005-06-01 21:08   ` Otared Kavian
2005-06-10 11:45   ` Otared Kavian
2005-06-10 14:00     ` Hans Hagen
  -- strict thread matches above, loose matches on Subject: below --
2005-05-30 18:58 printing an envelope John R. Culleton
2005-06-01  8:30 ` printing an envelope--solution John R. Culleton

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).