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/
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
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/
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/
� 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 -----------------------------------------------------------------
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/
participants (3)
-
Hans Hagen
-
Peter Münster
-
Taco Hoekwater