Re: [NTG-context] How to make a natural table float.

2007-02-05 Thread Wolfgang Schuster
On Fri, 2 Feb 2007 15:30:30 -0500
John R. Culleton [EMAIL PROTECTED] wrote:

 On Friday 02 February 2007 13:29, Peter Rolf wrote:
  John R. Culleton wrote:
   On Wednesday 31 January 2007 19:31, John R. Culleton wrote:
   OK I solved that problem by enclosing the table in {} and now the table
   floats. But now I have a wierder one.  The \setupcaptions[location=high]
   command puts the caption alongside the table instead of over it.
   Unfortunately the customer specifies over rather than under.
  
   To isloate the problem I extracted the table and reran it in a test file:
   --
   \setupoutput[pdftex]
   \setupcaptions[location=high]
 
 
 Eyes saw top, brain transliterated it to high, effect was wrong.  Now I 
 am 
 all better. The other effect was interesting though.  I also discovered that 
 if I use placefigure instead of placetable it works but the caption says 
 figure instead of table. My customer likes to misname things, like calling

Hi John,

you can get same result with placetable by changing the text from table
to figure with \setuplabeltext[table=Figure ]

You see, ConTeXt has better ways to do things like this.

Wolfgang
 
 tables figures, and parts sections.  This latter aberration is becoming 
 common. Context allows me to adapt even to bad nomenclature. 
 
 Thanks to you and Wolfgang.  Frequently my Celtic brain needs Teutonic 
 correction :) 
 -- 
 John Culleton
 Able Indexing and Typesetting
 Precision typesetting (tm) at reasonable cost.
 Satisfaction guaranteed. 
 http://wexfordpress.com
 
 ___
 ntg-context mailing list
 ntg-context@ntg.nl
 http://www.ntg.nl/mailman/listinfo/ntg-context
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] How to make a natural table float.

2007-02-02 Thread John R. Culleton
On Wednesday 31 January 2007 19:31, John R. Culleton wrote:


 OK I solved that problem by enclosing the table in {} and now the table
 floats. But now I have a wierder one.  The \setupcaptions[location=high]
 command puts the caption alongside the table instead of over it.
 Unfortunately the customer specifies over rather than under.

To isloate the problem I extracted the table and reran it in a test file:
--
\setupoutput[pdftex]
\setupcaptions[location=high]
\starttext
\placetable[here][tab:comp]{Comparison of Corporate and Government Bond 
Portfolios}
{\setupTABLE[r][even][background=screen]
\bTABLE
\bTR
\bTD 
\eTD
\bTD Corporate Portfolio
\eTD
\bTD Government Portfolio
\eTD
\eTR
\bTR
\bTD Starting Value
\eTD
\bTD \$100,000
\eTD
\bTD \$100,000
\eTD
\eTR
\eTABLE
}
\stoptext

The caption still apears to the left side of the table, not above it. 

-- 
John Culleton
Able Indexing and Typesetting
Precision typesetting (tm) at reasonable cost.
Satisfaction guaranteed. 
http://wexfordpress.com

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] How to make a natural table float.

2007-02-02 Thread Wolfgang Schuster
On Fri, 2 Feb 2007 11:14:53 -0500
John R. Culleton [EMAIL PROTECTED] wrote:

 On Wednesday 31 January 2007 19:31, John R. Culleton wrote:
 
 
  OK I solved that problem by enclosing the table in {} and now the table
  floats. But now I have a wierder one.  The \setupcaptions[location=high]

\setupcaptions[location=top]

The manual is your friend (cont-enp and setup-en).

Wolfgang

  command puts the caption alongside the table instead of over it.
  Unfortunately the customer specifies over rather than under.
 
 To isloate the problem I extracted the table and reran it in a test file:
 --
 \setupoutput[pdftex]
 \setupcaptions[location=high]
 \starttext
 \placetable[here][tab:comp]{Comparison of Corporate and Government Bond 
 Portfolios}
 {\setupTABLE[r][even][background=screen]
 \bTABLE
 \bTR
 \bTD 
 \eTD
 \bTD Corporate Portfolio
 \eTD
 \bTD Government Portfolio
 \eTD
 \eTR
 \bTR
 \bTD Starting Value
 \eTD
 \bTD \$100,000
 \eTD
 \bTD \$100,000
 \eTD
 \eTR
 \eTABLE
 }
 \stoptext
 
 The caption still apears to the left side of the table, not above it. 
 
 -- 
 John Culleton
 Able Indexing and Typesetting
 Precision typesetting (tm) at reasonable cost.
 Satisfaction guaranteed. 
 http://wexfordpress.com
 
 ___
 ntg-context mailing list
 ntg-context@ntg.nl
 http://www.ntg.nl/mailman/listinfo/ntg-context
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] How to make a natural table float.

2007-02-02 Thread luigi scarso
 
 The caption still apears to the left side of the table, not above it.
I will see it this weekend.
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] How to make a natural table float.

2007-02-02 Thread Peter Rolf
John R. Culleton wrote:
 On Wednesday 31 January 2007 19:31, John R. Culleton wrote:
 
 OK I solved that problem by enclosing the table in {} and now the table
 floats. But now I have a wierder one.  The \setupcaptions[location=high]
 command puts the caption alongside the table instead of over it.
 Unfortunately the customer specifies over rather than under.
 
 To isloate the problem I extracted the table and reran it in a test file:
 --
 \setupoutput[pdftex]
 \setupcaptions[location=high]

try location=top, as high seems to mean something different here (dunno).


