* [NTG-context] Row span in tabulate
@ 2024-12-29 0:00 Jeong Dal via ntg-context
0 siblings, 0 replies; 2+ messages in thread
From: Jeong Dal via ntg-context @ 2024-12-29 0:00 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Jeong Dal
Hi,
I am making a table using \starttabulate …
I want row expansion last 3 columns and put a title “q” at the center of last 3 clolumns.
I \NS[3][c] following the example in the wiki. However, it doesn’t work.
The following code run without error message, but “[3][c]” appeared at the beginning of the first row in the output.
How can I do that?
Thank you.
Best regards,
Dalyoung
___________________________________________________________________________________
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] Row span in tabulate
@ 2024-12-29 0:02 Jeong Dal via ntg-context
0 siblings, 0 replies; 2+ messages in thread
From: Jeong Dal via ntg-context @ 2024-12-29 0:02 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Jeong Dal
[-- Attachment #1.1: Type: text/plain, Size: 808 bytes --]
Sorry.
Here is a sample code.
Thank you.
Best regards,
Dalyoung
\startuseMPgraphic{recBox}{w,h,sx,sy,lColor}
numeric u; u := 1cm;
draw unitsquare xyscaled (\MPvar{w}, \MPvar{h}) shifted (\MPvar{sx},\MPvar{sy}) withpen pencircle scaled 3pt withcolor \MPvar{lColor};
\stopuseMPgraphic
\defineoverlay
[kBox]
[\useMPgraphic{recBox}{w=2u,h=LineHeight+4pt, sx=.8u,sy=LineHeight-2pt,lColor=darkred}]
\starttext
\framed[frame=on,background=kBox]{
\starttable[|cw(.7cm)|cw(.7cm)|cw(1cm)|cw(1cm)|]
\HL
\NC \NS[2][c] q \NC\AR
\NC p\NC \NC 00 \NC 01\NC\AR
\HL
\NC 1 \NC 2 \NC 3 \NC 4\NC\AR
\NC 1 \NC 2 \NC 3 \NC 4\NC\AR
\NC 1 \NC 2 \NC 3 \NC 4\NC\AR
\NC 1 \NC 2 \NC 3 \NC 4\NC\AR
\NC 1 \NC 2 \NC 3 \NC 4\NC\AR
\HL
\stoptable
}
\stoptext
[-- Attachment #1.2: Type: text/html, Size: 7298 bytes --]
[-- Attachment #2: 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
end of thread, other threads:[~2024-12-29 0:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-12-29 0:00 [NTG-context] Row span in tabulate Jeong Dal via ntg-context
2024-12-29 0:02 Jeong Dal via ntg-context
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).