[NTG-context] Re: Why does \setvalue not work inside \startbodymatter?

2025-05-19 Thread Wolfgang Schuster
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

[NTG-context] Re: How do I remove the indent of a table-in-itemize?

2025-04-15 Thread LPr Pontex
> > \starttext > >\startitemize[packed_,joinedup_][headstyle_=] > > > > \head Ccc: > > > >\startitemize[packed][width=0pt] > > \item Ddd > > \starttabulate[|||r|] > >\NI Aaa \NC Bbb \AR > >

[NTG-context] Re: How do I remove the indent of a table-in-itemize?

2025-04-15 Thread Wolfgang Schuster
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

[NTG-context] How do I remove the indent of a table-in-itemize?

2025-04-15 Thread 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 Bbb \AR \stoptabulate \stopitemize \stopitemize \sto

[NTG-context] Re: calculate ...

2025-03-04 Thread Thomas Meyer
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

[NTG-context] Re: calculate ...

2025-03-03 Thread Wolfgang Schuster
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

[NTG-context] Re: Right-to-left natural tables

2025-03-02 Thread Bruce Horrocks
> 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 \

[NTG-context] Re: Right-to-left natural tables

2025-03-02 Thread Wolfgang Schuster
\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

[NTG-context] Re: Right-to-left natural tables

2025-03-02 Thread Mohammad Hossein Bateni
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

[NTG-context] Re: You can't use '\prevdepth' in restricted horizontal mode

2025-01-08 Thread Jeong Dal via ntg-context
-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

[NTG-context] Re: You can't use '\prevdepth' in restricted horizontal mode

2025-01-03 Thread Hans Hagen
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(

[NTG-context] Re: You can't use '\prevdepth' in restricted horizontal mode

2025-01-03 Thread Hans Hagen
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(

[NTG-context] Re: You can't use '\prevdepth' in restricted horizontal mode

2025-01-03 Thread Wolfgang Schuster
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

[NTG-context] Re: You can't use '\prevdepth' in restricted horizontal mode

2025-01-03 Thread Florent Michel
]) 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

[NTG-context] You can't use '\prevdepth' in restricted horizontal mode

2025-01-03 Thread Jeong Dal via ntg-context
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

[NTG-context] Re: Row span in tabulate

2024-12-29 Thread Jeong Dal via ntg-context
* 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

[NTG-context] Re: Row span in tabulate

2024-12-29 Thread Florent Michel
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

[NTG-context] Re: Row span in tabulate

2024-12-29 Thread Jeong Dal via ntg-context
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

[NTG-context] Re: Row span in tabulate

2024-12-29 Thread Florent Michel
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,

[NTG-context] Row span in tabulate

2024-12-28 Thread Jeong Dal via ntg-context
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

[NTG-context] Re: How to get enumerated tables to line up with the left edge of text?

2024-12-27 Thread Wolfgang Schuster
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

[NTG-context] Re: Why isn't font changing inside tabulate environment?

2024-12-27 Thread Wolfgang Schuster
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

[NTG-context] Why isn't font changing inside tabulate environment?

2024-12-27 Thread Joel via ntg-context
? \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

[NTG-context] How to get enumerated tables to line up with the left edge of text?

2024-12-27 Thread Joel via 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

[NTG-context] Re: [ extra line in last tabulate column ]

2024-12-24 Thread Hans Hagen via ntg-context
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

[NTG-context] Re: [ extra line in last tabulate column ]

2024-12-24 Thread vm via ntg-context
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

[NTG-context] nesting \dorecurse ]

2024-12-24 Thread vm via ntg-context
? .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

[NTG-context] Re: [ extra line in last tabulate column ]

2024-12-24 Thread Hans Hagen via ntg-context
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

[NTG-context] [ extra line in last tabulate column ]

2024-12-21 Thread vm via ntg-context
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=

[NTG-context] Re: Some questions about punctuation squeezing in Japanese

2024-12-03 Thread Wolfgang Schuster
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

[NTG-context] Re: Problem with tabulate

2024-11-15 Thread Thomas Meyer
] \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

[NTG-context] Re: Problem with tabulate