Greetings, Peter

 \starttext
 \placetable[here][tab:comp]{Comparison of Corporate and Government Bond 
 Portfolios}
 {\setupTABLE[r][even][background=screen]
 \bTABLE
 \bTR
 \bTD 
 \eTD
 \bTD Corporate Portfolio
 \eTD
 \bTD Government Portfolio
 \eTD
 \eTR
 \bTR
 \bTD Starting Value
 \eTD
 \bTD \$100,000
 \eTD
 \bTD \$100,000
 \eTD
 \eTR
 \eTABLE
 }
 \stoptext
 
 The caption still apears to the left side of the table, not above it. 
 

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] How to make a natural table float.

2007-02-02 Thread Wolfgang Werners-Lucchini
On 2 Feb 2007 at 19:17, [EMAIL PROTECTED] wrote:

 \setupcaptions[location=high]

What about 'top'?

Wolfgang
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] How to make a natural table float.

2007-02-02 Thread John R. Culleton
On Friday 02 February 2007 13:29, Peter Rolf wrote:
 John R. Culleton wrote:
  On Wednesday 31 January 2007 19:31, John R. Culleton wrote:
  OK I solved that problem by enclosing the table in {} and now the table
  floats. But now I have a wierder one.  The \setupcaptions[location=high]
  command puts the caption alongside the table instead of over it.
  Unfortunately the customer specifies over rather than under.
 
  To isloate the problem I extracted the table and reran it in a test file:
  --
  \setupoutput[pdftex]
  \setupcaptions[location=high]


Eyes saw top, brain transliterated it to high, effect was wrong.  Now I am 
all better. The other effect was interesting though.  I also discovered that 
if I use placefigure instead of placetable it works but the caption says 
figure instead of table. My customer likes to misname things, like calling 
tables figures, and parts sections.  This latter aberration is becoming 
common. Context allows me to adapt even to bad nomenclature. 

Thanks to you and Wolfgang.  Frequently my Celtic brain needs Teutonic 
correction :) 
-- 
John Culleton
Able Indexing and Typesetting
Precision typesetting (tm) at reasonable cost.
Satisfaction guaranteed. 
http://wexfordpress.com

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] How to make a natural table float.

2007-02-02 Thread luigi scarso
On 2/2/07, Wolfgang Schuster [EMAIL PROTECTED] wrote:
 On Fri, 2 Feb 2007 11:14:53 -0500
 John R. Culleton [EMAIL PROTECTED] wrote:

  On Wednesday 31 January 2007 19:31, John R. Culleton wrote:
 
  
   OK I solved that problem by enclosing the table in {} and now the table
   floats. But now I have a wierder one.  The \setupcaptions[location=high]

 \setupcaptions[location=top]


OK even with last pdftex+context distro
This is pdfTeXk, Version 3.141592-1.40.2 (Web2C 7.5.6) (format=cont-en
2007.2.1)  3 FEB 2007 05:56
entering extended mode
\write18 enabled.
 %-line parsing enabled.
 (/opt/texlive/2005-test/texmf/web2c/natural.tcx)
**test.tex emergencyend
(./test.tex

ConTeXt  ver: 2007.01.23 13:32 MKII  fmt: 2007.2.1  int: english/english
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] How to make a natural table float.

2007-01-31 Thread John R. Culleton
My task requires alternating whate and gray bars for a table. I was happy to 
jump on the Natural Table facility. Further, I want the table to float in 
the classic TeX fashion. I don't know the exact code for this in Context.

This doesn't work:

\setupcaptions[location=high]
\placetable[here][tab:comp]{Comparison of Corporate and Government Bond 
Portfolios}
\setupTABLE[r][even][background=screen]
\bTABLE
...
\eTABLE
-
I get the message:
! Missing { inserted.
etc.

-- 
John Culleton
Able Indexing and Typesetting
Precision typesetting (tm) at reasonable cost.
Satisfaction guaranteed. 
http://wexfordpress.com

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] How to make a natural table float.

2007-01-31 Thread Aditya Mahajan
On Wed, 31 Jan 2007, John R. Culleton wrote:

 My task requires alternating whate and gray bars for a table. I was happy to
 jump on the Natural Table facility. Further, I want the table to float in
 the classic TeX fashion. I don't know the exact code for this in Context.

 This doesn't work:
 
 \setupcaptions[location=high]
 \placetable[here][tab:comp]{Comparison of Corporate and Government Bond
 Portfolios}
{
 \setupTABLE[r][even][background=screen]
 \bTABLE
 ...
 \eTABLE
}

 I get the message:
 ! Missing { inserted.
 etc.

Add the braces: See above.

Aditya
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] How to make a natural table float.

2007-01-31 Thread John R. Culleton
On Wednesday 31 January 2007 17:16, John R. Culleton wrote:
 My task requires alternating whate and gray bars for a table. I was happy
 to jump on the Natural Table facility. Further, I want the table to float
 in the classic TeX fashion. I don't know the exact code for this in
 Context.

 This doesn't work:
 
 \setupcaptions[location=high]
 \placetable[here][tab:comp]{Comparison of Corporate and Government Bond
 Portfolios}
 \setupTABLE[r][even][background=screen]
 \bTABLE
 ...
 \eTABLE
 ---
-- I get the message:
 ! Missing { inserted.
 etc.

OK I solved that problem by enclosing the table in {} and now the table 
floats. But now I have a wierder one.  The \setupcaptions[location=high] 
command puts the caption alongside the table instead of over it. Unfortunately 
the customer specifies over rather than under. 
-- 
John Culleton
Able Indexing and Typesetting
Precision typesetting (tm) at reasonable cost.
Satisfaction guaranteed. 
http://wexfordpress.com

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context