Re: [NTG-context] mirrored pages

2007-04-19 Thread Horacio Suarez

Incredible. Thankyou very much.

I cant believe I didn´t see that.


From: Hans Hagen <[EMAIL PROTECTED]>
Reply-To: mailing list for ConTeXt users 
To: mailing list for ConTeXt users 
Subject: Re: [NTG-context] mirrored pages
Date: Thu, 19 Apr 2007 22:27:27 +0200

Horacio Suarez wrote:
> I�ve made a mistake and replyed to Mari Voipio. Sorry, Mari.
>
> I need to print in a laser printer mirrored. The page should as is
> viewed in a mirror. All the pages. Fliped horizontally.
\setuppapersize[A4][A4,mirrored]

\starttext

\dorecurse{10}{\input tufte \relax}

\stoptext

>
> Thankyou very much.
>
>
>> From: Hans Hagen <[EMAIL PROTECTED]>
>> Reply-To: mailing list for ConTeXt users 
>> To: mailing list for ConTeXt users 
>> Subject: Re: [NTG-context] mirrored pages
>> Date: Thu, 19 Apr 2007 11:24:35 +0200
>>
>> Horacio Suarez wrote:
>> > Hello all:
>> >
>> > Is there a way to obtain a mirrored pdf?
>> >
>> > I don�t have a postscript printer. I been doing that in Acrobat 
using

>> > a plugin, but I�m trying to avoid Adobe Acrobat.
>> >
>> > i�m using context 2007.02.21 11:55, running from SciTe, Ghostscript
>> > 8.56 and GSview 4.8
>> what do you mean with mirrored?
>>
>> 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
>> -
>>
>> ___
>> ntg-context mailing list
>> ntg-context@ntg.nl
>> http://www.ntg.nl/mailman/listinfo/ntg-context
>
> _
> Don't just search. Find. Check out the new MSN Search!
> http://search.msn.click-url.com/go/onm00200636ave/direct/01/
>
> 
>
> ___
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>


--

-
  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


_
Express yourself instantly with MSN Messenger! Download today it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


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


Re: [NTG-context] mirrored pages

2007-04-19 Thread Hans Hagen
Horacio Suarez wrote:
> I�ve made a mistake and replyed to Mari Voipio. Sorry, Mari.
>
> I need to print in a laser printer mirrored. The page should as is 
> viewed in a mirror. All the pages. Fliped horizontally.
\setuppapersize[A4][A4,mirrored]

\starttext

\dorecurse{10}{\input tufte \relax}

\stoptext

>
> Thankyou very much.
>
>
>> From: Hans Hagen <[EMAIL PROTECTED]>
>> Reply-To: mailing list for ConTeXt users 
>> To: mailing list for ConTeXt users 
>> Subject: Re: [NTG-context] mirrored pages
>> Date: Thu, 19 Apr 2007 11:24:35 +0200
>>
>> Horacio Suarez wrote:
>> > Hello all:
>> >
>> > Is there a way to obtain a mirrored pdf?
>> >
>> > I don�t have a postscript printer. I been doing that in Acrobat using
>> > a plugin, but I�m trying to avoid Adobe Acrobat.
>> >
>> > i�m using context 2007.02.21 11:55, running from SciTe, Ghostscript
>> > 8.56 and GSview 4.8
>> what do you mean with mirrored?
>>
>> 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
>> -
>>
>> ___
>> ntg-context mailing list
>> ntg-context@ntg.nl
>> http://www.ntg.nl/mailman/listinfo/ntg-context
>
> _
> Don't just search. Find. Check out the new MSN Search! 
> http://search.msn.click-url.com/go/onm00200636ave/direct/01/
>
> 
>
> ___
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>   


-- 

-
  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] mirrored pages

2007-04-19 Thread Horacio Suarez

Thankyou very much!!



From: Wolfgang Schuster <[EMAIL PROTECTED]>
Reply-To: mailing list for ConTeXt users 
To: ntg-context@ntg.nl
Subject: Re: [NTG-context] mirrored pages
Date: Thu, 19 Apr 2007 20:40:20 +0200

