ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* figure in the middle of the page
@ 2006-06-19 10:07 andrea valle
  2006-06-19 10:21 ` Hans Hagen
  0 siblings, 1 reply; 13+ messages in thread
From: andrea valle @ 2006-06-19 10:07 UTC (permalink / raw)


Hi to all,
Sorry if it's obvious.

I'm preparing some slides and I'd like to have a figure in the middle 
of the slide.
With \placefigure I place it center-justified horizontally.
How can I force to be in the center of the text?

Thanks

Best

-a-


Andrea Valle
DAMS - Facoltà di Scienze della Formazione
Università degli Studi di Torino
http://www.semiotiche.it/andrea
andrea.valle@unito.it

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

* Re: figure in the middle of the page
  2006-06-19 10:07 figure in the middle of the page andrea valle
@ 2006-06-19 10:21 ` Hans Hagen
  2006-06-19 11:04   ` andrea valle
  0 siblings, 1 reply; 13+ messages in thread
From: Hans Hagen @ 2006-06-19 10:21 UTC (permalink / raw)


andrea valle wrote:
> Hi to all,
> Sorry if it's obvious.
>
> I'm preparing some slides and I'd like to have a figure in the middle 
> of the slide.
> With \placefigure I place it center-justified horizontally.
> How can I force to be in the center of the text?
>
>   
you mean middle of a page of its own? 

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] 13+ messages in thread

* Re: figure in the middle of the page
  2006-06-19 10:21 ` Hans Hagen
@ 2006-06-19 11:04   ` andrea valle
  2006-06-19 14:49     ` Aditya Mahajan
  0 siblings, 1 reply; 13+ messages in thread
From: andrea valle @ 2006-06-19 11:04 UTC (permalink / raw)


Yes,
a page for me represents a slide.

So I want to have a figure centered in the slide:

         |
-- figure --
         |


Thanks

-a-

On 19 Jun 2006, at 12:21, Hans Hagen wrote:

> andrea valle wrote:
>> Hi to all,
>> Sorry if it's obvious.
>>
>> I'm preparing some slides and I'd like to have a figure in the middle
>> of the slide.
>> With \placefigure I place it center-justified horizontally.
>> How can I force to be in the center of the text?
>>
>>
> you mean middle of a page of its own?
>
> 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
>
>
Andrea Valle
DAMS - Facoltà di Scienze della Formazione
Università degli Studi di Torino
http://www.semiotiche.it/andrea
andrea.valle@unito.it

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

* Re: figure in the middle of the page
  2006-06-19 11:04   ` andrea valle
@ 2006-06-19 14:49     ` Aditya Mahajan
       [not found]       ` <8815a141fdf15d1165214e62624f6dec@di.unito.it>
  0 siblings, 1 reply; 13+ messages in thread
From: Aditya Mahajan @ 2006-06-19 14:49 UTC (permalink / raw)


On Mon, 19 Jun 2006, andrea valle wrote:

> Yes,
> a page for me represents a slide.
>
> So I want to have a figure centered in the slide:
>
>         |
> -- figure --
>         |
>
>

This is what I do for my slides

\startslide
\vfill
\externalfigure[name][width=\textwidth]
\vfill
\stopslide

where I have startslide and stopslide defined to take care of some 
other things.

You can also try
\placefigure[][here]{..}{..} to get a figure number and caption


Aditya








> Thanks
>
> -a-
>
> On 19 Jun 2006, at 12:21, Hans Hagen wrote:
>
>> andrea valle wrote:
>>> Hi to all,
>>> Sorry if it's obvious.
>>>
>>> I'm preparing some slides and I'd like to have a figure in the middle
>>> of the slide.
>>> With \placefigure I place it center-justified horizontally.
>>> How can I force to be in the center of the text?
>>>
>>>
>> you mean middle of a page of its own?
>>
>> 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
>>
>>
> Andrea Valle
> DAMS - Facoltà di Scienze della Formazione
> Università degli Studi di Torino
> http://www.semiotiche.it/andrea
> andrea.valle@unito.it
>
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>
>
>

-- 
Aditya Mahajan, EECS Systems, University of Michigan
http://www.eecs.umich.edu/~adityam || Ph: 7342624008

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

* Re: figure in the middle of the page
       [not found]       ` <8815a141fdf15d1165214e62624f6dec@di.unito.it>
@ 2006-06-19 15:36         ` andrea valle
  2006-06-19 15:40           ` Hans Hagen
  2006-06-19 15:45           ` Thomas A. Schmitz
  0 siblings, 2 replies; 13+ messages in thread
From: andrea valle @ 2006-06-19 15:36 UTC (permalink / raw)



Thanks for the suggestion.
But it's after using \vfill that I decided to write to the list.
I had this code, which resembles your one:

\vfill
{\externalfigure[oggettiSonori/tipologia/spaziotipo][width=\textwidth]
}
\vfill
\page

here's the output

http://www.semiotiche.it/andrea/membrana/testFigure.pdf



-a-



Andrea Valle
DAMS - Facoltà di Scienze della Formazione
Università degli Studi di Torino
http://www.semiotiche.it/andrea
andrea.valle@unito.it

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

* Re: figure in the middle of the page
  2006-06-19 15:36         ` andrea valle
