* Images centered on page : Solved [not found] <mailman.179.1195840896.4317.ntg-context@ntg.nl> @ 2007-11-23 20:39 ` Vyatcheslav Yatskovsky 2007-11-23 22:50 ` luigi scarso 0 siblings, 1 reply; 4+ messages in thread From: Vyatcheslav Yatskovsky @ 2007-11-23 20:39 UTC (permalink / raw) To: ntg-context-request@ntg.nl 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 script. I'm an imperative programmer to the marrow and never will be able to do such things. Luckily, now we have embedded Lua! Best regards, Vyatcheslav Yatskovsky ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Images centered on page : Solved 2007-11-23 20:39 ` Images centered on page : Solved Vyatcheslav Yatskovsky @ 2007-11-23 22:50 ` luigi scarso 2007-11-24 9:19 ` Wolfgang Schuster 0 siblings, 1 reply; 4+ messages in thread From: luigi scarso @ 2007-11-23 22:50 UTC (permalink / raw) To: mailing list for ConTeXt users On Nov 23, 2007 9:39 PM, Vyatcheslav Yatskovsky <yatskovsky@gmail.com> 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, not \vfill, but \vss) You approach was not so distant to solutions , you only forget that \vfill need a bit of attention. (hey even today sometimes i'm lost with \def and \edef...) Compare \starttext \vfill a \vfill \stoptext with \starttext \hskip1sp \vfill a \vfill \stoptext Given that 1sp is invisible to human eye , one can appreciate here a "butterfly effect" :)) -- 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 / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Images centered on page : Solved 2007-11-23 22:50 ` luigi scarso @ 2007-11-24 9:19 ` Wolfgang Schuster 2007-11-24 10:06 ` luigi scarso 0 siblings, 1 reply; 4+ messages in thread From: Wolfgang Schuster @ 2007-11-24 9:19 UTC (permalink / raw) To: ntg-context On Fri, 23 Nov 2007 23:50:42 +0100 "luigi scarso" <luigi.scarso@gmail.com> wrote: > On Nov 23, 2007 9:39 PM, Vyatcheslav Yatskovsky <yatskovsky@gmail.com> 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, not \vfill, but \vss) > > You approach was not so distant to solutions , you only forget that > \vfill need a bit of attention. > (hey even today sometimes i'm lost with \def and \edef...) > > Compare > \starttext > \vfill > a > \vfill > \stoptext > > with > \starttext > \hskip1sp > \vfill > a > \vfill > \stoptext > > Given that 1sp is invisible to human eye , > one can appreciate here a "butterfly effect" :)) Hi Luigi, you can use \dontleavehmode in this case. \starttext \dontleavehmode\vfill a \vfill \stoptext Wolfgang ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Images centered on page : Solved 2007-11-24 9:19 ` Wolfgang Schuster @ 2007-11-24 10:06 ` luigi scarso 0 siblings, 0 replies; 4+ messages in thread From: luigi scarso @ 2007-11-24 10:06 UTC (permalink / raw) To: mailing list for ConTeXt users > 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 effect as \leavevmode definition from plain macro package. Note however, that \leavevmode may conflict with \everypar tokens list. No such risk while using \quitvmode instead The primitive has been introduced in pdfTEX 1.21a. \hskip1sp give more the sense of invisible touch ... -- 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 / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-11-24 10:06 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- [not found] <mailman.179.1195840896.4317.ntg-context@ntg.nl> 2007-11-23 20:39 ` Images centered on page : Solved Vyatcheslav Yatskovsky 2007-11-23 22:50 ` luigi scarso 2007-11-24 9:19 ` Wolfgang Schuster 2007-11-24 10:06 ` luigi scarso
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).