ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* table-caption: centred or not??
@ 2006-03-08 17:37 Peter Münster
  2006-03-09  8:42 ` Taco Hoekwater
  0 siblings, 1 reply; 7+ messages in thread
From: Peter Münster @ 2006-03-08 17:37 UTC (permalink / raw)


Hello,
how are the rules, that determine if the caption is centred?
Here my test-case, "ok" means: this is how I like it and "not ok" means, I
don't like it:

\setupcaptions[width=\makeupwidth]
\def\MyTable#1{\placetable{\dorecurse{#1}{bla }}{\starttable[|c|]
  \NC This is a table.\NC\AR\stoptable}}
\starttext
\MyTable{2}  %     ok
\MyTable{10} % not ok
\MyTable{30} %     ok
\setupcaptions[align=middle]
\MyTable{2}  %     ok
\MyTable{10} %     ok
\MyTable{30} % not ok
\stoptext

What should I do, to get 3 times "ok" ?

Cheers, Peter

-- 
http://pmrb.free.fr/contact/

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

* Re: table-caption: centred or not??
  2006-03-08 17:37 table-caption: centred or not?? Peter Münster
@ 2006-03-09  8:42 ` Taco Hoekwater
  2006-03-09 18:25   ` Peter Münster
  0 siblings, 1 reply; 7+ messages in thread
From: Taco Hoekwater @ 2006-03-09  8:42 UTC (permalink / raw)



Hi Peter,

I see no easy solution. ConTeXT does different things depending
on whether or not the caption is wider than the table itself,
and that code is creating the problem in the first 'not ok'.

Greetings, Taco

Peter Münster wrote:
> Hello,
> how are the rules, that determine if the caption is centred?
> Here my test-case, "ok" means: this is how I like it and "not ok" means, I
> don't like it:
> 
> \setupcaptions[width=\makeupwidth]
> \def\MyTable#1{\placetable{\dorecurse{#1}{bla }}{\starttable[|c|]
>   \NC This is a table.\NC\AR\stoptable}}
> \starttext
> \MyTable{2}  %     ok
> \MyTable{10} % not ok
> \MyTable{30} %     ok
> \setupcaptions[align=middle]
> \MyTable{2}  %     ok
> \MyTable{10} %     ok
> \MyTable{30} % not ok
> \stoptext
> 
> What should I do, to get 3 times "ok" ?
> 
> Cheers, Peter
> 

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

* Re: table-caption: centred or not??
  2006-03-09  8:42 ` Taco Hoekwater
@ 2006-03-09 18:25   ` Peter Münster
  2006-03-10  8:29     ` Taco Hoekwater
  0 siblings, 1 reply; 7+ messages in thread
From: Peter Münster @ 2006-03-09 18:25 UTC (permalink / raw)


On Thu, 9 Mar 2006, Taco Hoekwater wrote:

> I see no easy solution. ConTeXT does different things depending
> on whether or not the caption is wider than the table itself,
> and that code is creating the problem in the first 'not ok'.

Hi Taco,
perhaps I could modify this code. Where is it?
Cheers, Peter

-- 
http://pmrb.free.fr/contact/

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

* Re: table-caption: centred or not??
  2006-03-09 18:25   ` Peter Münster
@ 2006-03-10  8:29     ` Taco Hoekwater
  2006-03-10 20:26       ` Peter Münster
  0 siblings, 1 reply; 7+ messages in thread
From: Taco Hoekwater @ 2006-03-10  8:29 UTC (permalink / raw)




Peter Münster wrote:
> Hi Taco,
> perhaps I could modify this code. Where is it?

In page-flt.tex, just search for 'caption'

Cheers, Taco

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

* Re: table-caption: centred or not??
  2006-03-10  8:29     ` Taco Hoekwater
@ 2006-03-10 20:26       ` Peter Münster
  2006-03-12 19:10         ` Hans Hagen
  0 siblings, 1 reply; 7+ messages in thread
From: Peter Münster @ 2006-03-10 20:26 UTC (permalink / raw)


On Fri, 10 Mar 2006, Taco Hoekwater wrote:

> Peter Münster wrote:
> > Hi Taco,
> > perhaps I could modify this code. Where is it?
> 
> In page-flt.tex, just search for 'caption'

Thanks, I've modified the definition of \dopreparestackcaptionaut, but
that does not change anything. Should I put a new item in the collector?
In fact, it's really strange, when you see on the same page one centred
caption, and another one left-aligned.
Cheers, Peter

-- 
http://pmrb.free.fr/contact/

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

* Re: table-caption: centred or not??
  2006-03-10 20:26       ` Peter Münster
@ 2006-03-12 19:10         ` Hans Hagen
  2006-03-13 17:37           ` Peter Münster
  0 siblings, 1 reply; 7+ messages in thread
From: Hans Hagen @ 2006-03-12 19:10 UTC (permalink / raw)


� wrote:
> On Fri, 10 Mar 2006, Taco Hoekwater wrote:
>
>   
>> Peter M�nster wrote:
>>     
>>> Hi Taco,
>>> perhaps I could modify this code. Where is it?
>>>       
>> In page-flt.tex, just search for 'caption'
>>     
>
> Thanks, I've modified the definition of \dopreparestackcaptionaut, but
> that does not change anything. Should I put a new item in the collector?
> In fact, it's really strange, when you see on the same page one centred
> caption, and another one left-aligned.
> Cheers, Peter
>
>   
(1) just set the 'minwidth' to a high value to control the first case
(2) in the second case, kind of disable optimal par building by using 
'broad'

\def\MyTable#1{\placetable{\dorecurse{#1}{bla }}{\starttable[|c|]
  \NC This is a table.\NC\AR\stoptable}}

\setupcaptions[width=\makeupwidth,minwidth=\makeupwidth]

\starttext
\MyTable{2}  %     ok
\MyTable{10} % not ok
\MyTable{30} %     ok

\setupcaptions[align={middle,broad}]

\MyTable{2}  %     ok
\MyTable{10} %     ok
\MyTable{30} % not ok

\stoptext



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

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

* Re: table-caption: centred or not??
  2006-03-12 19:10         ` Hans Hagen
@ 2006-03-13 17:37           ` Peter Münster
  0 siblings, 0 replies; 7+ messages in thread
From: Peter Münster @ 2006-03-13 17:37 UTC (permalink / raw)


On Sun, 12 Mar 2006, Hans Hagen wrote:

> (1) just set the 'minwidth' to a high value to control the first case

Hello Hans,
when using minwidth=\makeupwidth, the first caption is also left-aligned...

> (2) in the second case, kind of disable optimal par building by using 
> 'broad'

when using "broad", the second caption gets left-aligned...

My goal: one-line captions centred, but multi-line captions justified
normally.

Greetings, Peter

-- 
http://pmrb.free.fr/contact/

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

end of thread, other threads:[~2006-03-13 17:37 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-03-08 17:37 table-caption: centred or not?? Peter Münster
2006-03-09  8:42 ` Taco Hoekwater
2006-03-09 18:25   ` Peter Münster
2006-03-10  8:29     ` Taco Hoekwater
2006-03-10 20:26       ` Peter Münster
2006-03-12 19:10         ` Hans Hagen
2006-03-13 17:37           ` Peter Münster

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