ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* two problems with natural tables
@ 2011-04-10 16:40 Florian Wobbe
  2011-04-11  7:18 ` Wolfgang Schuster
                   ` (2 more replies)
  0 siblings, 3 replies; 14+ messages in thread
From: Florian Wobbe @ 2011-04-10 16:40 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi,

1) I tried the following minimal example from http://archive.contextgarden.net/message/20110109.151431.f774696a.en.html

\placetable[split]{Test}
{\bTABLE[split=yes]
\dorecurse{60}{
\bTR \bTD hello \eTD \eTR
}
\eTABLE}

with the current context versions which works fine. However, if I insert the code in a big project with many setups it fails with the attached error message. So there are setups which cause this error. Unfortunately I couldn't figure out what causes the problem.

I could determine the context version at which my big document fails: 2010.12.22 14:07. The example still works in 2010.12.21 10:50.

Anyone got an idea which setups might cause this issue?

2) How do I get a small and bold header? This does not work:

\bTABLE
\setupTABLE[style=\tfx]
\setupTABLE[row][1][style=\bfx] % redundant w/ line 5
\bTABLEhead
\bTR[style=\bfx] \bTH Header \eTH \eTR
\eTABLEhead
\bTABLEbody
\bTR \bTD hello \eTD \eTR
\bTR \bTD world \eTD \eTR
\eTABLEbody
\eTABLE

Thanks!
Florian


! Missing number, treated as zero.

system          > tex > error on line 178 in file test.tex: Missing number, treated as zero ...

173     \placetable[split]{Test}
174     {\bTABLE[split=yes]
175     \dorecurse{60}{
176     \bTR \bTD hello \eTD \eTR
177     }
178 >>  \eTABLE}

