* [NTG-context] [ using horizontal table lines ]
@ 2024-04-15 11:15 vm via ntg-context
2024-04-15 18:31 ` [NTG-context] " Wolfgang Schuster
0 siblings, 1 reply; 2+ messages in thread
From: vm via ntg-context @ 2024-04-15 11:15 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: vm
[-- Attachment #1: Type: text/plain, Size: 1989 bytes --]
I'm probably using the \starttable incorrectly:
with this code I only get only *one* horizontal line in the header
\starttable[|r|r|r|r|r|r|r|l|r|r|r|r|][bodyfont=9pt]
\NC step\NC frac\NC ival\NC \NC\Use{4}[cI]{freq
(Hz)}\NC~\NC\Use{4}[cI]{wavelength (m)}\AR
\NC\DC\DC\DC\DL[4]\DL[4]\AR
\NC 0 \NC 0.00 \NC 0.000 \NC 12.50\NC 13.75\NC 15.00\NC 12.25\NC A\ \NC
27.20\NC 24.73\NC 22.67\NC 27.76\AR
\NC 1 \NC 0.08 \NC 0.115 \NC 13.94\NC 15.34\NC 16.73\NC 13.66\NC A\#\NC
24.38\NC 22.17\NC 20.32\NC 24.88\AR
\NC 2 \NC 0.17 \NC 0.222 \NC 15.28\NC 16.81\NC 18.34\NC 14.97\NC
B\ \NC 22.25\NC 20.23\NC 18.54\NC 22.71\AR
\stoptable
with this code I get two horizontal lines, but the second is too short.
\starttable[|r|r|r|r|r|r|r|l|r|r|r|r|][bodyfont=9pt]
\NC step\NC frac\NC ival\NC \NC\Use{4}[cI]{freq
(Hz)}\NC~\NC\Use{4}[cI]{wavelength (m)}\AR
\NC\DC\DC\DC\DL[4]\DL[3]\AR
\NC 0 \NC 0.00 \NC 0.000 \NC 12.50\NC 13.75\NC 15.00\NC 12.25\NC A\ \NC
27.20\NC 24.73\NC 22.67\NC 27.76\AR
\NC 1 \NC 0.08 \NC 0.115 \NC 13.94\NC 15.34\NC 16.73\NC 13.66\NC A\#\NC
24.38\NC 22.17\NC 20.32\NC 24.88\AR
\NC 2 \NC 0.17 \NC 0.222 \NC 15.28\NC 16.81\NC 18.34\NC 14.97\NC
B\ \NC 22.25\NC 20.23\NC 18.54\NC 22.71\AR
\stoptable
with this code I get two horizontal lines, with correct length, but
above the wrong columns
\starttable[|r|r|r|r|r|r|r|l|r|r|r|r|][bodyfont=9pt]
\NC step\NC frac\NC ival\NC \NC\Use{4}[cI]{freq
(Hz)}\NC~\NC\Use{4}[cI]{wavelength (m)}\AR
\NC\DC\DC\DL[4]\DL[4]\AR
\NC 0 \NC 0.00 \NC 0.000 \NC 12.50\NC 13.75\NC 15.00\NC 12.25\NC A\ \NC
27.20\NC 24.73\NC 22.67\NC 27.76\AR
\NC 1 \NC 0.08 \NC 0.115 \NC 13.94\NC 15.34\NC 16.73\NC 13.66\NC A\#\NC
24.38\NC 22.17\NC 20.32\NC 24.88\AR
\NC 2 \NC 0.17 \NC 0.222 \NC 15.28\NC 16.81\NC 18.34\NC 14.97\NC
B\ \NC 22.25\NC 20.23\NC 18.54\NC 22.71\AR
\stoptable
diff:
\NC\DC\DC\DC\DL[4]\DL[4]\AR
\NC\DC\DC\DC\DL[4]\DL[3]\AR
\NC\DC\DC\DL[4]\DL[4]\AR
There is (probably) a correct way to solve this.
.Floris
[-- Attachment #2: 3.png --]
[-- Type: image/png, Size: 9179 bytes --]
[-- Attachment #3: 1.png --]
[-- Type: image/png, Size: 9171 bytes --]
[-- Attachment #4: 2.png --]
[-- Type: image/png, Size: 9175 bytes --]
[-- Attachment #5: 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: [ using horizontal table lines ]
2024-04-15 11:15 [NTG-context] [ using horizontal table lines ] vm via ntg-context
@ 2024-04-15 18:31 ` Wolfgang Schuster
0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Schuster @ 2024-04-15 18:31 UTC (permalink / raw)
To: mailing list for ConTeXt users, vm via ntg-context
vm via ntg-context schrieb am 15.04.2024 um 13:15:
> I'm probably using the \starttable incorrectly:
>
> with this code I only get only *one* horizontal line in the header
>
> [...]
>
> with this code I get two horizontal lines, but the second is too short.
>
> [...]
>
> with this code I get two horizontal lines, with correct length, but
> above the wrong columns
>
> [...]
>
>
> diff:
> \NC\DC\DC\DC\DL[4]\DL[4]\AR
> \NC\DC\DC\DC\DL[4]\DL[3]\AR
> \NC\DC\DC\DL[4]\DL[4]\AR
>
> There is (probably) a correct way to solve this.
My suggestion is to switch to either natural table or extreme tables but
it seems to me there is a problem with the division lines which always
leave an empty column afterwards.
The following example should add horizontal lines above the first and
third column but this setting results in an error. When I omit the last
\DC the error disappears but as can be seen in the output the second
line appears above the fourth column.
\starttext
\starttable[||||||]
%\DL \DC \DL \DC \DC \DR
\DL[red] \DC \DL[red] \DC \DR
\VL 01 \VL 02 \VL 03 \VL 04 \VL 05 \VL\SR
\stoptable
\stoptext
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-04-15 18:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-15 11:15 [NTG-context] [ using horizontal table lines ] vm via ntg-context
2024-04-15 18:31 ` [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).