ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] Arranging bullets within tabulate and itemize
@ 2024-06-19 15:19 Lukas via ntg-context
  2024-06-19 17:28 ` [NTG-context] " Wolfgang Schuster
  0 siblings, 1 reply; 2+ messages in thread
From: Lukas via ntg-context @ 2024-06-19 15:19 UTC (permalink / raw)
  To: ConTeXt; +Cc: context

[-- Attachment #1: Type: text/plain, Size: 921 bytes --]

Hello,

here is a simple code:

----
\definedescription[Mat]
   [headstyle=bi,
    
text={Foo},alternative=serried,width_=fit,indenting_={yes,medium},indenting_=no,align_=left,indentnext_=no,hang_=none,
   ]

\starttext

   \startMat
     \startitemize[packed,][]
       \starttabulate[|l|l|l|]
         \NI Aaa \NC Aa \NC\AR
         \NI Bbb \NC Bb \NC\AR
       \stoptabulate
     \stopitemize
   \stopMat

   \startMat
     \startitemize[packed_,joinedup_][afterhead=,]
       \head Ttt \par
         Tt

       \head Uuu \par
         Uu
     \stopitemize
   \stopMat

\stoptext
----

which produces something like:

Foo
   • Aaa Aa
   • Bbb Bb

Foo
• Ttt
Tt
• Uuu
Uu


I cannot find out how to arrange the tabulate bullets straight above 
those of itemize, so how to supress the left indeting, to get:

Foo
• Aaa Aa
• Bbb Bb

Foo
• Ttt
Tt
• Uuu
Uu

How do I achieve this?

TIA.

Best regards,

Lukas

[-- Attachment #2: t.mkiv --]
[-- Type: text/plain, Size: 553 bytes --]

\definedescription[Mat]
  [headstyle=bi,
   text={Foo},alternative=serried,width_=fit,indenting_={yes,medium},indenting_=no,align_=left,indentnext_=no,hang_=none,
  ]

\starttext

  \startMat
    \startitemize[packed,][]
      \starttabulate[|l|l|l|]
        \NI Aaa \NC Aa \NC\AR
        \NI Bbb \NC Bb \NC\AR
      \stoptabulate
    \stopitemize
  \stopMat

  \startMat
    \startitemize[packed_,joinedup_][afterhead=,]
      \head Ttt \par
        Tt

      \head Uuu \par
        Uu
    \stopitemize
  \stopMat

\stoptext

[-- Attachment #3: Type: text/plain, Size: 511 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

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

* [NTG-context] Re: Arranging bullets within tabulate and itemize
  2024-06-19 15:19 [NTG-context] Arranging bullets within tabulate and itemize Lukas via ntg-context
@ 2024-06-19 17:28 ` Wolfgang Schuster
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Schuster @ 2024-06-19 17:28 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Lukas via ntg-context

Lukas via ntg-context schrieb am 19.06.2024 um 17:19:
> Hello,
> 
> here is a simple code:
> 
> ----
> [...]
> 
> I cannot find out how to arrange the tabulate bullets straight above 
> those of itemize, so how to supress the left indeting, to get:
> 
> Foo
> • Aaa Aa
> • Bbb Bb
> 
> Foo
> • Ttt
> Tt
> • Uuu
> Uu
> 
> How do I achieve this?

You have to set the width for the item symbol/counter to 0pt to get rid 
of the space before the table.

%%%% begin example
\showframe[text][text]

\starttext

\startitemize
\starttabulate[|||]
\NI First item  \NC\NR
\NI Second item \NC\NR
\stoptabulate
\stopitemize

\startitemize[width=0pt]
\starttabulate[|||]
\NI First item  \NC\NR
\NI Second item \NC\NR
\stoptabulate
\stopitemize

\stoptext
%%%% end example

Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2024-06-19 17:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-06-19 15:19 [NTG-context] Arranging bullets within tabulate and itemize Lukas via ntg-context
2024-06-19 17:28 ` [NTG-context] " 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).