ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* placed tabulations broken when ended with \HL in MkIV
@ 2016-09-26 11:20 John Devereux
  2016-09-26 18:04 ` Wolfgang Schuster
  0 siblings, 1 reply; 3+ messages in thread
From: John Devereux @ 2016-09-26 11:20 UTC (permalink / raw)
  To: ntg-context


Hi,

I updated my context (IV) installation recently and most of my
tabulations are not working when they are placed with \placetable.

Even the examples on the wiki do not work e.g. this aborts with an
undefined control sequence error for the \stoptabulate:

\starttext
This is a very long text, longer than the width of the table.
It must be long enough to flow to the next line to see the effect.

\startplacetable[location=force,number=no]
  \starttabulate[|r|l|]
  \HL
  \NC I want this table \NC aligned in the center.\NC\NR
  \HL
  \stoptabulate
\stopplacetable
\stoptext


I traced it to ending with a \HL. It can be made to work if I add an
extra \AR after the final \HL

Thanks,

John



-- 

John Devereux
___________________________________________________________________________________
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] 3+ messages in thread

* Re: placed tabulations broken when ended with \HL in MkIV
  2016-09-26 11:20 placed tabulations broken when ended with \HL in MkIV John Devereux
@ 2016-09-26 18:04 ` Wolfgang Schuster
  2016-09-27 10:58   ` John Devereux
  0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Schuster @ 2016-09-26 18:04 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

> John Devereux <mailto:john@devereux.me.uk>
> 26. September 2016 um 13:20
> Hi,
>
> I updated my context (IV) installation recently and most of my
> tabulations are not working when they are placed with \placetable.
>
> Even the examples on the wiki do not work e.g. this aborts with an
> undefined control sequence error for the \stoptabulate:
>
> \starttext
> This is a very long text, longer than the width of the table.
> It must be long enough to flow to the next line to see the effect.
>
> \startplacetable[location=force,number=no]
> \starttabulate[|r|l|]
> \HL
> \NC I want this table \NC aligned in the center.\NC\NR
> \HL
> \stoptabulate
> \stopplacetable
> \stoptext
>
>
> I traced it to ending with a \HL. It can be made to work if I add an
> extra \AR after the final \HL
tabl-tbl.mkiv:

\def\tabl_tabulate_inside_before
   {\ifhmode\par\fi
    \ifhmode
      \ifinsidesplitfloat
        \let\tabl_tabulate_inside_after    \relax
+      \let\tabl_tabulate_inside_inbetween\relax
      \else
        \vbox\bgroup
        \let\tabl_tabulate_inside_after    \egroup
+      \let\tabl_tabulate_inside_inbetween\relax
      \fi
    \else
      \let\tabl_tabulate_inside_after    \relax
+    \let\tabl_tabulate_inside_inbetween\relax
    \fi}

Wolfgang

[-- Attachment #1.2: Type: text/html, Size: 2388 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] 3+ messages in thread

* Re: placed tabulations broken when ended with \HL in MkIV
  2016-09-26 18:04 ` Wolfgang Schuster
@ 2016-09-27 10:58   ` John Devereux
  0 siblings, 0 replies; 3+ messages in thread
From: John Devereux @ 2016-09-27 10:58 UTC (permalink / raw)
  To: ntg-context; +Cc: mailing list for ConTeXt users

Wolfgang Schuster <schuster.wolfgang@gmail.com> writes:

     
>     
>     John Devereux
>     26. September 2016 um 13:20
>     
>     Hi,
>     
>     I updated my context (IV) installation recently and most of my
>     tabulations are not working when they are placed with \placetable.
>     
>     Even the examples on the wiki do not work e.g. this aborts with an
>     undefined control sequence error for the \stoptabulate:
>     
>     \starttext
>     This is a very long text, longer than the width of the table.
>     It must be long enough to flow to the next line to see the effect.
>     
>     \startplacetable[location=force,number=no]
>     \starttabulate[|r|l|]
>     \HL
>     \NC I want this table \NC aligned in the center.\NC\NR
>     \HL
>     \stoptabulate
>     \stopplacetable
>     \stoptext
>     
>     
>     I traced it to ending with a \HL. It can be made to work if I add
>     an
>     extra \AR after the final \HL
>     
> tabl-tbl.mkiv:
>
> \def\tabl_tabulate_inside_before
> {\ifhmode\par\fi
> \ifhmode
> \ifinsidesplitfloat
> \let\tabl_tabulate_inside_after \relax
> + \let\tabl_tabulate_inside_inbetween\relax
> \else
> \vbox\bgroup
> \let\tabl_tabulate_inside_after \egroup
> + \let\tabl_tabulate_inside_inbetween\relax
> \fi
> \else
> \let\tabl_tabulate_inside_after \relax
> + \let\tabl_tabulate_inside_inbetween\relax
> \fi}

Thanks Wolfgang, that works.

John


-- 

John Devereux
___________________________________________________________________________________
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] 3+ messages in thread

end of thread, other threads:[~2016-09-27 10:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-26 11:20 placed tabulations broken when ended with \HL in MkIV John Devereux
2016-09-26 18:04 ` Wolfgang Schuster
2016-09-27 10:58   ` John Devereux

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