@ 2006-06-19 15:40           ` Hans Hagen
  2006-06-19 20:27             ` andrea valle
  2006-06-19 15:45           ` Thomas A. Schmitz
  1 sibling, 1 reply; 13+ messages in thread
From: Hans Hagen @ 2006-06-19 15:40 UTC (permalink / raw)


andrea valle wrote:
> Thanks for the suggestion.
> But it's after using \vfill that I decided to write to the list.
> I had this code, which resembles your one:
>
> \vfill
> {\externalfigure[oggettiSonori/tipologia/spaziotipo][width=\textwidth]
> }
> \vfill
> \page
>
> here's the output
>
> http://www.semiotiche.it/andrea/membrana/testFigure.pdf
>   
\startstandardmakeup
\centerbox{\externalfigure[oggettiSonori/tipologia/spaziotipo][width=\textwidth]}
\stopstandardmakeup

-----------------------------------------------------------------
                                          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] 13+ messages in thread

* Re: figure in the middle of the page
  2006-06-19 15:36         ` andrea valle
  2006-06-19 15:40           ` Hans Hagen
@ 2006-06-19 15:45           ` Thomas A. Schmitz
  2006-06-19 15:55             ` andrea valle
  1 sibling, 1 reply; 13+ messages in thread
From: Thomas A. Schmitz @ 2006-06-19 15:45 UTC (permalink / raw)


On Mon, 2006-06-19 at 17:36 +0200, andrea valle wrote:
> Thanks for the suggestion.
> But it's after using \vfill that I decided to write to the list.
> I had this code, which resembles your one:
> 
> \vfill
> {\externalfigure[oggettiSonori/tipologia/spaziotipo][width=\textwidth]
> }
> \vfill
> \page
> 
> here's the output
> 

\strut

\vfill

\externalfigure[oggettiSonori/tipologia/spaziotipo][width=\textwidth]

\vfill

\page

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

* Re: figure in the middle of the page
  2006-06-19 15:45           ` Thomas A. Schmitz
@ 2006-06-19 15:55             ` andrea valle
  2006-06-19 16:56               ` Thomas A. Schmitz
  0 siblings, 1 reply; 13+ messages in thread
From: andrea valle @ 2006-06-19 15:55 UTC (permalink / raw)


Thanks Thomas,
it works nice.
I still have not understood: what does \strut mean?

Best
-a-


On 19 Jun 2006, at 17:45, Thomas A. Schmitz wrote:

> On Mon, 2006-06-19 at 17:36 +0200, andrea valle wrote:
>> Thanks for the suggestion.
>> But it's after using \vfill that I decided to write to the list.
>> I had this code, which resembles your one:
>>
>> \vfill
>> {\externalfigure[oggettiSonori/tipologia/spaziotipo][width=\textwidth]
>> }
>> \vfill
>> \page
>>
>> here's the output
>>
>
> \strut
>
> \vfill
>
> \externalfigure[oggettiSonori/tipologia/spaziotipo][width=\textwidth]
>
> \vfill
>
> \page
>
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>
>
Andrea Valle
DAMS - Facoltà di Scienze della Formazione
Università degli Studi di Torino
http://www.semiotiche.it/andrea
andrea.valle@unito.it

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

* Re: figure in the middle of the page
  2006-06-19 15:55             ` andrea valle
@ 2006-06-19 16:56               ` Thomas A. Schmitz
  2006-06-19 20:23                 ` Hans van der Meer
  0 siblings, 1 reply; 13+ messages in thread
From: Thomas A. Schmitz @ 2006-06-19 16:56 UTC (permalink / raw)


Andrea,

I'm not a real expert, but what I've understood: \strut is an invisible
character with no width but the maximum lineheight (cont-eni, p. 72).
TeX discards glue such as \vfill or \hfill at the beginning of
horizontal or vertical boxes, so you have to fool it into believing
there is something before your \vfill. You could have an empty \vbox,
but \strut is the fastest and easiest way of achieving this.

HTH

Thomas


On Mon, 2006-06-19 at 17:55 +0200, andrea valle wrote:
> Thanks Thomas,
> it works nice.
> I still have not understood: what does \strut mean?
> 
> Best
> -a- 

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

* Re: figure in the middle of the page
  2006-06-19 16:56               ` Thomas A. Schmitz
