Re: [NTG-context] Images centered on page : Solved

2007-11-24 Thread luigi scarso
> you can use \dontleavehmode in this case. yes, i know. \meaning\ \dontleavehmode gives \quitvmode \meaning\quitvmode gives \quitvmode hence \quitvmode is a primitive . \quitvmode The primitive instructs pdfTEX to quit the vertical mode and start typesetting a paragraph. \quitvmode has the same

Re: [NTG-context] Images centered on page : Solved

2007-11-24 Thread Wolfgang Schuster
On Fri, 23 Nov 2007 23:50:42 +0100 "luigi scarso" <[EMAIL PROTECTED]> wrote: > On Nov 23, 2007 9:39 PM, Vyatcheslav Yatskovsky <[EMAIL PROTECTED]> wrote: > > Hello, > > > > Thank you all very much. I'm pleased with number and quality of solutions > > to my problem. > Did you look in supp-box at c

Re: [NTG-context] Images centered on page

2007-11-24 Thread Wolfgang Schuster
On Fri, 23 Nov 2007 22:32:46 -0700 "Idris Samawi Hamid" <[EMAIL PROTECTED]> wrote: > On Fri, 23 Nov 2007 12:30:48 -0700, Wolfgang Schuster > <[EMAIL PROTECTED]> wrote: > > > \unprotect > > > > \def\fullpagebox > > {\bgroup > >\dowithnextbox > > {\!!widtha\dimexpr\paperwidth/\nextboxw

Re: [NTG-context] Images centered on page

2007-11-23 Thread Idris Samawi Hamid
On Fri, 23 Nov 2007 12:30:48 -0700, Wolfgang Schuster <[EMAIL PROTECTED]> wrote: > \unprotect > > \def\fullpagebox > {\bgroup >\dowithnextbox > {\!!widtha\dimexpr\paperwidth/\nextboxwd\relax > \!!widthb\dimexpr\paperheight/\nextboxht\relax > \ifdim\!!widtha>\!!widthb >

Re: [NTG-context] Images centered on page : Solved

2007-11-23 Thread luigi scarso
On Nov 23, 2007 9:39 PM, Vyatcheslav Yatskovsky <[EMAIL PROTECTED]> wrote: > Hello, > > Thank you all very much. I'm pleased with number and quality of solutions to > my problem. Did you look in supp-box at centerbox definition ? it' something like \vbox to \adimension{\vfill \vfill} (well, no

[NTG-context] Images centered on page : Solved

2007-11-23 Thread Vyatcheslav Yatskovsky
Hello, Thank you all very much. I'm pleased with number and quality of solutions to my problem. The winner solution is provided by Wolfgang Schuster. Simple \centeredbox{} makes all the magic I need. I was also amazed with quick porting of my Lua code for batch image processing to native TeX

Re: [NTG-context] Images centered on page

2007-11-23 Thread luigi scarso
amazing mailing list -- luigi ... it's new . it's powerful . it's luatex . http://www.luatex.org ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl

Re: [NTG-context] Images centered on page

2007-11-23 Thread Wolfgang Schuster
2007/11/23, Vyatcheslav Yatskovsky <[EMAIL PROTECTED]>: > Hello, > > How can I center the image on a page? I want images to cover the page > completely, and since they have proper size (roughly A4), I only need them to > be centered. Now they are stuck to the top, leaving a gap on bottom (and sam

Re: [NTG-context] Images centered on page

2007-11-23 Thread Idris Samawi Hamid
On Fri, 23 Nov 2007 10:46:16 -0700, Peter Münster <[EMAIL PROTECTED]> wrote: > On Fri, 23 Nov 2007, Vyatcheslav Yatskovsky wrote: > >> How can I center the image on a page? > > \setuplayout[page] > \starttext > \startstandardmakeup > \startalignment[middle] > \dontleavehmode > \externalfigure[imag

Re: [NTG-context] Images centered on page

2007-11-23 Thread Wolfgang Schuster
On Fri, 23 Nov 2007 18:55:37 +0200 Vyatcheslav Yatskovsky <[EMAIL PROTECTED]> wrote: > Hello, > > How can I center the image on a page? I want images to cover the page > completely, and since they have proper size (roughly A4), I only need them to > be centered. Now they are stuck to the top, l

Re: [NTG-context] Images centered on page

2007-11-23 Thread Idris Samawi Hamid
On Fri, 23 Nov 2007 10:31:08 -0700, luigi scarso <[EMAIL PROTECTED]> wrote: > On Nov 23, 2007 6:24 PM, Vyatcheslav Yatskovsky <[EMAIL PROTECTED]> > wrote: >> Hello Idris, >> >> Thank you. >> >> What is "display mode"? Simply >> >> \vfill\externalfigure[Image1.jpg]\vfill >> > \vbox to >

Re: [NTG-context] Images centered on page

2007-11-23 Thread Peter Münster
On Fri, 23 Nov 2007, Vyatcheslav Yatskovsky wrote: > How can I center the image on a page? \setuplayout[page] \starttext \startstandardmakeup \startalignment[middle] \dontleavehmode \externalfigure[image.png] \stopalignment \stopstandardmakeup \stoptext Cheers, Peter -- http://pmrb.free.fr/con

Re: [NTG-context] Images centered on page

2007-11-23 Thread Idris Samawi Hamid
On Fri, 23 Nov 2007 10:24:35 -0700, Vyatcheslav Yatskovsky <[EMAIL PROTECTED]> wrote: > Hello Idris, > > Thank you. > > What is "display mode"? Simply > > \vfill\externalfigure[Image1.jpg]\vfill > > doesn't work for me. Try . I'm sure there's a ConTeXt-ish solution for this as well (i

Re: [NTG-context] Images centered on page

2007-11-23 Thread luigi scarso
On Nov 23, 2007 6:24 PM, Vyatcheslav Yatskovsky <[EMAIL PROTECTED]> wrote: > Hello Idris, > > Thank you. > > What is "display mode"? Simply > > \vfill\externalfigure[Image1.jpg]\vfill > \vbox to \textheight{\vfill\vskip1sp\externalfigure[Image1.jpg]\vskip1sp\vfill} -- luigi _

Re: [NTG-context] Images centered on page

2007-11-23 Thread Vyatcheslav Yatskovsky
Hello Idris, Thank you. What is "display mode"? Simply \vfill\externalfigure[Image1.jpg]\vfill doesn't work for me. -- Best regards, Vyatcheslav Yatskovsky >> Hello, >> How can I center the image on a page? I want images to cover the page >> completely, and since they have proper

Re: [NTG-context] Images centered on page

2007-11-23 Thread Idris Samawi Hamid
On Fri, 23 Nov 2007 09:55:37 -0700, Vyatcheslav Yatskovsky <[EMAIL PROTECTED]> wrote: > Hello, > > How can I center the image on a page? I want images to cover the page > completely, and since they have proper size (roughly A4), I only need > them to be centered. Now they are stuck to the to

[NTG-context] Images centered on page

2007-11-23 Thread Vyatcheslav Yatskovsky
Hello, How can I center the image on a page? I want images to cover the page completely, and since they have proper size (roughly A4), I only need them to be centered. Now they are stuck to the top, leaving a gap on bottom (and same for left-right). I have the following script (note my Lua tri