On Thu, 19 Apr 2007 17:39:57 +
"Horacio Suarez" <[EMAIL PROTECTED]> wrote:

> I´ve made a mistake and replyed to Mari Voipio. Sorry, Mari.
>
> I need to print in a laser printer mirrored. The page should as is 
viewed in

> a mirror. All the pages. Fliped horizontally.
>
> Thankyou very much.
>

Hi Horacio,

the following code should work.


\unprotect

\def\c!mirrored{mirrored}

\def\docopypages[#1][#2]%
  {\bgroup
   \getfiguredimensions[#1]%
   \getparameters[\??ip]
 [\c!n=\noffigurepages,
  \c!marking=\v!off,
  \c!scale=\!!thousand,
  \c!offset=\!!zeropoint,
  \c!mirrored=\v!no,
  #2]%
   \dorecurse\@@ipn
 {\doif\@@ipmirrored\v!yes\domirrorbox
  \vbox to \textheight
{\hsize\textwidth
 \scratchdimen\@@ipoffset
 \centeredbox
   {\doifelse\@@ipmarking\v!on\cuthbox\hbox
  {\ifdim\scratchdimen>\zeropoint\relax
 \advance\vsize -2\scratchdimen
 \advance\hsize -2\scratchdimen
 \externalfigure[#1][\c!page=\recurselevel,#2,\c!scale=,
\c!factor=\v!max,\c!offset=\v!overlay]% \else
 \externalfigure[#1][\c!page=\recurselevel,#2,\c!offset=
\v!overlay]% \fi}}}
  \page}
   \egroup}

\protect

\setuppapersize[A4][A4]
\setuplayout[page]
\starttext
\copypages[file.pdf][mirrored=yes]
\stoptext


Gruß

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


_
Express yourself instantly with MSN Messenger! Download today it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


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


Re: [NTG-context] mirrored pages

2007-04-19 Thread Wolfgang Schuster
On Thu, 19 Apr 2007 17:39:57 +
"Horacio Suarez" <[EMAIL PROTECTED]> wrote:

> I´ve made a mistake and replyed to Mari Voipio. Sorry, Mari.
> 
> I need to print in a laser printer mirrored. The page should as is viewed in 
> a mirror. All the pages. Fliped horizontally.
> 
> Thankyou very much.
> 

Hi Horacio,

the following code should work.


\unprotect

\def\c!mirrored{mirrored}

\def\docopypages[#1][#2]%
  {\bgroup
   \getfiguredimensions[#1]%
   \getparameters[\??ip]
 [\c!n=\noffigurepages,
  \c!marking=\v!off,
  \c!scale=\!!thousand,
  \c!offset=\!!zeropoint,
  \c!mirrored=\v!no,
  #2]%
   \dorecurse\@@ipn
 {\doif\@@ipmirrored\v!yes\domirrorbox
  \vbox to \textheight
{\hsize\textwidth
 \scratchdimen\@@ipoffset
 \centeredbox
   {\doifelse\@@ipmarking\v!on\cuthbox\hbox
  {\ifdim\scratchdimen>\zeropoint\relax
 \advance\vsize -2\scratchdimen
 \advance\hsize -2\scratchdimen
 \externalfigure[#1][\c!page=\recurselevel,#2,\c!scale=,
\c!factor=\v!max,\c!offset=\v!overlay]% \else
 \externalfigure[#1][\c!page=\recurselevel,#2,\c!offset=
\v!overlay]% \fi}}}
  \page}
   \egroup}

\protect

\setuppapersize[A4][A4]
\setuplayout[page]
\starttext
\copypages[file.pdf][mirrored=yes]
\stoptext


Gruß

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


Re: [NTG-context] mirrored pages

2007-04-19 Thread Horacio Suarez

I´ve made a mistake and replyed to Mari Voipio. Sorry, Mari.

I need to print in a laser printer mirrored. The page should as is viewed in 
a mirror. All the pages. Fliped horizontally.


Thankyou very much.



From: Hans Hagen <[EMAIL PROTECTED]>
Reply-To: mailing list for ConTeXt users 
To: mailing list for ConTeXt users 
Subject: Re: [NTG-context] mirrored pages
Date: Thu, 19 Apr 2007 11:24:35 +0200

Horacio Suarez wrote:
> Hello all:
>
> Is there a way to obtain a mirrored pdf?
>
> I don�t have a postscript printer. I been doing that in Acrobat using
> a plugin, but I�m trying to avoid Adobe Acrobat.
>
> i�m using context 2007.02.21 11:55, running from SciTe, Ghostscript
> 8.56 and GSview 4.8
what do you mean with mirrored?

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
-

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


_
Don't just search. Find. Check out the new MSN Search! 
http://search.msn.click-url.com/go/onm00200636ave/direct/01/


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


Re: [NTG-context] mirrored pages

2007-04-19 Thread luigi scarso
> I frankly don't know if my solution is the most elegant one, but this
> works for me:
Given that you are elegant , then your solutions will be elegants . :)

> Mari
> (who found out about mirrored margins with the trial-and-error method
> before the wiki existed...)

luigi
(who believe that egrep will save the world...)
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] mirrored pages

2007-04-19 Thread Hans Hagen
Horacio Suarez wrote:
> Hello all:
>
> Is there a way to obtain a mirrored pdf?
>
> I don�t have a postscript printer. I been doing that in Acrobat using 
> a plugin, but I�m trying to avoid Adobe Acrobat.
>
> i�m using context 2007.02.21 11:55, running from SciTe, Ghostscript 
> 8.56 and GSview 4.8
what do you mean with mirrored? 

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
-

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


Re: [NTG-context] mirrored pages

2007-04-19 Thread Mari Voipio


On Wed, 18 Apr 2007, Horacio Suarez wrote:
> Is there a way to obtain a mirrored pdf?

Mirrored in what way? (I use Acrobat when necessary, but I'm not familiar 
with the plug-ins, which is why I have to ask...)


Do you mean mirror margins, i.e. inside and outside margins instead of 
left and right? For double-sided printing? Are you doing your pdf from 
ConTeXt source or do you just want to rearrange an existing pdf for mirror 
margin layout?

Mirror margins can be done in ConTeXt code. This wiki page gives the first 
hint on margins: http://wiki.contextgarden.net/Layout
Note that you always layout the 'odd' page, i.e the right-hand page and 
then define a double-sided layout (nb. even though the command 
\showlayout will give you several pages of layout, it will *only* show 
the right-hand layout - look at the text itself to make sure you got the 
mirror margins right).


I frankly don't know if my solution is the most elegant one, but this 
works for me:

\setuplayout
  [footer=1cm,
  backspace=5.5cm, %inside margin
  width=12cm] %textwidth, leaves 3.5cm for outside margin on A4

\setuppagenumbering
[alternative=doublesided, %this is where doublesided comes in
location={header,margin}] %pagenumber location

If you use the above page number location, the page number is placed just 
outside of outer margin in the header and you can see very easily if 
mirroring is in place.


I'm not sure if rearranging existing pdf works A4->A4, but if you need to 
do a book layout or leaflet or something similar, "imposition" is the term 
you want and pdfarrange can be the answer, see 
http://wiki.contextgarden.net/Imposition for more information and tips.



The other meaning for 'mirrored':
Do you, for some reason, really want to mirror a page like a mirror 
would reflect it, i.e. text backwards etc? Like for printing on t-shirt 
transfer?

I don't know if this can be done... I'd assume ConTeXt or texexec knows 
how to do it, I just haven't needed to find out (yet). :-)



Hope this helps,

Mari
(who found out about mirrored margins with the trial-and-error method 
before the wiki existed...)
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] mirrored pages

2007-04-18 Thread Horacio Suarez

Hello all:

Is there a way to obtain a mirrored pdf?

I don´t have a postscript printer. I been doing that in Acrobat using a 
plugin, but I´m trying to avoid Adobe Acrobat.


i´m using context 2007.02.21 11:55, running from SciTe, Ghostscript 8.56 and 
GSview 4.8


Thankyou very much.

_
Express yourself instantly with MSN Messenger! Download today it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


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