ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Center (horizontal + vertical) an image in \setframed
@ 2011-12-31 14:33 Jan Heinen
  2011-12-31 14:44 ` luigi scarso
  2012-01-01  9:23 ` Center (horizontal + vertical) an image in \setframed Wolfgang Schuster
  0 siblings, 2 replies; 9+ messages in thread
From: Jan Heinen @ 2011-12-31 14:33 UTC (permalink / raw)
  To: ntg-context

Hello

I want to center (horizontal and vertical) an image in a frame.
1. What Do I have to add?

     \setlayerframed [Kontaktdaten]
       [
     width=120mm,
     height=120mm,
     hoffset=50mm,
     voffset=50mm
       ]
       [strut=no,offset=overlay,frame=on]
       {\externalfigure[cow][width=100mm,height=100mm]}%



2. This is a complete example. I used a second \setframed to 
show the area in which the cow should be centered and middled:



\definelayer    [Kontaktdaten]
         [x=0mm, y=0mm,
         width=\paperwidth, height=\paperheight]
\setupbackgrounds [paper]
   [
     background=Kontaktdaten,
     state=start
   ]%
\starttext
     \setlayerframed [Kontaktdaten]
       [
     width=120mm,
     height=120mm,
     hoffset=50mm,
     voffset=50mm
       ]
       [strut=no,offset=overlay,frame=on]
       {\framed [width=120mm, height=120mm]{~}}%

     \setlayerframed [Kontaktdaten]
       [
     width=120mm,
     height=120mm,
     hoffset=50mm,
     voffset=50mm
       ]
       [strut=no,offset=overlay,frame=on]
       {\externalfigure[cow][width=100mm,height=100mm]}%

test
\page
\stoptext



I wish You a Happy New Year
Jannis

___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 9+ messages in thread
* Pagereferences to more than one page
@ 2012-01-01 18:37 Jan Heinen
  0 siblings, 0 replies; 9+ messages in thread
From: Jan Heinen @ 2012-01-01 18:37 UTC (permalink / raw)
  To: ntg-context

Happy New Year!

I want to reference to more than one page. In the exampe 
above only page 2 is referenced - how to get 2,4 ?


\starttext
You can find red vehicles on \at{page:}[red]

Here I want to see: "You can find red vehicles on page 2,4" 
(only page 2 is wrong)
\page

\pagereference[red]Here is a red car.
\page

\pagereference[green]Here is a green car.
\page

\pagereference[red]Here is a red bus.
\page

\pagereference[green]Here is a green car.
\page

\stoptext



Regards
Jannis

___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

end of thread, other threads:[~2012-01-02 18:28 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-31 14:33 Center (horizontal + vertical) an image in \setframed Jan Heinen
2011-12-31 14:44 ` luigi scarso
2011-12-31 17:48   ` Jan Heinen
2012-01-02 16:21     ` Pagereferences to more than one page Jan Heinen
2012-01-02 16:29       ` Hans Hagen
2012-01-02 16:30       ` luigi scarso
2012-01-02 18:28         ` luigi scarso
2012-01-01  9:23 ` Center (horizontal + vertical) an image in \setframed Wolfgang Schuster
2012-01-01 18:37 Pagereferences to more than one page Jan Heinen

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