<to be read again> 
                   {
\docompletefloat ...\vbox \floatcaptionattribute {
                                                  \doifelsemainfloatbody \cu...
<argument> ...loat {table}{}{split}{Test}\nextbox 
                                                  \else \docompletefloat {ta...
\thirdofthreearguments #1#2#3->#3
                                 
\xdocompletefloat ...afloat ,#3}{#4}\nextbox \fi }
                                                  \else \docompletefloat {#1...
\dodowithnextbox ...tefloat {table}{}{split}{Test}
                                                  \doifnotinset \v!text {spl...
...
l.178 \eTABLE
             }

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: two problems with natural tables
  2011-04-10 16:40 two problems with natural tables Florian Wobbe
@ 2011-04-11  7:18 ` Wolfgang Schuster
  2011-04-11  7:37   ` Florian Wobbe
  2011-04-11  7:57 ` Florian Wobbe
  2011-04-18 17:16 ` Wolfgang Schuster
  2 siblings, 1 reply; 14+ messages in thread
From: Wolfgang Schuster @ 2011-04-11  7:18 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 10.04.2011 um 18:40 schrieb Florian Wobbe:

> 2) How do I get a small and bold header? This does not work:
> 
> \bTABLE
> \setupTABLE[style=\tfx]
> \setupTABLE[row][1][style=\bfx] % redundant w/ line 5
> \bTABLEhead
> \bTR[style=\bfx] \bTH Header \eTH \eTR
> \eTABLEhead
> \bTABLEbody
> \bTR \bTD hello \eTD \eTR
> \bTR \bTD world \eTD \eTR
> \eTABLEbody
> \eTABLE

You mix too many setups, \bTH overwrites your setting for the row (\bTR[style=\tfx])
and also your other setting (\setupTABLE[row][1][style=\bfx]). Here is one to separate
the style and the markup

\startsetups table:style
	\setupTABLE[start] [style=\tfx]
	\setupTABLE[header][style=\bfx]
\stopsetups

\starttext

\bTABLE[setups=table:style]
\bTABLEhead
\bTR \bTD Header \eTD \eTR
\eTABLEhead
\bTABLEbody
\bTR \bTD Body \eTD \eTR
\eTABLEbody
\eTABLE

\stoptext

Wolfgang

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: two problems with natural tables
  2011-04-11  7:18 ` Wolfgang Schuster
@ 2011-04-11  7:37   ` Florian Wobbe
  2011-04-11  9:12     ` Wolfgang Schuster
  0 siblings, 1 reply; 14+ messages in thread
From: Florian Wobbe @ 2011-04-11  7:37 UTC (permalink / raw)
  To: mailing list for ConTeXt users

>> 2) How do I get a small and bold header? This does not work:
>> 
>> \bTABLE
>> \setupTABLE[style=\tfx]
>> \setupTABLE[row][1][style=\bfx] % redundant w/ line 5
>> \bTABLEhead
>> \bTR[style=\bfx] \bTH Header \eTH \eTR
>> \eTABLEhead
>> \bTABLEbody
>> \bTR \bTD hello \eTD \eTR
>> \bTR \bTD world \eTD \eTR
>> \eTABLEbody
>> \eTABLE
> 
> You mix too many setups, \bTH overwrites your setting for the row (\bTR[style=\tfx])
> and also your other setting (\setupTABLE[row][1][style=\bfx]). Here is one to separate
> the style and the markup
> 
> \startsetups table:style
> 	\setupTABLE[start] [style=\tfx]
> 	\setupTABLE[header][style=\bfx]
> \stopsetups
> 
> \starttext
> 
> \bTABLE[setups=table:style]
> \bTABLEhead
> \bTR \bTD Header \eTD \eTR
> \eTABLEhead
> \bTABLEbody
> \bTR \bTD Body \eTD \eTR
> \eTABLEbody
> \eTABLE
> 
> \stoptext

Thanks Wolfgang,

so to make style=... also work on the header the trick was to change
  \bTH Header \eTH
to
  \bTD Header \eTD.

What is the purpose of \bTH \eTH then? BTW the Wiki says: "Please take account of the fact, that the head cells are enclosed by \bTH and \eTH (and not \[be]TC)."

\bTH seems to only override style=... since "\bTD Header \eTD" is repeated correctly with \bTABLE[split=repeat,setups=table:style].

Florian

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: two problems with natural tables
  2011-04-10 16:40 two problems with natural tables Florian Wobbe
  2011-04-11  7:18 ` Wolfgang Schuster
@ 2011-04-11  7:57 ` Florian Wobbe
  2011-04-18 17:16 ` Wolfgang Schuster
  2 siblings, 0 replies; 14+ messages in thread
From: Florian Wobbe @ 2011-04-11  7:57 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: text/plain, Size: 744 bytes --]

> 1) I tried the following minimal example from http://archive.contextgarden.net/message/20110109.151431.f774696a.en.html
> 
> \placetable[split]{Test}
> {\bTABLE[split=yes]
> \dorecurse{60}{
> \bTR \bTD hello \eTD \eTR
> }
> \eTABLE}
> 
> with the current context versions which works fine.

I have to correct myself. This still does not work with interactions (\setupinteraction [state=start]).

> I could determine the context version at which my big document fails: 2010.12.22 14:07. The example still works in 2010.12.21 10:50.

I attached the changes in code in strc-flt.mkiv and tabl-tsp.mkiv that break the above split table example. I hope this helps to identify the problem so it can be fixed in the current beta...

Thanks,
Florian


[-- Attachment #2: flt-tabl.diff --]
[-- Type: application/octet-stream, Size: 7428 bytes --]

--- texmf-context/tex/context/base/strc-flt.mkiv.old
+++ texmf-context/tex/context/base/strc-flt.mkiv
@@ -21,9 +21,9 @@
 %D strc-flt.tex and page-flt.mkiv cq. page-flt.mkii.
 
 \ifdefined\addlocalbackgroundtobox\else \def\addlocalbackgroundtobox{\resetglobal\gobbleoneargument} \fi
-\f
+
 \unexpanded\def\placefloats{\doflushfloats}  % keep this one
-\f
+
 \let\currentfloat\empty
 
 \def\letfloatparameter   #1{\expandafter\let\csname\??fl\currentfloat#1\endcsname}
@@ -120,7 +120,8 @@
  % \c!separator=\@@koseparator,
  % \c!starter=\@@kostarter,
  % \c!stopper=\@@kostopper,
- % \c!suffix=\floatcaptionsuffix, % hook
+   \c!suffixseparator=, % currently rather hard coded
+   \c!suffix=\floatcaptionsuffix,
    \c!distance=1em,
    \c!conversion=\v!numbers,
    \c!command=]
@@ -301,11 +302,27 @@
 
 \installstructurelistprocessor{float}{\usestructurelistprocessor{number+title}}
 
+% \def\thecurrentfloatnumber
+%   {\ifnofloatcaption \else \ifnofloatnumber \else
+%      \ifx\currentfloatnumber\relax\else
+%        \dostarttagged\t!floattag\empty
+%        \labeltexts\currentfloat{\ctxlua{structures.lists.savedprefixednumber("\currentfloat",\currentfloatnumber)}}%
+%        \dostoptagged
+%      \fi
+%    \fi \fi}
+
+\unexpanded\def\thecurrentfloatnumbersuffix
+  {\doifsomething{\floatcaptionparameter\c!suffix}
+     {\floatcaptionparameter\c!suffixseparator
+      \floatcaptionparameter\c!suffix}}
+
 \def\thecurrentfloatnumber
   {\ifnofloatcaption \else \ifnofloatnumber \else
      \ifx\currentfloatnumber\relax\else
        \dostarttagged\t!floattag\empty
-       \labeltexts\currentfloat{\ctxlua{structures.lists.savedprefixednumber("\currentfloat",\currentfloatnumber)}}%
+       \labeltexts\currentfloat
+          {\ctxlua{structures.lists.savedprefixednumber("\currentfloat",\currentfloatnumber)}%
+           \thecurrentfloatnumbersuffix}%
        \dostoptagged
      \fi
    \fi \fi}
@@ -506,7 +523,7 @@
 
 \newconditional\retainfloatnumber
 
-\def\preparefloatnumber#1%
+\def\preparefloatnumber#1% use in special case see below
   {\xdef\floatcaptionnumber{#1}%
    \doifelsenodelocation{\v!float\@@thenumber{#1}}
      \donothing {\nodelocationmode\zerocount}%
@@ -755,6 +772,8 @@
      attr \destinationattribute \currentfloatattribute
    \fi \fi \fi}
 
+\newconditional\usesamefloatnumber
+
 \long\def\docompletefloat#1#2#3#4#5% #1:floatclass #2:reference #3:optionlist #4:caption #5:box number
   {\presetfloatvariables{#1}{#3}{#2}{#5}% check this one
    \bgroup
@@ -762,24 +781,32 @@
    %
    % \dofloatcomponent[\c!name=#1,\c!reference=#2,\c!bookmark=,\c!title={#4}][]% ifnofloatnumber ifnofloatcaption \tracefloatnumber{#1}%
    %
-   \dostructurecountercomponent
-     {float}%
-     \getcaptionparameters
-     \floatcaptionparameter
-     \detokenizedcaptionparameter
-     \relax
-     \relax
-     \relax
-     [\c!name=\currentfloat,\s!counter=\@@thestructurecounter\currentfloat,%
-      \s!hascaption=\ifnofloatcaption \v!no\else\v!yes\fi,%
-      \s!hasnumber=\ifnofloatnumber   \v!no\else\v!yes\fi,%
-      \s!hastitle=\ifemptyfloatcaption\v!no\else\v!yes\fi,%
-      \c!reference=#2,\c!title={#4},\c!bookmark=]%
-     []%
-   \globallet\currentfloatnumber     \laststructurecounternumber
-   \globallet\currentfloatattribute  \laststructurecounterattribute
-   \globallet\currentfloatsynchronize\laststructurecountersynchronize
+   \ifconditional\usesamefloatnumber
+      \globallet\currentfloatnumber     \previousfloatnumber
+      \globallet\currentfloatattribute  \empty
+      \globallet\currentfloatsynchronize\relax
+   \else
+     \dostructurecountercomponent
+       {float}%
+       \getcaptionparameters
+       \floatcaptionparameter
+       \detokenizedcaptionparameter
+       \relax
+       \relax
+       \relax
+       [\c!name=\currentfloat,\s!counter=\@@thestructurecounter\currentfloat,%
+        \s!hascaption=\ifnofloatcaption \v!no\else\v!yes\fi,%
+        \s!hasnumber=\ifnofloatnumber   \v!no\else\v!yes\fi,%
+        \s!hastitle=\ifemptyfloatcaption\v!no\else\v!yes\fi,%
+        \c!reference=#2,\c!title={#4},\c!bookmark=]%
+       []%
+     \globallet\previousfloatnumber    \laststructurecounternumber
+     \globallet\currentfloatnumber     \laststructurecounternumber
+     \globallet\currentfloatattribute  \laststructurecounterattribute
+     \globallet\currentfloatsynchronize\laststructurecountersynchronize
+   \fi
    %
+   \global\setfalse\usesamefloatnumber % one shot
    % check float box
    \setnaturalfloatdimensions#5%
    \global\setbox\floatbox\vbox{\floatparameter\c!command{\box#5}}%
@@ -833,7 +860,7 @@
    \fi}
 
 \appendtoks
-  \let\rightorleftpageaction\doifrightpagefloatelse
+    \let\rightorleftpageaction\doifrightpagefloatelse
 \to \everyinsidefloat
 
 \newif\ifextrafloatactions \extrafloatactionstrue
--- texmf-context/tex/context/base/tabl-tsp.mkiv.old
+++ texmf-context/tex/context/base/tabl-tsp.mkiv
@@ -13,14 +13,11 @@
 
 \writestatus{loading}{ConTeXt Table Macros / Splitting}
 
-%D The code in this file is move here from other places.
+%D The code in this file is move here from other places and needs
+%D a mkiv cleanup.
 
 \unprotect
 
-% only to be used with single tokens (will be prim)
-
-\ifx\htdp\undefined \def\htdp#1{\dimexpr\ht#1+\dp#1\relax} \fi
-
 %D Although the name resembles floats, and therefore this should be
 %D a page module, we decided to make it core functionality because the
 %D table code depends on it. Othrwise there would be too much
@@ -29,12 +26,9 @@
 
 % \splitfloat [settings] {\placetable[optional args]{test}} {content}
 
-% \def\s!noftablesplits{nofsplittables}
+% there is no need for a tracked structure number here
 
-\definenumber % we need a nicer name like nofsplittables, we then also need to set \s!parent
-  [\??si]
-  [\c!way=\v!by\v!text,
-   \c!conversion=\@@siconversion]
+\newcount\noffloatssplits
 
 \unexpanded\def\setupfloatsplitting
   {\dodoubleargument\getparameters[\??si]}
@@ -59,8 +53,8 @@
    \insidefloattrue
    \insidesplitfloattrue
    \getparameters[\??si][#1]%
-   \resetnumber[\??si]%
-   \def\floatcaptionsuffix{\convertednumber[\??si]}%
+   \global\noffloatssplits\zerocount
+   \def\floatcaptionsuffix{\convertnumber\@@siconversion\noffloatssplits}%
    \let\extrasplitfloatlines\@@silines
    \the\everysplitfloatsetup
    \def\splitfloatcommand{#2}%
@@ -114,14 +108,19 @@
       \dontcomplain
       \global\settrue\splitfloatdone
       \nodelocationmode\zerocount % bypass auto-renumbering
-      \incrementnumber[\??si]%
-      \ifcase\rawnumber[\??si]\or \ifconditional\onlyonesplitofffloat
-        \let\floatcaptionsuffix\empty
-      \fi \fi
+      \global\advance\noffloatssplits\plusone
+      \ifcase\noffloatssplits\relax
+      \or
+        \ifconditional\onlyonesplitofffloat
+          \let\floatcaptionsuffix\empty
+        \fi
+      \else
+        \global\settrue\usesamefloatnumber % one shot
+      \fi
       \bgroup
       \ifconditional\somenextplitofffloat
         \settrue\retainfloatnumber
-\notesenabledfalse % best here, experimental, brrr; test with note in caption
+        \notesenabledfalse % best here, experimental, brrr; test with note in caption
       \else
         \setfalse\retainfloatnumber
       \fi

[-- Attachment #3: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: two problems with natural tables
  2011-04-11  7:37   ` Florian Wobbe
@ 2011-04-11  9:12     ` Wolfgang Schuster
  0 siblings, 0 replies; 14+ messages in thread
From: Wolfgang Schuster @ 2011-04-11  9:12 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 11.04.2011 um 09:37 schrieb Florian Wobbe:

> so to make style=... also work on the header the trick was to change
>  \bTH Header \eTH
> to
>  \bTD Header \eTD.

Yes.

> What is the purpose of \bTH \eTH then? BTW the Wiki says: "Please take account of the fact, that the head cells are enclosed by \bTH and \eTH (and not \[be]TC)."
> 
> \bTH seems to only override style=... since "\bTD Header \eTD" is repeated correctly with \bTABLE[split=repeat,setups=table:style].

\bTH … \eTH is usefull when you want bold headers without any other changes on the style,
they prevent also alignment of the cell content when you try to align numbers while
\bTD … \eTD are better when you use the setup-commands.

Wolfgang

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: two problems with natural tables
  2011-04-10 16:40 two problems with natural tables Florian Wobbe
  2011-04-11  7:18 ` Wolfgang Schuster
  2011-04-11  7:57 ` Florian Wobbe
@ 2011-04-18 17:16 ` Wolfgang Schuster
  2011-04-18 19:14   ` Hans Hagen
  2 siblings, 1 reply; 14+ messages in thread
From: Wolfgang Schuster @ 2011-04-18 17:16 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Hans Hagen


Am 10.04.2011 um 18:40 schrieb Florian Wobbe:

> Hi,
> 
> 1) I tried the following minimal example from http://archive.contextgarden.net/message/20110109.151431.f774696a.en.html
> 
> \placetable[split]{Test}
> {\bTABLE[split=yes]
> \dorecurse{60}{
> \bTR \bTD hello \eTD \eTR
> }
> \eTABLE}
> 
> with the current context versions which works fine. However, if I insert the code in a big project with many setups it fails with the attached error message. So there are setups which cause this error. Unfortunately I couldn't figure out what causes the problem.

The error comes from the \floatcaptionattribute and \destinationattribute commands. \destinationattribute expects a number as argument (which is stored in the \currentfloatattribute macro) but with a split float it gets a empty argument.

A split float sets \usesamefloatnumber to true and there \currentfloatattribute is \empty.

\long\def\docompletefloat#1#2#3#4#5% #1:floatclass #2:reference #3:optionlist #4:caption #5:box number
  {\presetfloatvariables{#1}{#3}{#2}{#5}% check this one
   \bgroup
   % prepare structure data
   %
   % \dofloatcomponent[\c!name=#1,\c!reference=#2,\c!bookmark=,\c!title={#4}][]% ifnofloatnumber ifnofloatcaption \tracefloatnumber{#1}%
   %
   \ifconditional\usesamefloatnumber
      \globallet\currentfloatnumber     \previousfloatnumber
      \globallet\currentfloatattribute  \empty
      \globallet\currentfloatsynchronize\relax
   \else
   …


As simple fix is to check for a split float when the attribute is set:

\setupinteraction[state=start]

% original defintion from strc-flt.mkiv
%
%\def\floatcaptionattribute
%  {\iflocation \ifnofloatnumber \else \ifnofloatcaption \else
%     attr \destinationattribute \currentfloatattribute
%   \fi \fi \fi}

% patched definition with check for split float

\def\floatcaptionattribute
  {\iflocation \ifnofloatnumber \else \ifnofloatcaption \else \ifinsidesplitfloat \else
     attr \destinationattribute \currentfloatattribute
   \fi \fi \fi \fi}

\starttext
\placetable[split]{Caption}
  {\bTABLE\dorecurse{60}{\bTR\bTD text\eTD\eTR}\eTABLE}
\stoptext


Wolfgang

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: two problems with natural tables
  2011-04-18 17:16 ` Wolfgang Schuster
@ 2011-04-18 19:14   ` Hans Hagen
  2011-04-20  7:30     ` Florian Wobbe
  0 siblings, 1 reply; 14+ messages in thread
From: Hans Hagen @ 2011-04-18 19:14 UTC (permalink / raw)
  To: Wolfgang Schuster; +Cc: mailing list for ConTeXt users

On 18-4-2011 7:16, Wolfgang Schuster wrote:
> \def\floatcaptionattribute
>    {\iflocation \ifnofloatnumber \else \ifnofloatcaption \else \ifinsidesplitfloat \else
>       attr \destinationattribute \currentfloatattribute
>     \fi \fi \fi \fi}

ok, patched

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: two problems with natural tables
  2011-04-18 19:14   ` Hans Hagen
@ 2011-04-20  7:30     ` Florian Wobbe
  2012-01-18  4:19       ` Brian Landy
  0 siblings, 1 reply; 14+ messages in thread
From: Florian Wobbe @ 2011-04-20  7:30 UTC (permalink / raw)
  To: mailing list for ConTeXt users


On Apr 18, 2011, at 21:14 , Hans Hagen wrote:

> On 18-4-2011 7:16, Wolfgang Schuster wrote:
>> \def\floatcaptionattribute
>>   {\iflocation \ifnofloatnumber \else \ifnofloatcaption \else \ifinsidesplitfloat \else
>>      attr \destinationattribute \currentfloatattribute
>>    \fi \fi \fi \fi}
> 
> ok, patched

Wolfgang, Hans, as usual thanks for the support and the quick fix!
Florian

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: two problems with natural tables
  2011-04-20  7:30     ` Florian Wobbe
@ 2012-01-18  4:19       ` Brian Landy
  2012-01-18  5:31         ` Wrong placement parameter (Was: two problems with natural tables) Vladimir Lomov
  2012-01-18  8:47         ` two problems with natural tables Hans Hagen
  0 siblings, 2 replies; 14+ messages in thread
From: Brian Landy @ 2012-01-18  4:19 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi, sorry to dredge up such an old thread, but I recently updated from a Feb 2010 vintage minimals to current (first to 1/12/2012, then to today 1/17).  I ran into problems splitting a table within a splitfloat.  I search the list archives and came up with this example, which is failing for me.

\starttext
\placetable[split]{Test}
{\bTABLE[split=yes]
\dorecurse{60}{
\bTR \bTD hello \eTD \eTR
}
\eTABLE}
\stoptext

I get this error:

! Undefined control sequence.

system          > tex > error on line 7 in file test.tex: Undefined control sequence ...

1     \starttext
2     \placetable[split]{Test}
3     {\bTABLE[split=yes]
4     \dorecurse{60}{
5     \bTR \bTD hello \eTD \eTR
6     }
7 >>  \eTABLE}
8     \stoptext
9     

<argument> \c!suffixstopper 
                            
\floatcaptionparameter ...\currentfloatcaption :#1
                                                  \endcsname \??floatcaption...
<argument> ...mber )}\thecurrentfloatnumbersuffix 
                                                  \dostoptagged \dostarttagg...
\flushbothlabelclass #1#2#3->#1#3
                                 #2
\namedtaggedlabeltexts ...\dostarttagged {#1}{#2}}
                                                  \dostoptagged \endgroup 
\thecurrentfloatnumber ...rrentfloatnumbersuffix }
                                                  \fi \fi \fi 
...
l.7 \eTABLE
           }


Any ideas?

Thanks,
Brian

On Apr 20, 2011, at 3:30 AM, Florian Wobbe wrote:

> 
> On Apr 18, 2011, at 21:14 , Hans Hagen wrote:
> 
>> On 18-4-2011 7:16, Wolfgang Schuster wrote:
>>> \def\floatcaptionattribute
>>>  {\iflocation \ifnofloatnumber \else \ifnofloatcaption \else \ifinsidesplitfloat \else
>>>     attr \destinationattribute \currentfloatattribute
>>>   \fi \fi \fi \fi}
>> 
>> ok, patched
> 
> Wolfgang, Hans, as usual thanks for the support and the quick fix!
> Florian
> 
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________
> 

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: Wrong placement parameter (Was: two problems with natural tables)
  2012-01-18  4:19       ` Brian Landy
@ 2012-01-18  5:31         ` Vladimir Lomov
  2012-01-18  8:48           ` Hans Hagen
  2012-01-18  8:47         ` two problems with natural tables Hans Hagen
  1 sibling, 1 reply; 14+ messages in thread
From: Vladimir Lomov @ 2012-01-18  5:31 UTC (permalink / raw)
  To: ntg-context

Hello,
** Brian Landy [2012-01-17 23:19:41 -0500]:

> Hi, sorry to dredge up such an old thread, but I recently updated from
> a Feb 2010 vintage minimals to current (first to 1/12/2012, then to
> today 1/17).  I ran into problems splitting a table within a
> splitfloat.  I search the list archives and came up with this example,
> which is failing for me.
Don't hi-jack old thread with unrelated question, always start new topic
on new problem.

> \starttext
> \placetable[split]{Test}
> {\bTABLE[split=yes]
> \dorecurse{60}{
> \bTR \bTD hello \eTD \eTR
> }
> \eTABLE}
> \stoptext

> I get this error:

> ! Undefined control sequence.

> system          > tex > error on line 7 in file test.tex: Undefined control sequence ...

> 1     \starttext
> 2     \placetable[split]{Test}
> 3     {\bTABLE[split=yes]
> 4     \dorecurse{60}{
> 5     \bTR \bTD hello \eTD \eTR
> 6     }
> 7 >>  \eTABLE}
> 8     \stoptext
> 9     

> <argument> \c!suffixstopper 

> \floatcaptionparameter ...\currentfloatcaption :#1
>                                                   \endcsname \??floatcaption...
> <argument> ...mber )}\thecurrentfloatnumbersuffix 
>                                                   \dostoptagged \dostarttagg...
> \flushbothlabelclass #1#2#3->#1#3
>                                  #2
> \namedtaggedlabeltexts ...\dostarttagged {#1}{#2}}
>                                                   \dostoptagged \endgroup 
> \thecurrentfloatnumber ...rrentfloatnumbersuffix }
>                                                   \fi \fi \fi 
> ...
> l.7 \eTABLE
>            }


> Any ideas?

According to Command reference on wiki, placetable doesn't have 'split'
parameter, see http://wiki.contextgarden.net/Reference/en/placefloat

Just remove 'split' and your example will be compiled.


---
WBR, Vladimir Lomov

-- 
Quality control, n.:
	Assuring that the quality of a product does not get out of hand
	and add to the cost of its manufacture or design.
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: two problems with natural tables
  2012-01-18  4:19       ` Brian Landy
  2012-01-18  5:31         ` Wrong placement parameter (Was: two problems with natural tables) Vladimir Lomov
@ 2012-01-18  8:47         ` Hans Hagen
  2012-01-18 17:54           ` Brian R. Landy
  1 sibling, 1 reply; 14+ messages in thread
From: Hans Hagen @ 2012-01-18  8:47 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Brian Landy

On 18-1-2012 05:19, Brian Landy wrote:
> Hi, sorry to dredge up such an old thread, but I recently updated from a Feb 2010 vintage minimals to current (first to 1/12/2012, then to today 1/17).  I ran into problems splitting a table within a splitfloat.  I search the list archives and came up with this example, which is failing for me.
>
> \starttext
> \placetable[split]{Test}
> {\bTABLE[split=yes]
> \dorecurse{60}{
> \bTR \bTD hello \eTD \eTR
> }
> \eTABLE}
> \stoptext

> <argument>  \c!suffixstopper

In your cont-new.mkiv file, add (after \unprotect)

\def\c!suffixstopper{suffixstopper}

I wonder why it show up now ... either I lost some definition or it 
suddenly started working

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: Wrong placement parameter (Was: two problems with natural tables)
  2012-01-18  5:31         ` Wrong placement parameter (Was: two problems with natural tables) Vladimir Lomov
@ 2012-01-18  8:48           ` Hans Hagen
  2012-01-18 11:29             ` luigi scarso
  0 siblings, 1 reply; 14+ messages in thread
From: Hans Hagen @ 2012-01-18  8:48 UTC (permalink / raw)
  To: Vladimir Lomov, ntg-context

On 18-1-2012 06:31, Vladimir Lomov wrote:

> According to Command reference on wiki, placetable doesn't have 'split'
> parameter, see http://wiki.contextgarden.net/Reference/en/placefloat
>
> Just remove 'split' and your example will be compiled.

each \place<somefloat> command accepts the same keys, so split is valid

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: Wrong placement parameter (Was: two problems with natural tables)
  2012-01-18  8:48           ` Hans Hagen
@ 2012-01-18 11:29             ` luigi scarso
  0 siblings, 0 replies; 14+ messages in thread
From: luigi scarso @ 2012-01-18 11:29 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 636 bytes --]

On Wed, Jan 18, 2012 at 9:48 AM, Hans Hagen <pragma@wxs.nl> wrote:

> On 18-1-2012 06:31, Vladimir Lomov wrote:
>
>  According to Command reference on wiki, placetable doesn't have 'split'
>> parameter, see http://wiki.contextgarden.net/**Reference/en/placefloat<http://wiki.contextgarden.net/Reference/en/placefloat>
>>
>> Just remove 'split' and your example will be compiled.
>>
>
> each \place<somefloat> command accepts the same keys, so split is valid
>
> Hans
>
>
\starttext
\setupcaptions[suffix=]
\placetable[split]{Test}
{\bTABLE[split=yes]
\dorecurse{60}{
\bTR \bTD hello \eTD \eTR
}
\eTABLE}
\stoptext

it's ok.


-- 
luigi

[-- Attachment #1.2: Type: text/html, Size: 1158 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: two problems with natural tables
  2012-01-18  8:47         ` two problems with natural tables Hans Hagen
@ 2012-01-18 17:54           ` Brian R. Landy
  0 siblings, 0 replies; 14+ messages in thread
From: Brian R. Landy @ 2012-01-18 17:54 UTC (permalink / raw)
  To: mailing list for ConTeXt users

This worked perfectly, thanks!

Brian

On Jan 18, 2012, at 3:47 AM, Hans Hagen <pragma@wxs.nl> wrote:

> On 18-1-2012 05:19, Brian Landy wrote:
>> Hi, sorry to dredge up such an old thread, but I recently updated from a Feb 2010 vintage minimals to current (first to 1/12/2012, then to today 1/17).  I ran into problems splitting a table within a splitfloat.  I search the list archives and came up with this example, which is failing for me.
>> 
>> \starttext
>> \placetable[split]{Test}
>> {\bTABLE[split=yes]
>> \dorecurse{60}{
>> \bTR \bTD hello \eTD \eTR
>> }
>> \eTABLE}
>> \stoptext
> 
>> <argument>  \c!suffixstopper
> 
> In your cont-new.mkiv file, add (after \unprotect)
> 
> \def\c!suffixstopper{suffixstopper}
> 
> I wonder why it show up now ... either I lost some definition or it suddenly started working
> 
> Hans
> 
> -----------------------------------------------------------------
>                                          Hans Hagen | PRAGMA ADE
>              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>    tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
>                                             | www.pragma-pod.nl
> -----------------------------------------------------------------
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

end of thread, other threads:[~2012-01-18 17:54 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-10 16:40 two problems with natural tables Florian Wobbe
2011-04-11  7:18 ` Wolfgang Schuster
2011-04-11  7:37   ` Florian Wobbe
2011-04-11  9:12     ` Wolfgang Schuster
2011-04-11  7:57 ` Florian Wobbe
2011-04-18 17:16 ` Wolfgang Schuster
2011-04-18 19:14   ` Hans Hagen
2011-04-20  7:30     ` Florian Wobbe
2012-01-18  4:19       ` Brian Landy
2012-01-18  5:31         ` Wrong placement parameter (Was: two problems with natural tables) Vladimir Lomov
2012-01-18  8:48           ` Hans Hagen
2012-01-18 11:29             ` luigi scarso
2012-01-18  8:47         ` two problems with natural tables Hans Hagen
2012-01-18 17:54           ` Brian R. Landy

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