ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* xtable as list item (again)
@ 2021-06-15 17:57 Pablo Rodriguez
  2021-06-16 19:56 ` Wolfgang Schuster
  0 siblings, 1 reply; 3+ messages in thread
From: Pablo Rodriguez @ 2021-06-15 17:57 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Dear list,

I already posted a similar question some time ago
(https://mailman.ntg.nl/pipermail/ntg-context/2021/101021.html), but I
got no reply.

I have the following sample:

  \showframe\showstruts
  \starttext
  \startitemize[n][margin=yes]
  \item a
  \item
    \startembeddedxtable[option={stretch, width}]
    \dorecurse{25}{\startxrow
      \startxcell \Characters{\recurselevel}\stopxcell
      \startxcell \characters{\recurselevel}\stopxcell
    \stopxrow}
  \stopembeddedxtable
  \item b
  \stopitemize
  \stoptext

And I get two issues:

1. Item number in 2 is placed on the bottom of the xtable. I need it on
the top of the xtable.

2. There is an extra horizontal space before the xtable. How can I get
rid of it? (In my real-world document, the space before is huge. In any
case, it misplaces the xtable.)

Maybe my approach is wrong, but I need the xtable as part of a list (and
I need it to strecht it horizontally).

Does anyone know how to achieve this?

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
___________________________________________________________________________________

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

* Re: xtable as list item (again)
  2021-06-15 17:57 xtable as list item (again) Pablo Rodriguez
@ 2021-06-16 19:56 ` Wolfgang Schuster
  2021-06-17  6:38   ` Pablo Rodriguez
  0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Schuster @ 2021-06-16 19:56 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Pablo Rodriguez schrieb am 15.06.2021 um 19:57:
> Dear list,
> 
> I already posted a similar question some time ago
> (https://mailman.ntg.nl/pipermail/ntg-context/2021/101021.html), but I
> got no reply.
> 
> I have the following sample:
> 
>    \showframe\showstruts
>    \starttext
>    \startitemize[n][margin=yes]
>    \item a
>    \item
>      \startembeddedxtable[option={stretch, width}]
>      \dorecurse{25}{\startxrow
>        \startxcell \Characters{\recurselevel}\stopxcell
>        \startxcell \characters{\recurselevel}\stopxcell
>      \stopxrow}
>    \stopembeddedxtable


\item
   \startfixed
     % put your table here
   \stopfixed

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

* Re: xtable as list item (again)
  2021-06-16 19:56 ` Wolfgang Schuster
@ 2021-06-17  6:38   ` Pablo Rodriguez
  0 siblings, 0 replies; 3+ messages in thread
From: Pablo Rodriguez @ 2021-06-17  6:38 UTC (permalink / raw)
  To: ntg-context

On 6/16/21 9:56 PM, Wolfgang Schuster wrote:
> Pablo Rodriguez schrieb am 15.06.2021 um 19:57:
>>[...]
>>    \showframe\showstruts
>>    \starttext
>>    \startitemize[n][margin=yes]
>>    \item a
>>    \item
>>      \startembeddedxtable[option={stretch, width}]
>>      \dorecurse{25}{\startxrow
>>        \startxcell \Characters{\recurselevel}\stopxcell
>>        \startxcell \characters{\recurselevel}\stopxcell
>>      \stopxrow}
>>    \stopembeddedxtable
>
> \item
>    \startfixed
>      % put your table here
>    \stopfixed

Many thanks for your help, Wolfgang.

This worked like a charm.

First time I’m aware of this command.

Many thanks for your help again,

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
___________________________________________________________________________________

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

end of thread, other threads:[~2021-06-17  6:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-15 17:57 xtable as list item (again) Pablo Rodriguez
2021-06-16 19:56 ` Wolfgang Schuster
2021-06-17  6:38   ` Pablo Rodriguez

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