ou're doing the
same as \def\A{...}. To avoud redefining existing commmands use a prefix
for your command names because unlike \def you can use special symbols
like : or _ within \setvalue.
begin example
\startbuffer[getvalue]
\starttabulate[|T||]
\NC Joel:A \EQ \getvalue{Joel:A} \NC\NR
> > \starttext
> >\startitemize[packed_,joinedup_][headstyle_=]
> >
> > \head Ccc:
> >
> >\startitemize[packed][width=0pt]
> > \item Ddd
> > \starttabulate[|||r|]
> >\NI Aaa \NC Bbb \AR
> >
Am 15.04.2025 um 15:50 schrieb LPr Pontex:
Hello,
here's a sample code:
\starttext
\startitemize[packed_,joinedup_][headstyle_=]
\head Ccc:
\startitemize[packed][width=0pt]
\item Ddd
\starttabulate[|||r|]
\NI Aaa \NC Bb
Hello,
here's a sample code:
\starttext
\startitemize[packed_,joinedup_][headstyle_=]
\head Ccc:
\startitemize[packed][width=0pt]
\item Ddd
\starttabulate[|||r|]
\NI Aaa \NC Bbb \AR
\stoptabulate
\stopitemize
\stopitemize
\sto
tWidth
and then use width=2.6\AlphabetWidth in your layout
You can also use the avarage character width of the main language but
at the moment it's limited to the four languages shown in the example.
\startsetups[averagecharwidth]
\page
\mainlanguage[#1]
\setuplayout[width=70\averagecharwid
hown in the example.
\startsetups[averagecharwidth]
\page
\mainlanguage[#1]
\setuplayout[width=70\averagecharwidth]
\starttabulate
\NC Language \EQ \currentmainlanguage\NC\NR
\NC Textwidth \EQ \PtToCm{\the\textwidth} \NC\NR
\stoptabulate
\samplefile{lorem}
\stopsetups
\showframe[text][t
> On 2 Mar 2025, at 19:50, Mohammad Hossein Bateni wrote:
>
> - not having to write the end tags \eTD for each cell
You could always put a wrapper around \doloopoverlist, e.g.
\define\row#1{\doloopoverlist{#1}{\NC\recursestring}\NR}
and then your table becomes
\starttabulate
\
\starttabulate[|CR{red}c|CC{yellow}c|CM{green}c|CL{blue}c|]
You can use \setupTABLE to set values for whole rows and columns at the
begin of the table.
Wolfgang
___
If your question is of interest to others as well
Two things I had in mind:
- not having to write the end tags \eTD for each cell
- ability to specify frames, etc. in the start line like \starttabulate[|CR{
red}c|CC{yellow}c|CM{green}c|CL{blue}c|]
That said, I can stick to natural tables for all my needs.
They seem to have all the features
-calculation part from the MetaFun code.
If there is a way to draw a diagonal in the \starttabulate ..., then we may use
Lua code to do the job.
In the wiki, there is an example of diagonal rule.
https://wiki.contextgarden.net/TABLE#Diagonal_rules
I tried it in \starttabulate … \stoptabulate, but it
f table.
How can I fix this error?
Thank you.
Best regards,
Dalyoung
\starttext
\startluacode
function makeHead(a)
local n = #a
context.HL()
for i = 1, n do
context.NC() context(a[i])
end
context.NC()context.AR()
context.HL()
end
\stopluacode
%\starttabulate[|mcw(1cm)|mcw(1cm)|mcw(1cm)|mcw(
f table.
How can I fix this error?
Thank you.
Best regards,
Dalyoung
\starttext
\startluacode
function makeHead(a)
local n = #a
context.HL()
for i = 1, n do
context.NC() context(a[i])
end
context.NC()context.AR()
context.HL()
end
\stopluacode
%\starttabulate[|mcw(1cm)|mcw(1cm)|mcw(1cm)|mcw(
of table.
How can I fix this error?
Thank you.
Best regards,
Dalyoung
\starttext
\startluacode
function makeHead(a)
local n = #a
context.HL()
for i = 1, n do
context.NC() context(a[i])
end
context.NC()context.AR()
context.HL()
end
\stopluacode
%\starttabulate[|mcw(1cm)|mcw(1
])
end
context.NC()context.AR()
context.HL()
end
\stopluacode
\starttabulate[|mcw(1cm)|mcw(1cm)|mcw(1cm)|mcw(1cm)|]
\ctxlua{local a = {"x","y","z","(x\\to y)"}; makeHead(a)}
\stoptabulate
\stoptext
t regards,
Dalyoung
\starttext
\startluacode
function makeHead(a)
local n = #a
context.HL()
for i = 1, n do
context.NC() context(a[i])
end
context.NC()context.AR()
context.HL()
end
\stopluacode
%\starttabulate[|mcw(1cm)|mcw(1cm)|mcw(1cm)|mcw(1cm)|]
\startluaco
* If that works for you, you can replace the line
> \starttabulate[|cw(0.7cm)|cw(0.7cm)|cw(1cm)|cw(1cm)|]
> with
> \starttabulate[|cw(0.7cm)|c|cw(1cm)|c|]
> (The MetaPost drawing may need to be adjusted.)
>
> * If not, you may manually center the title using e.g. the \offset
work.)
I can see two possibilities:
* If that works for you, you can replace the line
\starttabulate[|cw(0.7cm)|cw(0.7cm)|cw(1cm)|cw(1cm)|]
with
\starttabulate[|cw(0.7cm)|c|cw(1cm)|c|]
(The MetaPost drawing may need to be adjusted.)
* If not, you may manually center the title using e.g. t
Dear Florent Michel,
Thank you for the checking.
As you said, using \starttabulate … \stoptabulate makes “[2][c]” disappear.
But q is not at the center of the row.
There may be something more to do that I don’t know.
Thank you again.
Best regards,
Dalyoung
> 2024. 12. 29. 오후 5:31, Flor
Hi,
Not sure whether that's the best solution or not, but your example seems to
work on my side if I replace \starttable with
\starttabulate and \stoptable with \stoptabulate as follows:
_
\startuseMPgraphic{recBox}{w,h,
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
to the left
\starttabulate[|p|p|p|]
\NC test \NC info \NC details \NC\NR
\NC test 2 \NC info \NC details \NC\NR
\stoptabulate
\input knuth
% notice the numbering is indented from the left, no longer lines up
\startitemize[n
displaying the checkmark.
Is there any solution for this?
\starttabulate[|p|p|]
\NC{\switchtobodyfont[garamondsymbols, 12 pt]✔} \NC \NC\NR
\stoptabulate
1. Remove the space between 12 and pt.
2. Preload for your font at the begin of the document with \usebodyfont.
\usebodyfont[antykwa
?
\starttabulate[|p|p|]\NC{\switchtobodyfont[garamondsymbols, 12 pt]✔} \NC
\NC\NR\stoptabulate
--Joel
___
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-context
% notice that the numbers line up with the text to the left
\startitemize[n]
\startitem test\stopitem
\startitem test2\stopitem
\stopitemize
\input knuth
% notice that the text in this table lines up with the text to the left
\starttabulate[|p|p|p|]
\NC
ext
\starttabulate[|c|]
\HL\expandedrepeat 4 {\NC B\AR\HL}
\stoptabulate
\starttabulate[|c|]
\HL\dorecurse{4}{\NC B\AR\HL}
\stoptabulate
\stoptext
--->8
Well, there is your x-mas puzzle then
\starttext
\writestatus{}{}
\writestatus{}{\string\expandedrepeat}
\writestatus{}{}
\starttabul
On 24/12/2024 12:53, Hans Hagen wrote:
your choice (i use it here to practice and test)
There seems to be a difference in behavior too.
In the example the \dorecurse places extra space before the B
.Floris
8<---
\starttext
\starttabulate[|c|]
\HL\expandedrepeat 4 {\NC B\AR
?
.Floris
8<---
\starttext
\starttabulate[|l|] % this does not work
\dorecurse{5}{ \HL \NC b \AR } \HL
\stoptabulate
\starttabulate[|l|] % this works
\HL \dorecurse{5}{ \NC a \AR \HL }
\stoptabulate
\starttabulate[|l|] % this works
\HL \NC c \AR
\HL \NC c \AR
\HL \NC c \AR
\HL \NC c \AR
\HL \N
ext
\starttabulate[|p|p|p|l|][width=\textwidth, split=yes,margin=2mm,
align=right]
\dorecurse{3}{
\dorecurse{3}{
\NC Lorem ipsum dolor sit amet, consectetur adip iscing elit. Curabitur
massa
turpis, semper quis fringilla ut, viverra nec risus.
}% <<< no data here
\AR
}
\stoptabulate
\page
\s
if the last column of a tabulate table is a paragraph, an extra blank
line is added at the top, making the last column not align.
adding data in the last (non) paragraph column, will make them top align
correctly.
8<---
\starttext
\starttabulate[|p|p|p|l|][width=\textwidth, split=
into half width
characters and add additional space.
The following example demonstrates both ways.
\definefontfeature[cjk][default][halt=yes,script=hani]
\starttext
\starttabulate[||b{\showglyphs}|]
\NC default
\NC \definedfont[file:ipaexg*default](あ)。亂數:「假,文。」「亂數」
\NC\NR
\NC default + negativ
]
\setupTABLE[row][first][topframe=on]
\setupTABLE[row][last][bottomframe=on]
\startTABLE
\NC[nc=2] Wurfstärke\\ R / H \NC\NR
\NC 2 \NC 3 \NC\NR
\stopTABLE
\stop
seems to be a mixture of
\starttabulate
\NC \NC \NC\NR ...
and
\setupTABLE
\bTABLE
\bTR \bTD ...
For that what Wolfgang wrote I found nothing
\stopTABLE
\stop
seems to be a mixture of
\starttabulate
\NC \NC \NC\NR ...
and
\setupTABLE
\bTABLE
\bTR \bTD ...
For that what Wolfgang wrote I found nothing in the wiki.
No explanation for \start nor width nor the mixture(?) above ...
Perhaps Wolfgang can also comment on that.
1. \startTABLE
The
\stopTABLE
\stop
seems to be a mixture of
\starttabulate
\NC \NC \NC\NR ...
and
\setupTABLE
\bTABLE
\bTR \bTD ...
Ah, sorry. Maybe that’s really undocumented.
Either use \bTABLE with \bTR\bTD
or \startTABLE with the commands from \starttabulate (probably not all
of them work, I didn’t check).
The
\starttabulate
\NC \NC \NC\NR ...
and
\setupTABLE
\bTABLE
\bTR \bTD ...
For that what Wolfgang wrote I found nothing in the wiki.
No explanation for \start nor width nor the mixture(?) above ...
Perhaps Wolfgang can also comment on that.
Greetings
Thomas
Am 13.11.24 um 11:06 schrieb Henning Hraban Ramm
at
https://wiki.contextgarden.net/Tables_Overview under TABLES in the
document footnote probably no longer exists.
Greetings
Thomas
Am 11.11.24 um 23:52 schrieb Wolfgang Schuster:
Thomas Meyer schrieb am 11.11.2024 um 12:35:
Hi Guys,
I am trying out the following environment:
\starttabulate[p
Thomas Meyer schrieb am 11.11.2024 um 12:35:
Hi Guys,
I am trying out the following environment:
\starttabulate[p(5mm)p(5mm)]
\HL
\NS[1][c] Wurfstärke R / H \NC\NR
\NC 2 \NC 3 \NC\NR
\HL
\stoptabulate
These are the columns of a larger table that cause problems.
P() and \NS do not work
Hi Guys,
I am trying out the following environment:
\starttabulate[p(5mm)p(5mm)]
\HL
\NS[1][c] Wurfstärke R / H \NC\NR
\NC 2 \NC 3 \NC\NR
\HL
\stoptabulate
These are the columns of a larger table that cause problems.
P() and \NS do not work together. But also
\starttabulate[cc]
\HL
\NS[1][c
abskip\emwidth\aligntab\tabskip\zeropoint\aligncontent\cr
text \aligntab more text\cr
more text\aligntab text \cr
\egroup
\starttabulate[|r|l|]
\NC text \NC more text \NC\NR
\NC more text \NC text \NC\NR
\stoptabulate
\setupTABLE[frame=off,offset=0pt,columndistance=1em,rul
text\blank[none]
\columnbreak
\unprotect
\halign{%
\hss#\tabskip=1em&\tabskip=0pt#\cr
text&more text\cr
more text&text\cr
}%
\protect
\columnbreak
\starttabulate[|r|l|]
\NC text \NC more text \NC\AR
\NC more text \NC text \NC\AR
\stoptabulate
\columnbreak
\start
\setup
Hello,
It's probably not the best solution, but it seems to work on my side if I
replace `big` by `2em`; see code below.
```
\startdocument
\setupinterlinespace[2em]
\input dijkstra
\starttabulate[|k0r|k0xp|][EQ={---}]
\NC Word \EQ definition; \NC\AR
\NC Important word \EQ \input dij
Greetings,
Is there a way to set interline spacing in tabulate environments? The
table's paragraphs do not seem to obey \setupinterlinespace like the
rest of the text does. Code to toy with:
\startdocument
\setupinterlinespace[big]
\input lorem
\starttabulate[|k0r|k0xp|][EQ={---}]
\NC
feature can vastly for the fonts which provide it, take
the following two fonts as example.
begin example
\definefontfeature [discretionary-ligatures] [dlig=yes]
\starttext
\startbuffer[pagella]
\starttabulate[|||]
\NC \type{} \EQ \NC\NR
\NC \type{--} \EQ -- \NC\NR
\NC \type{
odule[visual]
\setuppapersize[A6,landscape]
\setupwhitespace[line]
\starttext
\showmakeup[hbox]
\pagereference[one]\fakelines{10}{10}
\pagereference[two]
\pagereference[three]\fakelines{10}{10}
\page
\showmakeup[reset]
\starttabulate
\NC one \NC \at[one] \NC\NR
\NC two \NC \at[two] \
On 8/25/2024 2:15 PM, Wolfgang Schuster wrote:
How differs "1" from "2"?
* em fs
\startbuffer[dimensions]
\starttabulate
\NC em \EQ \the\dimexpr1em\relax \NC\NR % \emwidth
\NC fs \EQ \the\dimexpr1fs\relax \NC\NR % \globalbodyfontsize
\stoptabulate
\stopbuffer
\s
differs "1" from "2"?
* em fs
\startbuffer[dimensions]
\starttabulate
\NC em \EQ \the\dimexpr1em\relax \NC\NR % \emwidth
\NC fs \EQ \the\dimexpr1fs\relax \NC\NR % \globalbodyfontsize
\stoptabulate
\stopbuffer
\starttext
\getbuffer[dimensions]
\setupbodyfont[14.4pt]
\
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
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
[width=5cm]
\NC One one ons ksl \NC two gfjgfd oski kwo \NC\NR
\NC One wer s dft tgf \NC two gfkdsjg dfs we \NC\NR
\stopTABLE
\starttabulate[|*{2}{k{0}lw(5cm)|}]
\NC One one ons ksl \NC two gfjgfd oski kwo \NC\NR
\NC One wer s dft tgf \NC two gfkdsjg dfs we \NC\NR
\stoptabulate
\defineparagraphs
I have come across an error that halts processing with the latest
release. The following demonstrates this:
\setuppagenumbering [location=]
\starttext
\dorecurse{36}{\dorecurse{19}{abc }}
\startplacetable[location=split,title={Table}]
\starttabulate[|p|p|]
\HL
/ startparagraphs
Command/ startparallel
Command/ startplacefloat
Command/ startplacepairedbox
Command/ startsection
Command/ startsectionblock
Command/ startstartstop
Command/ startstop
Command/ startstyle
Command/ starttabulate
Command/ starttextbackground
Command/ starttyping
Command/ startviewerl
\starttext
\startbuffer
\starttabulate[|T]
\NC U+0002D \NC - \NC -- \NC --- \NC\NR
\NC U+02011 \NC ‑ \NC ‑‑ \NC ‑‑‑ \NC\NR
\NC U+02012 \NC ‒ \NC ‒‒ \NC ‒‒‒ \NC\NR
\stoptabulate
\stopbuffer
\nohyphencollapsing
\getbuffer
\setupbodyfont[pagella]
\getbuffer
\dohyphencollapsing
\getbuffer
ase it could be the wrong symbol in the document, there are
many dashes in unicode which look similar in the input and output files.
\starttext
\startbuffer
\starttabulate[|T]
\NC U+0002D \NC - \NC -- \NC --- \NC\NR
\NC U+02011 \NC ‑ \NC ‑‑ \NC ‑‑‑ \NC\NR
\NC U+02012 \NC ‒ \NC ‒‒ \NC ‒
document, there are
many dashes in unicode which look similar in the input and output files.
\starttext
\startbuffer
\starttabulate[|T]
\NC U+0002D \NC - \NC -- \NC --- \NC\NR
\NC U+02011 \NC ‑ \NC ‑‑ \NC ‑‑‑ \NC\NR
\NC U+02012 \NC ‒ \NC ‒‒ \NC ‒‒‒ \NC\NR
\stoptabulate
\stopbuffer
\getbuffer
eference[xyz]{}
> \starttabulate[|lp(.3\textwidth)|lp(.\textwidth)|]
> \NC \reference[xyz]{} \NC \NC\NR
\NC \doifnotmode{*trialtypesetting}{\pagereference[xyz]} \NC \NC\NR
> \stoptabulate
>
>
> \pagebreak
>
> \at{page}[xyz]
>
> \stoptext
>
> The code does work
Joel via ntg-context schrieb am 15.03.2024 um 20:50:
When I run this code, \at{page}[xyz] is unable to find the cross reference:
\starttext
%\reference[xyz]{}
\starttabulate[|lp(.3\textwidth)|lp(.\textwidth)|]
\NC \reference[xyz]{} \NC \NC\NR
\NC \doifnotmode{*trialtypesetting
When I run this code, \at{page}[xyz] is unable to find the cross reference:
\starttext%\reference[xyz]{}
\starttabulate[|lp(.3\textwidth)|lp(.\textwidth)|]
\NC \reference[xyz]{} \NC \NC\NR
\stoptabulate
\pagebreak
\at{page}[xyz]
\stoptext
The code does work when I uncomment line #2
n.net/find>
>>
>> Best regards: Otared
>>
>>> On 22 Feb 2024, at 18:40, Hans Hagen >> <mailto:j.ha...@xs4all.nl>> wrote:
>>> Hi,
>>>
>>> As I needed to check some commands i added this:
>>>
l> wrote:
Hi,
As I needed to check some commands i added this:
context --find="%\starttabulate"
which will (should) give a list of lines/files in the documentation where this command is used.
needed to check some commands i added this:
>
> context --find="%\starttabulate"
>
> which will (should) give a list of lines/files in the documentation where
> this command is used.
>
> Hans
>
> -
Hi,
As I needed to check some commands i added this:
context --find="%\starttabulate"
which will (should) give a list of lines/files in the documentation
where this command is us
withdots withcolor "red";
setbounds currentpicture to OverlayBox;
\stopuseMPgraphic
Thank you!
(I’m sure I already used that somewhere… Must document…)
ok, new feature dedicated to Hraban ... who then of courese has to
document it.
\starttext
\starttabulate
\FL[1,2] % linef
senumber}\crlf
\xmlatt{#1}{postcode} \xmlatt{#1}{city}\crlf
\ifxmlattempty{#1}{telephone}{\vskip -1em}\else{\phonelink{\xmlatt{#1}{telephone}}}\fi
%\vskip -1em
\xmlflush{#1}
\blank[big]
\stopxmlsetups
% The only purpose of the element is to make a table of members.
\startxmlsetups xml:
gave that a try, using the same syntax as \starttable:
>> \starttable[|c|c|]
>> \HL
>> \VL \bf Year \VL \bf Citizens \VL\SR
>> \HL
>> \VL 1675 \VL ˜428 \VL\FR
>> \VL 1795 \VL 1124 \VL\MR
>> \VL 1880 \VL 2405 \VL\MR
>> \VL 1995 \VL 7408 \VL\LR
>
g the same syntax as \starttable:
\starttable[|c|c|]
\HL
\VL \bf Year \VL \bf Citizens \VL\SR
\HL
\VL 1675 \VL ˜428 \VL\FR
\VL 1795 \VL 1124 \VL\MR
\VL 1880 \VL 2405 \VL\MR
\VL 1995 \VL 7408 \VL\LR
\HL
\stoptable
\starttabulate[|c|c|]
\HL
\VL \bf Year \VL \bf Citizens \VL\SR
\HL
\VL 1675 \VL ˜428 \VL\FR
\VL
e tabulate as long as it fits.
I just gave that a try, using the same syntax as \starttable:
\starttable[|c|c|]
\HL
\VL \bf Year \VL \bf Citizens \VL\SR
\HL
\VL 1675 \VL ˜428 \VL\FR
\VL 1795 \VL 1124 \VL\MR
\VL 1880 \VL 2405 \VL\MR
\VL 1995 \VL 7408 \VL\LR
\HL
\stoptable
\starttabulate[|c|c|]
\HL
\V
mplementation.
I’m quite sure \starttable will stay, it’s just discouraged since
\startTABLE (natural tables) is better if you need more than \starttabulate.
In a recent answer on this list, Mikael helped someone by pointing out the
\HF[...] command. The \HF command is not listed in the \start
umber}\crlf
\xmlatt{#1}{postcode}\crlf
\xmlatt{#1}{city}\crlf
\xmlatt{#1}{telephone}\crlf
\xmlflush{#1}
\stopxmlsetups
\startxmlsetups xml:list:members
\starttabulate[|l|l|l|l|]
\xmlflush{#1}
\stoptabulate
\stopxmlsetups
\startxmlsetups xml:list:member
\NC \xmlatt{#1}{name} {\tfxx \
f a custom typing environment is created.
\definetyping[MyTyping][style=\tt]
\typefile[MyTyping][numbering=line]{three_lines.txt}
Still works if used in a column
\startcolumns
\typefile[MyTyping][numbering=line]{three_lines.txt}
\column
:-)
\stopcolumns
\blank
But doesn't work if used in tabulate
lties\clubpenalties{1}{150}
\setpenalties\widowpenalties{1}{1}
\setpenalties\displaywidowpenalties{1}{1}
\stopsetups
\setuplayout[setups=mypenalties]
\starttext
\starttabulate[|p(.15\textwidth)|p|]
\NC asdf \NC a asdf asdf asdf asdf asdf asdf
sdf
t; > \startsetups[mypenalties]
> > \setdefaultpenalties
> > \setpenalties\clubpenalties{1}{150}
> > \setpenalties\widowpenalties{1}{1}
> > \setpenalties\displaywidowpenalties{1}{1}
> > \stopsetups
> >
> > \setuplayout[setups=mypen
Denis
\startsetups[mypenalties]
\setdefaultpenalties
\setpenalties\clubpenalties{1}{150}
\setpenalties\widowpenalties{1}{1}
\setpenalties\displaywidowpenalties{1}{1}
\stopsetups
\setuplayout[setups=mypenalties]
\starttext
\starttabulate[|p(.15\textwid
Denis
\startsetups[mypenalties]
\setdefaultpenalties
\setpenalties\clubpenalties{1}{150}
\setpenalties\widowpenalties{1}{1}
\setpenalties\displaywidowpenalties{1}{1}
\stopsetups
\setuplayout[setups=mypenalties]
\starttext
\starttabulate[|p(.15\textwid
lties
\setpenalties\clubpenalties{1}{150}
\setpenalties\widowpenalties{1}{1}
\setpenalties\displaywidowpenalties{1}{1}
\stopsetups
\setuplayout[setups=mypenalties]
\starttext
\starttabulate[|p(.15\textwidth)|p|]
\NC asdf \NC a asdf asdf asdf asdf asdf asd
y tex's strong point. So, when Mikael and I were looking at one of
his documents that mixes a lot of math into itemized situations, a
different variant was made (ok, there was another reason but that's a
bit technical).
At that time, I had already adapted itemize to work a bit better
y tex's strong point. So, when Mikael and I were looking at one of
his documents that mixes a lot of math into itemized situations, a
different variant was made (ok, there was another reason but that's a
bit technical).
At that time, I had already adapted itemize to work a bit better
displayed.
\setuppagenumbering [alternative=doublesided,location=]
\setupcaption[style=sans,headstyle=sans]
\starttext
\startchapter[title={Page Numbering Test}]
\startplacetable[location={here,spit,force},title={Title?}]
\starttabulate[|rp|lp|]
\HL \NC tufte \NC \input tufte
> On 27 Jun 2023, at 09:56, Denis Maier via ntg-context
> wrote:
>
> Hi,
> is it possible to override the defined orienatation for a given cell ?
\starttext
\starttabulate[|l|c|r|]
\NC this and that \NC left and right \NC here and there \NC \NR
\NC such and so \NC \rotate[
Ok, if you use p for the column definition you can just use \setupalign on
individual cells...
%%%
\starttext
\starttabulate[|pA{verytolerant,extremestretch}|pA{verytolerant,extremestretch}|]
\NC Heading flushleft \NC \setupalign[flushright] Heading flushright \NC \NR
\NC \input
Hi,
is it possible to override the defined orienatation for a given cell ?
Take this example from the wiki:
%%
\starttext
\starttabulate[|l|c|r|]
\NC this and that \NC left and right \NC here and there \NC \NR
\NC such and so \NC up and down \NC on and on \NC \NR
to be trivial - just needed to use \long\def for
> \stoptabulate so the following appears to work:
>
> \def\startMyExample{\starttabulate[|r|c|l|p|]}
> \long\def\stopMyExample{\stoptabulate} %% long def required here
> \def\MyExampleItem#1#2#3{\NC #1 \NC \rightarrow \NC #2
Thanks Julian - I tried a startstop environment originally but it didn't work.
The answer turns out to be trivial - just needed to use \long\def for
\stoptabulate so the following appears to work:
\def\startMyExample{\starttabulate[|r|c|l|p|]}
\long\def\stopMyExample{\stoptabulate} %%
table. Thus I have:
\def\startMyExample{\starttabulate[|r|c|l|p|]}
\def\stopMyExample{\stoptabulate}
\def\MyExampleItem#1#2#3{\NC #1 \NC \rightarrow \NC #2 \NC #3 \NC\NR}
\starttext
Here are some examples...
\startMyExample
\MyExampleItem{before}{after}{change before into after}
\MyExampleItem
On 3/21/2023 7:20 AM, Li Yanrui (李延瑞) via ntg-context wrote:
Hi,
Please see the following example:
\startTEXpage[offset=5mm]
\starttabulate[|c|c|c|]
\VL 1 \VL 2 \VL 3\VL\NR
\stoptabulate
\blank
\starttabulate[|c|c|c|]
\NC 1 \NC 2 \NC 3\NR
\stoptabulate
\stopTEXpage
In its result, there is a
Hi,
Please see the following example:
\startTEXpage[offset=5mm]
\starttabulate[|c|c|c|]
\VL 1 \VL 2 \VL 3\VL\NR
\stoptabulate
\blank
\starttabulate[|c|c|c|]
\NC 1 \NC 2 \NC 3\NR
\stoptabulate
\stopTEXpage
In its result, there is a rule in the left side of the second tabulate. The
result is
typing by defining macros for the various bits of a tabulate table. Thus I have:
\def\startMyExample{\starttabulate[|r|c|l|p|]}
\def\stopMyExample{\stoptabulate}
\def\MyExampleItem#1#2#3{\NC #1 \NC \rightarrow \NC #2 \NC #3 \NC\NR}
\starttext
Here are some examples...
\startMyExample
I have a technical manual style document that requires a lot of examples to be
included.
They can easily be typeset with a table so I thought I would save myself some
typing by defining macros for the various bits of a tabulate table. Thus I have:
\def\startMyExample{\starttabulate[|r|c|l|p
xmlflush{#1}
\stoppostponingnotes
\stopxmlsetups
\startxmlsetups xml:table
\startpostponingnotes
\starttabulate[|p|p|]
\xmlfilter{#1}{/tr/command(xml:table:tr)}
\stoptabulate
\stoppostponingnotes
\stopxmlsetups
\startxmlsetups xml:table:tr
\xmlfilter{#1}{
\stopxmlsetups
\startxmlsetups xml:table-wrap
\startpostponingnotes
\xmlflush{#1}
\stoppostponingnotes
\stopxmlsetups
\startxmlsetups xml:table
\startpostponingnotes
\starttabulate[|p|p|]
\xmlfilter{#1}{/tr/command(xml:table:tr)}
\stoptabulate
\stoppostponingnotes
was satisfactory in this case. Tabulate might have to be the
solution for a different set of circumstances.
Julian
On 27/2/23 23:26, mf via ntg-context wrote:
I would try \setuptabulate, \starttabulate ... \stoptabulate.
It has some limitations (though Hans added some features recently),
but
I would try \setuptabulate, \starttabulate ... \stoptabulate.
It has some limitations (though Hans added some features recently), but
it should work.
Massi
Il 24/02/23 06:41, jbf via ntg-context ha scritto:
I have the following setup for side-by-side paras.
\defineparagraphs[Two][n=2
topinterview
structure.
Here is my code at the moment:
%%%
\define[2]\MyChapter{
\starttabulate[|p(\layoutcolumnwidth)|p(\layoutcolumnwidth)|]
\NC \structureuservariable{author} \NC \structureuservariable{bio} \NR
\stoptabulate
}
\definehead[interview][chapter]
\setup
keep the
> \startstopinterview structure.
>
> Here is my code at the moment:
>
> %%%
>
> \define[2]\MyChapter{
>\starttabulate[|p(\layoutcolumnwidth)|p(\layoutcolumnwidth)|]
>\NC \structureuservariable{author} \NC \structureuservariable{bio} \NR
&
but would find it nice to keep the
\startstopinterview structure.
Here is my code at the moment:
%%%
\define[2]\MyChapter{
\starttabulate[|p(\layoutcolumnwidth)|p(\layoutcolumnwidth)|]
\NC \structureuservariable{author} \NC
\structureuservariable{bio} \NR
\stoptabulat
]
\startnarrow[left=5cm,right=5cm]
\starttabulate
[|p|p|]
\NC Das ist ein Text
\NC Das ist noch ein Text
\NC\NR
\NC Das ist ein Text
\NC Das ist noch ein Text
\NC\NR
\NC Das ist ein Text
\NC Das ist noch ein Text
\NC\NR
\stoptabulate
\stopnarrow
\stopplacefigure
\stoptext
On 1/5/2023 12:16 AM, Michael Guravage via ntg-context wrote:
While typesetting a document containing a small tabulated table with the
latest release I noticed that the tabulate \TH command hadn't added any
vertical space between the rows. Here's a mwe.
\starttext
\starttab
While typesetting a document containing a small tabulated table with the
latest release I noticed that the tabulate \TH command hadn't added any
vertical space between the rows. Here's a mwe.
\starttext
\starttabulate[|l|l|]
\NC Γ \NC Gamma \NC\NR
\NC Θ \NC Theta \NC\NR
i get an error running the sample code:
\starttext
\defineorientation[test][orientation=down,vertical=top]
\startbuffer[b]
\definetabulatemove[a][xoffset=40pt]
\definetabulatemove[b][orientation=test,yoffset=depth]
\starttabulate[|c|c|]
\TM[a] \NC \darkred cell one \NC \darkgray cell one
Hi,
I uploaded lmtx. There have been some additions to tabulate.
\starttext
% \showboxes
% \showstruts
\starttabulate[|w(top,3cm)|w(top,3cm)|]
\NC test \NC test \par test \NC \NR
\NC test \NC test \par test \NC \NR
\stoptabulate
\starttabulate[|w(top,packed,3cm)|w(top,packed,3cm)|]
\NC test
Will this suit you?
\starttext
\input knuth
\startitemize[n]
\item x
\stopitemize
\startitemize[n][leftmargindistance=-.1\textwidth,width=.1\textwidth]
\starttabulate[|lp(.1\textwidth)|cp(.35\textwidth)|cp(.2\textwidth)|cp(.35\textwidth
When I place a tabulate environment inside itemize, it indents and the entire
table is shifted to the right about 1/2".
\starttext
\input knuth
\startitemize[n]
\item x
\stopitemize
\startitemize[n]
\starttabulate[|lp(.1\textwidth)|c
1 - 100 of 932 matches
Mail list logo