On 8/13/20 2:33 PM, Taco Hoekwater wrote:
> [...]
> I forgot to answer this. Simple explanation:
>
> * 'restricted horizontal mode' is inside an \hbox{} or something similar like 
> a header/footer,
>   where line breaks are forbidden
> * ‘horizontal mode’ is inside a paragraph, where line breaks are possible
>
> But the ‘restricted’ part is not relevant to your problem, \prevdepth
> is forbidden in horizontal mode  regardless of restrictions; it is
> only allowed in vertical mode.
Manny thanks for your explanation, Taco.

> Somehow your table ends up being typeset in a horizontal context,
> based on the error message (at least, if we assume that the error
> message was triggered by a table).
I think it is easy to trigger the error:

  \setupxtable[split=yes]
  \starttext
    \ifvmode yes\else no\fi
    \startxtable[align={middle,lohi},columndistance=0em]
      \startxrow
        \startxcell
          \dontleavehmode
          \externalfigure[cow.pdf]
            [scale=500]
        \stopxcell
      \stopxrow
    \stopxtable
  \stoptext

> But why that is? I do not have any other good ideas. And
> unfortunately lots of different things in ConTeXt can trigger an
> implicit horizontal context.>
> For debugging, you could try adding this to the preamble (or grouped
> around each xtable, for slightly less damage to the vertical
> spacing):>
>   \let\prevdepth\relax
>   \newdimen\prevdepth
>
> that should at least remove the error report.  The vertical spacing
> in the pdf output will be wrong (!!!), but perhaps the output can
> provide a clue about what triggered the problem.
No idea of what is going wrong here.

My setups are even simplistic:

\setupxtable
    [frame=off,
     option=stretch,
     split=repeat,
     header=repeat]

\setupxtable
    [split-table]
    [split=yes]

\startxmlsetups xml:table:split
    \blank
    \startembeddedxtable[split-table]
        \xmlflush{#1}
    \stopembeddedxtable
    \blank
\stopxmlsetups

But it seems that this cannot be fixed without investing much time.

I’m afraid I don’t have this time now.

Many thanks for your help,

Pablo
--
http://www.ousia.tk
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to