Incorrect placement of a table with LMTX
Hello, In my lessons, I often have to include tables, figures, ... in definitions, theorems ... With the context engine it works fine but not with lmtx. Thanks for your help. Fabrice \setupenumerations [before={\blank}, after={\blank}, alternative=serried, title=yes, titleleft=, titleright=, prefix=yes, prefixsegments=chapter, way=bychapter, titlestyle=bold, width=broad] \defineenumeration [definition] [text=Définition, number=yes, headcommand=\groupedcommand{}{.}, style=italic] \starttext \startdefinition \blank \startxtable[align={lohi,middle},width=2cm,offset=0.8ex] \startxrow \startxcell 1 \stopxcell \startxcell 2 \stopxcell \stopxrow \startxrow \startxcell 3 \stopxcell \startxcell 4 \stopxcell \stopxrow \stopxtable \stopdefinition \stoptext
Hi Fabrice, You should enclose the table into \startplacetable... \stopplacetable as in: \startplacetable[number=no] % here put your xtable \stopplacetable Best regards: Otared
On 14 Jul 2020, at 11:28, Fabrice Couvreur
wrote: Hello, In my lessons, I often have to include tables, figures, ... in definitions, theorems ... With the context engine it works fine but not with lmtx. Thanks for your help. Fabrice
\setupenumerations [before={\blank}, after={\blank}, alternative=serried, title=yes, titleleft=, titleright=, prefix=yes, prefixsegments=chapter, way=bychapter, titlestyle=bold, width=broad]
\defineenumeration [definition] [text=Définition, number=yes, headcommand=\groupedcommand{}{.}, style=italic]
\starttext
\startdefinition \blank \startxtable[align={lohi,middle},width=2cm,offset=0.8ex] \startxrow \startxcell 1 \stopxcell \startxcell 2 \stopxcell \stopxrow \startxrow \startxcell 3 \stopxcell \startxcell 4 \stopxcell \stopxrow \stopxtable \stopdefinition
\stoptext ___________________________________________________________________________________ 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 ___________________________________________________________________________________
Hi Otared,
Thanks, it works perfectly.
Best regards.
fabrice
Le mar. 14 juil. 2020 à 12:23, Otared Kavian
Hi Fabrice,
You should enclose the table into \startplacetable... \stopplacetable as in:
\startplacetable[number=no] % here put your xtable \stopplacetable
Best regards: Otared
On 14 Jul 2020, at 11:28, Fabrice Couvreur
wrote: Hello, In my lessons, I often have to include tables, figures, ... in definitions, theorems ... With the context engine it works fine but not with lmtx. Thanks for your help. Fabrice
\setupenumerations [before={\blank}, after={\blank}, alternative=serried, title=yes, titleleft=, titleright=, prefix=yes, prefixsegments=chapter, way=bychapter, titlestyle=bold, width=broad]
\defineenumeration [definition] [text=Définition, number=yes, headcommand=\groupedcommand{}{.}, style=italic]
\starttext
\startdefinition \blank \startxtable[align={lohi,middle},width=2cm,offset=0.8ex] \startxrow \startxcell 1 \stopxcell \startxcell 2 \stopxcell \stopxrow \startxrow \startxcell 3 \stopxcell \startxcell 4 \stopxcell \stopxrow \stopxtable \stopdefinition
\stoptext
___________________________________________________________________________________ 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
___________________________________________________________________________________
___________________________________________________________________________________ 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
___________________________________________________________________________________
Fabrice Couvreur schrieb am 14.07.2020 um 11:28:
Hello, In my lessons, I often have to include tables, figures, ... in definitions, theorems ... With the context engine it works fine but not with lmtx. Thanks for your help. Fabrice
[...]
\starttext
\startdefinition \blank
I have no idea what causes the problem here without looking at the code (I guess ConTeXt tries to prevent a line break after the title) but this works. \dontleavehmode\blank Wolfgang
participants (3)
-
Fabrice Couvreur
-
Otared Kavian
-
Wolfgang Schuster