2024-11-14 Thread Wolfgang Schuster
\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

[NTG-context] Re: Problem with tabulate

2024-11-14 Thread Henning Hraban Ramm
\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

[NTG-context] Re: Problem with tabulate

2024-11-14 Thread Thomas Meyer
\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

[NTG-context] Re: Problem with tabulate

2024-11-13 Thread Thomas Meyer
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

[NTG-context] Re: Problem with tabulate

2024-11-11 Thread Wolfgang Schuster
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

[NTG-context] Problem with tabulate

2024-11-11 Thread Thomas Meyer
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

[NTG-context] Re: making TABLE spacing match tabulate/halign spacing

2024-10-14 Thread Wolfgang Schuster
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

[NTG-context] making TABLE spacing match tabulate/halign spacing

2024-10-14 Thread Kirill Davidov
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

[NTG-context] Re: Interline spacing in tabulate paragraphs

2024-09-15 Thread Florent Michel
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

[NTG-context] Interline spacing in tabulate paragraphs

2024-09-15 Thread Kirill Davidov
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

[NTG-context] Re: ConTeXt beginner, What should I enable within font features? And how do I see all the options possible?

2024-09-07 Thread Wolfgang Schuster
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{

[NTG-context] Re: Is there an alternative to \reference[]{} that won't interfere with the document design?

2024-09-03 Thread Wolfgang Schuster
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] \

[NTG-context] Re: understanding units / dimensions

2024-08-26 Thread Hans Hagen via ntg-context
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

[NTG-context] Re: understanding units / dimensions

2024-08-25 Thread Wolfgang Schuster
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] \

[NTG-context] Re: Arranging bullets within tabulate and itemize

2024-06-19 Thread Wolfgang Schuster
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

[NTG-context] Arranging bullets within tabulate and itemize

2024-06-19 Thread Lukas via ntg-context
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

[NTG-context] Re: simplify side by side Poems

