* Incorrect placement of a table with LMTX
@ 2020-07-14 9:28 Fabrice Couvreur
2020-07-14 10:23 ` Otared Kavian
2020-07-14 19:21 ` Wolfgang Schuster
0 siblings, 2 replies; 4+ messages in thread
From: Fabrice Couvreur @ 2020-07-14 9:28 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 966 bytes --]
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
[-- Attachment #1.2: Type: text/html, Size: 1766 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Incorrect placement of a table with LMTX
2020-07-14 9:28 Incorrect placement of a table with LMTX Fabrice Couvreur
@ 2020-07-14 10:23 ` Otared Kavian
2020-07-14 10:31 ` Fabrice Couvreur
2020-07-14 19:21 ` Wolfgang Schuster
1 sibling, 1 reply; 4+ messages in thread
From: Otared Kavian @ 2020-07-14 10:23 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1871 bytes --]
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 <fabrice1.couvreur@gmail.com> 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
> ___________________________________________________________________________________
[-- Attachment #1.2: Type: text/html, Size: 4648 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Incorrect placement of a table with LMTX
2020-07-14 10:23 ` Otared Kavian
@ 2020-07-14 10:31 ` Fabrice Couvreur
0 siblings, 0 replies; 4+ messages in thread
From: Fabrice Couvreur @ 2020-07-14 10:31 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 2578 bytes --]
Hi Otared,
Thanks, it works perfectly.
Best regards.
fabrice
Le mar. 14 juil. 2020 à 12:23, Otared Kavian <otared@gmail.com> a écrit :
> 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 <fabrice1.couvreur@gmail.com>
> 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
>
> ___________________________________________________________________________________
>
[-- Attachment #1.2: Type: text/html, Size: 5160 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Incorrect placement of a table with LMTX
2020-07-14 9:28 Incorrect placement of a table with LMTX Fabrice Couvreur
2020-07-14 10:23 ` Otared Kavian
@ 2020-07-14 19:21 ` Wolfgang Schuster
1 sibling, 0 replies; 4+ messages in thread
From: Wolfgang Schuster @ 2020-07-14 19:21 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2020-07-14 19:21 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-14 9:28 Incorrect placement of a table with LMTX Fabrice Couvreur
2020-07-14 10:23 ` Otared Kavian
2020-07-14 10:31 ` Fabrice Couvreur
2020-07-14 19:21 ` Wolfgang Schuster
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).