@ 2006-06-19 20:23                 ` Hans van der Meer
  2006-06-19 21:04                   ` Hans Hagen
  2006-06-19 21:14                   ` Hans Hagen
  0 siblings, 2 replies; 13+ messages in thread
From: Hans van der Meer @ 2006-06-19 20:23 UTC (permalink / raw)


A strut is something with height and depth which is not really what  
you want, because it takes some vertical space away.
Ususally what I use is a TeX primitive "\null" that typesets an empty  
box; I don't think its typesetting will differ significantly from  
typesetting a strut:
\page
\null
\vfill
text
\vfill
\null
\page

Hans van der Meer

On Jun 19, 2006, at 18:56, Thomas A. Schmitz wrote:

> Andrea,
>
> I'm not a real expert, but what I've understood: \strut is an  
> invisible
> character with no width but the maximum lineheight (cont-eni, p. 72).
> TeX discards glue such as \vfill or \hfill at the beginning of
> horizontal or vertical boxes, so you have to fool it into believing
> there is something before your \vfill. You could have an empty \vbox,
> but \strut is the fastest and easiest way of achieving this.
>
> HTH
>
> Thomas
>
>
> On Mon, 2006-06-19 at 17:55 +0200, andrea valle wrote:
>> Thanks Thomas,
>> it works nice.
>> I still have not understood: what does \strut mean?
>>
>> Best
>> -a-
>
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context

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

* Re: figure in the middle of the page
  2006-06-19 15:40           ` Hans Hagen
@ 2006-06-19 20:27             ` andrea valle
  0 siblings, 0 replies; 13+ messages in thread
From: andrea valle @ 2006-06-19 20:27 UTC (permalink / raw)


Thanks to all.

(Thomas, I keep on customizing  the presentation template you sent me  
one year ago...)

-a-


On 19 Jun 2006, at 17:40, Hans Hagen wrote:

> andrea valle wrote:
>> Thanks for the suggestion.
>> But it's after using \vfill that I decided to write to the list.
>> I had this code, which resembles your one:
>>
>> \vfill
>> {\externalfigure[oggettiSonori/tipologia/spaziotipo][width=\textwidth]
>> }
>> \vfill
>> \page
>>
>> here's the output
>>
>> http://www.semiotiche.it/andrea/membrana/testFigure.pdf
>>
> \startstandardmakeup
> \centerbox{\externalfigure[oggettiSonori/tipologia/ 
> spaziotipo][width=\textwidth]}
> \stopstandardmakeup
>
> -----------------------------------------------------------------
>                                           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
>
>
Andrea Valle
DAMS - Facoltà di Scienze della Formazione
Università degli Studi di Torino
http://www.semiotiche.it/andrea
andrea.valle@unito.it

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

* Re: figure in the middle of the page
  2006-06-19 20:23                 ` Hans van der Meer
@ 2006-06-19 21:04                   ` Hans Hagen
  2006-06-19 21:14                   ` Hans Hagen
  1 sibling, 0 replies; 13+ messages in thread
From: Hans Hagen @ 2006-06-19 21:04 UTC (permalink / raw)


Hans van der Meer wrote:
> A strut is something with height and depth which is not really what  
> you want, because it takes some vertical space away.
> Ususally what I use is a TeX primitive "\null" that typesets an empty  
> box; I don't think its typesetting will differ significantly from  
> typesetting a strut:
> \page
> \null
> \vfill
> text
> \vfill
> \null
> \page
>
> Hans van der Meer
>   
indeed, but here i always use 

\startstandardmakeup 
\vfill
text
\vfill
\stopstandardmakeup 

one never knows what side effects \null can have, after all, it is a line 

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] 13+ messages in thread

* Re: figure in the middle of the page
  2006-06-19 20:23                 ` Hans van der Meer
  2006-06-19 21:04                   ` Hans Hagen
@ 2006-06-19 21:14                   ` Hans Hagen
  1 sibling, 0 replies; 13+ messages in thread
From: Hans Hagen @ 2006-06-19 21:14 UTC (permalink / raw)


Hans van der Meer wrote:
> A strut is something with height and depth which is not really what  
> you want, because it takes some vertical space away.
>   
in addition to this: using \showstruts will make struts visible 

-----------------------------------------------------------------
                                          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] 13+ messages in thread

end of thread, other threads:[~2006-06-19 21:14 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-19 10:07 figure in the middle of the page andrea valle
2006-06-19 10:21 ` Hans Hagen
2006-06-19 11:04   ` andrea valle
2006-06-19 14:49     ` Aditya Mahajan
     [not found]       ` <8815a141fdf15d1165214e62624f6dec@di.unito.it>
2006-06-19 15:36         ` andrea valle
2006-06-19 15:40           ` Hans Hagen
2006-06-19 20:27             ` andrea valle
2006-06-19 15:45           ` Thomas A. Schmitz
2006-06-19 15:55             ` andrea valle
2006-06-19 16:56               ` Thomas A. Schmitz
2006-06-19 20:23                 ` Hans van der Meer
2006-06-19 21:04                   ` Hans Hagen
2006-06-19 21:14                   ` Hans Hagen

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