2024-05-23 Thread Wolfgang Schuster
[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

[NTG-context] Errors with 2024-05-11 LMTX

2024-05-12 Thread Rik Kabel
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

[NTG-context] Wiki - question about Command/ pages which start with a space character

2024-04-14 Thread garulfo
/ 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

[NTG-context] Re: incosistent output of --- dash

2024-04-06 Thread vm via ntg-context
\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

[NTG-context] Re: incosistent output of --- dash

2024-04-06 Thread Hans Hagen
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 ‒

[NTG-context] Re: incosistent output of --- dash

2024-04-06 Thread Wolfgang Schuster
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

[NTG-context] Re: Why aren't cross-references working in tabulate?

2024-03-15 Thread Joel via ntg-context
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

[NTG-context] Re: Why aren't cross-references working in tabulate?

2024-03-15 Thread Wolfgang Schuster
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

[NTG-context] Why aren't cross-references working in tabulate?

2024-03-15 Thread Joel via ntg-context
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

[NTG-context] Re: new context option

2024-02-24 Thread Otared Kavian
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: >>>

[NTG-context] Re: new context option

2024-02-24 Thread Denis Maier via ntg-context
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.

[NTG-context] Re: new context option

2024-02-24 Thread Otared Kavian
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 > > -

[NTG-context] new context option

2024-02-22 Thread Hans Hagen
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

[NTG-context] Re: MetaPost lines in tables?

2024-02-22 Thread Hans Hagen via ntg-context
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

[NTG-context] XML processing, unwanted indentation/alignment

2024-02-15 Thread Michael Guravage
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:

[NTG-context] Re: \starttable questions

2024-01-25 Thread Jim
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 >

[NTG-context] Re: \starttable questions

2024-01-25 Thread Wolfgang Schuster
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

[NTG-context] Re: \starttable questions

2024-01-25 Thread Jim
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

[NTG-context] Re: \starttable questions

2024-01-25 Thread Henning Hraban Ramm
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

[NTG-context] Testing whether an XML attribute exists

2023-10-17 Thread Michael Guravage
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 \

[NTG-context] Problems with line numbered program listings

2023-10-04 Thread Bruce Horrocks
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

[NTG-context] Re: Penalties and overprinting in tabulate

2023-08-21 Thread Hans Hagen
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

[NTG-context] Re: Penalties and overprinting in tabulate

2023-08-21 Thread denis.maier
t; > \startsetups[mypenalties] > > \setdefaultpenalties > > \setpenalties\clubpenalties{1}{150} > > \setpenalties\widowpenalties{1}{1} > > \setpenalties\displaywidowpenalties{1}{1} > > \stopsetups > > > > \setuplayout[setups=mypen

[NTG-context] Re: Penalties and overprinting in tabulate

2023-08-18 Thread Hans Hagen
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

[NTG-context] Re: Penalties and overprinting in tabulate

2023-08-18 Thread Hans Hagen
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

[NTG-context] Penalties and overprinting in tabulate

2023-08-18 Thread denis.maier
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

[NTG-context] itemize

2023-08-15 Thread Hans Hagen via ntg-context
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

[NTG-context] itemize

2023-08-15 Thread Hans Hagen via ntg-context
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

[NTG-context] Re: upload

2023-08-09 Thread Rik Kabel
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

Re: [NTG-context] Tabulate: Change cell orienation for individual cells?

2023-06-27 Thread Bruce Horrocks via ntg-context
> 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[

Re: [NTG-context] Tabulate: Change cell orienation for individual cells?

2023-06-27 Thread Denis Maier via ntg-context
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

[NTG-context] Tabulate: Change cell orienation for individual cells?

2023-06-27 Thread Denis Maier via ntg-context
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

Re: [NTG-context] Problem with \stoptabulate

2023-03-21 Thread Bruce Horrocks via ntg-context
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

Re: [NTG-context] Problem with \stoptabulate

2023-03-21 Thread Bruce Horrocks via ntg-context
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} %%

Re: [NTG-context] Problem with \stoptabulate

2023-03-21 Thread Hans Hagen via ntg-context
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

Re: [NTG-context] Bug in tabulate

2023-03-21 Thread Hans Hagen via ntg-context
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

[NTG-context] Bug in tabulate

2023-03-20 Thread 李延瑞
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

Re: [NTG-context] Problem with \stoptabulate

2023-03-20 Thread jbf via ntg-context
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

[NTG-context] Problem with \stoptabulate

2023-03-20 Thread Bruce Horrocks via ntg-context
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

Re: [NTG-context] Disappearing footnote in figure / tabulate

2023-03-02 Thread Denis Maier via ntg-context
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}{

[NTG-context] Disappearing footnote in figure / tabulate

2023-03-02 Thread Denis Maier via ntg-context
\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

Re: [NTG-context] \setupparagraphs - can they run over two pages?

2023-02-27 Thread jbf via ntg-context
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

Re: [NTG-context] \setupparagraphs - can they run over two pages?

2023-02-27 Thread mf via ntg-context
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

Re: [NTG-context] Chapter cover page

2023-02-23 Thread Alex Leray via ntg-context
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

Re: [NTG-context] Chapter cover page

2023-02-23 Thread Bruce Horrocks via ntg-context
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 &

[NTG-context] Chapter cover page

2023-02-23 Thread Alex Leray via ntg-context
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

[NTG-context] \startnarrow seems to have no effect for tabulate

2023-02-22 Thread Denis Maier via ntg-context
] \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

Re: [NTG-context] Tabulate \TH command not working in latest release

2023-01-04 Thread Hans Hagen via ntg-context
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

[NTG-context] Tabulate \TH command not working in latest release

2023-01-04 Thread Michael Guravage via ntg-context
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

Re: [NTG-context] new upload

2022-12-27 Thread Floris van Manen via ntg-context
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

[NTG-context] new upload

2022-12-27 Thread Hans Hagen via ntg-context
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

Re: [NTG-context] How to stop enumerated tabulate environments from shifting to the right?

2022-11-12 Thread fv leung via ntg-context
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

[NTG-context] How to stop enumerated tabulate environments from shifting to the right?

2022-11-12 Thread Joel via ntg-context
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   2   3   4   5   6   7   8   9   10   >