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
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
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
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.
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
On Fri, 2 Feb 2007 15:30:30 -0500
"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
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
On Fri, 2 Feb 2007 11:14:53 -0500
"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]
\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
On 2/2/07, Wolfgang Schuster
On Fri, 2 Feb 2007 11:14:53 -0500 "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]
\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
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
participants (5)
-
Aditya Mahajan
-
John R. Culleton
-
luigi scarso
-
Peter Rolf
-
Wolfgang Schuster