Re: [NTG-context] Clipping multiple PDFs

2022-08-23 Thread Aditya Mahajan via ntg-context
quot;} > for index=1,#pdffiles do > local f = doc(pdffiles[index]) > context.getfiguredimensions({f}) > disppdf(pdffiles[index]) > end > \stopluacode > \stoptext > > I didn’t know how to get an array (or indexed table or whatever you call it) > in ConT

Re: [NTG-context] Clipping multiple PDFs

2022-08-22 Thread Jethro Djan via ntg-context
ss2", "ass3", "ass4", "ass5", "ass6", "ass7", "ass8"} for index=1,#pdffiles do local f = doc(pdffiles[index]) context.getfiguredimensions({f}) disppdf(pdffiles[index]) end \stopluacode \stoptext I didn’t know how to get

Re: [NTG-context] Clipping multiple PDFs

2022-08-22 Thread Jethro Djan via ntg-context
ss2", "ass3", "ass4", "ass5", "ass6", "ass7", "ass8"} for index=1,#pdffiles do local f = doc(pdffiles[index]) context.getfiguredimensions({f}) disppdf(pdffiles[index]) end \stopluacode \stoptext I didn’t know how to get

Re: [NTG-context] Clipping multiple PDFs

2022-08-22 Thread Jethro Djan via ntg-context
;, "ass3", "ass4", "ass5", "ass6", "ass7", "ass8"} for index=1,#pdffiles do local f = doc(pdffiles[index]) context.getfiguredimensions({f}) disppdf(pdffiles[index]) end \stopluacode \stoptext I didn’t know how to ge

Re: [NTG-context] Changing the caption on a split table

2022-08-13 Thread Wolfgang Schuster via ntg-context
Bruce Horrocks via ntg-context schrieb am 13.08.2022 um 10:35: On 3 Aug 2022, at 00:26, Bruce Horrocks via ntg-context wrote: I have a 5-page table placed using \setupcaption [table] [way=bytext,prefixsegments=none] \placetable[split]{My long table}{...} The caption for the first table page

Re: [NTG-context] Changing the caption on a split table

2022-08-13 Thread Bruce Horrocks via ntg-context
> On 3 Aug 2022, at 00:26, Bruce Horrocks via ntg-context > wrote: > > I have a 5-page table placed using > > \setupcaption [table] [way=bytext,prefixsegments=none] > \placetable[split]{My long table}{...} > > The caption for the first table page is "T

[NTG-context] Changing the caption on a split table

2022-08-02 Thread Bruce Horrocks via ntg-context
I have a 5-page table placed using \setupcaption [table] [way=bytext,prefixsegments=none] \placetable[split]{My long table}{...} The caption for the first table page is "Table 1a My Long table"; for the second table page it is "Table 1b My long table" and so on. I'd

[NTG-context] barring changes

2022-07-28 Thread Henning Hraban Ramm via ntg-context
Please consider the attached example – some of the “barring” macros are defunct already for a while, some more within a TABLE: \underbar works, but not in TABLE \underbarsworks \underdot doesn’t work \underdotsdoesn’t work \underdashdoesn’t work \underdashes doesn’t work

Re: [NTG-context] How to switch off the numbering of a float in a CLDocument?

2022-07-21 Thread Taco Hoekwater via ntg-context
xt.externalfigure("{cow.pdf}",{width="0.5\\textwidth"}) It is subtle, but you need: context.externalfigure({“cow.pdf"},{width="0.5\\textwidth"}) A “lua table” becomes [] stuff, a “lua string” becomes {} stuff. Your original resulted in \externalfigure{{cow.pdf}}[width={0.5\

Re: [NTG-context] How to setup a headertext in a doublesided document in a cld?

2022-07-20 Thread Willi Egger via ntg-context
Hi Wolfgang, Thanks for your respons! Tonight I prepared a simplified version of the issue. It appears, that the header as I set it up in my previous mail works correclty on odd and even pages. However the struggle is, that after setting up the header on a odd page, there follows a table

Re: [NTG-context] upload

2022-07-07 Thread Hans Hagen via ntg-context
On 7/7/2022 3:15 AM, Max Chernoff via ntg-context wrote: Hi, With the latest upload, "tex.linebreak" doesn't return an "info" table. When running this code:     \startluacode     function test(head)     local new_head, info = tex.lin

Re: [NTG-context] upload

2022-07-06 Thread Max Chernoff via ntg-context
Hi, With the latest upload, "tex.linebreak" doesn't return an "info" table. When running this code: \startluacode function test(head) local new_head, info = tex.linebreak(node.copylist(head)) print(head, type(head), info, type(in

Re: [NTG-context] Auto width and height on table cells

2022-06-30 Thread Pablo Rodriguez via ntg-context
as in: \starttext \showframe \startbuffer row\currentxtablerow--col\currentxtablecolumn \stopbuffer \startbuffer[table] \startxtable[option={stretch, height}, align={lohi, middle}] \startxrow \dorecurse{5} {\startxcell[width=.115\textwidth]\inl

Re: [NTG-context] Auto width and height on table cells

2022-06-30 Thread Angel M Alganza via ntg-context
Hi Pablo, On Thu, Jun 30, 2022 at 04:15:10PM +0200, Pablo Rodriguez via ntg-context wrote: I’m not sure whether I’m totally missing your point, but I think this is a way that might achieve what you want: No, you aren't, and it almost does it, except when the fixed width column is other than t

Re: [NTG-context] Auto width and height on table cells

2022-06-30 Thread Pablo Rodriguez via ntg-context
ext \showframe \startbuffer row\currentxtablerow--col\currentxtablecolumn \stopbuffer \startbuffer[table] \startxtable[option={stretch, height}, align={lohi, middle}] \startxrow \startxcell[width=3cm, option=fixed]\inlinebuffer\stopxcell \dorecurse{5}

Re: [NTG-context] Auto width and height on table cells

2022-06-30 Thread Angel M Alganza via ntg-context
ation like in LaTeX: We have a choice of table “packages”, but none of them covers my most common use cases. Same here. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist

Re: [NTG-context] Auto width and height on table cells

2022-06-30 Thread Henning Hraban Ramm via ntg-context
ce when can one not set up something in some context subsystem? Why would I make a table mechanism with no presets? Yes, presets are nice, and I appreciate the better performance, but if I can setup stuff like striped tables or some other “advanced” formatting without explicite settings with

Re: [NTG-context] Auto width and height on table cells

2022-06-30 Thread Angel M Alganza via ntg-context
Hi again, Hans, On Thu, Jun 30, 2022 at 10:26:58AM +0200, Hans Hagen via ntg-context wrote: How about the auto row height?  That'd be the only thing I'm missing. we don't have it for the vertical direction ... you can remind me later this year (to see if it is doable) Ah, OK. Thank you! :-

Re: [NTG-context] Auto width and height on table cells

2022-06-30 Thread Hans Hagen via ntg-context
On 6/30/2022 9:46 AM, Angel M Alganza via ntg-context wrote: On Thu, Jun 30, 2022 at 09:36:07AM +0200, Hans Hagen via ntg-context wrote: You're joking right? SInce when can one not set up something in some context subsystem? Why would I make a table mechanism with no presets?

Re: [NTG-context] Auto width and height on table cells

2022-06-30 Thread Angel M Alganza via ntg-context
On Thu, Jun 30, 2022 at 09:36:07AM +0200, Hans Hagen via ntg-context wrote: You're joking right? SInce when can one not set up something in some context subsystem? Why would I make a table mechanism with no presets? I see! :-) It's just more symbolic than in natural tables (which

Re: [NTG-context] Auto width and height on table cells

2022-06-30 Thread Hans Hagen via ntg-context
ou're right. You're joking right? SInce when can one not set up something in some context subsystem? Why would I make a table mechanism with no presets? \starttext \setupxtable[suffix][align=middle,foregroundcolor=red] \setupxtable[blabla][foregroundstyle=slanted] \setupxtable[crap] [

Re: [NTG-context] Auto width and height on table cells

2022-06-30 Thread Angel M Alganza via ntg-context
Hi Henning, On Thu, Jun 30, 2022 at 09:02:28AM +0200, Henning Hraban Ramm via ntg-context wrote: They’re also tedious, because you can’t setup rows/columns in advance (like \setupTABLE) – or did that change? I'm afraid you're right. Cheers, Ángel

Re: [NTG-context] Auto width and height on table cells

2022-06-30 Thread Henning Hraban Ramm via ntg-context
Am 30.06.22 um 08:40 schrieb Angel M Alganza via ntg-context: Hello, Hans, On Thu, Jun 30, 2022 at 08:16:53AM +0200, Hans Hagen via ntg-context wrote: \startxtable[option=stretch]   \startxrow   \startxcell[width=3cm,option=fixed] one \stopxcell Thank you very much, that does part of the

Re: [NTG-context] Auto width and height on table cells

2022-06-29 Thread Angel M Alganza via ntg-context
Hello, Hans, On Thu, Jun 30, 2022 at 08:16:53AM +0200, Hans Hagen via ntg-context wrote: \startxtable[option=stretch] \startxrow \startxcell[width=3cm,option=fixed] one \stopxcell Thank you very much, that does part of the trick (the column width). Is there a way to do the same for th

Re: [NTG-context] Auto width and height on table cells

2022-06-29 Thread Hans Hagen via ntg-context
On 6/30/2022 7:43 AM, Angel M Alganza via ntg-context wrote: Hello, I want some tables to occupy 100% of \textwidth and \textheight and for all columns to be the same width except one or two that I want to specify and for all rows to be the same height except for one or two, that I want to speci

[NTG-context] Auto width and height on table cells

2022-06-29 Thread Angel M Alganza via ntg-context
Hello, I want some tables to occupy 100% of \textwidth and \textheight and for all columns to be the same width except one or two that I want to specify and for all rows to be the same height except for one or two, that I want to specify as well.. For the moment, I'm doing it "manually", calcu

Re: [NTG-context] Foonotes in Captions ... again

2022-06-16 Thread Henning Hraban Ramm via ntg-context
ic for the monthly context chat? I agree – local, floating or postponed footnotes are an interesting topic. In MkIV we needed \automigrateinserts, but that’s unnecessary and a noop in LMTX. In my book still footnotes (esp. in table floats) go missing, and I need to find a MWE. In your exam

Re: [NTG-context] local footnotes and captions

2022-06-16 Thread Denis Maier via ntg-context
I'm not quite I understand: Are you saying I should leave the caption in "global scope"? Regarding the second version: Shouldn't that be: \startlocalfootnotes \footnotetext[asdf]{asdf} % this %\footnotetext[asdf]{\footnote{asdf}} % instead of this \startplacetable[title={A b

Re: [NTG-context] local footnotes and captions

2022-06-16 Thread Hans Hagen via ntg-context
    % The caption     {A breakfast table.\footnote{asdf}}     % the table     \placelegend     {\starttable[|l|r|]     \HL     \VL Spam \footnote {lovely} \VL Bacon \footnote {wonderful} \VL\FR     \VL Eggs \footnote {wonderful} \VL Spam \footnote {lovely} \VL\LR

[NTG-context] local footnotes and captions

2022-06-16 Thread Denis Maier via ntg-context
Hi, another experiment with footnotes in captions, this time local footnotes : %%% \setupcaptions[location=top] \starttext \startlocalfootnotes \placetable % The caption {A breakfast table.\footnote{asdf}} % the table

Re: [NTG-context] Table of Contents empty for unknown reason

2022-06-13 Thread Aditya Mahajan via ntg-context
On Sun, 12 Jun 2022, Joel via ntg-context wrote: > I need to display a table of contents, but only displaying chapters. > > Here is my minimum working example: You need to add "criterium=all" to both placelist and completecontent. See below: > \starttext &

[NTG-context] small fontsize and \definecolumnsetspan cause columns to jump (bug?)

2022-06-12 Thread a badin via ntg-context
x27;m doing something wrong. Any idea about how to align all the lines in this specific table? I'm using it in a whole chapter in a small book with poems and on a small format the jump is visible. \showgrid \setupbodyfont[10pt] %\setupbodyfont[12pt] % works ok \setuppapersize[A8] % just to

[NTG-context] Table of Contents empty for unknown reason

2022-06-12 Thread Joel via ntg-context
I need to display a table of contents, but only displaying chapters. Here is my minimum working example: \starttext     \startfrontmatter         \startchapter[title={Contents}]             \placelist[chapter]         \stopchapter         \completecontent     \stopfrontmatter     \startbodymatter

Re: [NTG-context] Improving pandoc's ConTeXt output

2022-06-08 Thread Albert Krewinkel via ntg-context
oc's ConTeXt support. A big "thank you" for everyone's feedback! We've implemented the first point as suggested, with the second still in discussion. The next pandoc version will also feature better table support for ConTeXt. Thanks again, ConTeXt is a wonderful tool!

Re: [NTG-context] Contractions in ligature suppression word list

2022-06-07 Thread Denis Maier via ntg-context
estwithsuffix = { name= "test-with-suffix", options = { { patterns = {fi = "f|i",}, words = [[ wolfin' wolfin’ ]], }, }, } -- which table do we want to test? -- table.save("test.llg",testoversuffixboundary) table.save("test"

Re: [NTG-context] issue with scite module

2022-06-02 Thread Pablo Rodriguez via ntg-context
-06-02 16:37:30.112824947 +0200 @@ -13,7 +13,7 @@ -- todo: parse entities in attributes local global, string, table, lpeg = _G, string, table, lpeg -local P, R, S, C, Cmt, Cp = lpeg.P, lpeg.R, lpeg.S, lpeg.C, lpeg.Cmt, lpeg.Cp +local P, R, S, C, Cmt, Cp, lpatterns = lpeg.P, lpeg.R, lpeg.S, l

Re: [NTG-context] How to include a file with table data within a table?

2022-05-29 Thread Wolfgang Schuster via ntg-context
I sent a fix to the dev list. Wolfgang Joel via ntg-context schrieb am 29.05.2022 um 18:34: After a recent update to ConTeXt, the code no longer seems to allow me to \input a file within a table: \starttext \starttabulate[|p(.3\textwidth)|p(.7\textwidth)|]  \HL         \NC {\bf Term} \NC

Re: [NTG-context] How to include a file with table data within a table?

2022-05-29 Thread Joel via ntg-context
t update to ConTeXt, the code no longer seems to allow me > to \input a file within a table: > > \starttext > \starttabulate[|p(.3\textwidth)|p(.7\textwidth)|] >      \HL >          \NC {\bf Term} \NC {\bf Definition} \NC\NR >      \HL >          \input test2.tex %<-

Re: [NTG-context] How to include a file with table data within a table?

2022-05-29 Thread Henning Hraban Ramm via ntg-context
Did you try \input{file.tex} ? (Just an idea, didn’t try.) Hraban Am 29.05.22 um 18:34 schrieb Joel via ntg-context: After a recent update to ConTeXt, the code no longer seems to allow me to \input a file within a table: \starttext \starttabulate[|p(.3\textwidth)|p(.7\textwidth)|]     \HL

[NTG-context] How to include a file with table data within a table?

2022-05-29 Thread Joel via ntg-context
After a recent update to ConTeXt, the code no longer seems to allow me to \input a file within a table: \starttext \starttabulate[|p(.3\textwidth)|p(.7\textwidth)|]     \HL         \NC {\bf Term} \NC {\bf Definition} \NC\NR                     \HL         \input test2.tex %<here you se

Re: [NTG-context] split TABLE cells

2022-05-19 Thread Wolfgang Schuster via ntg-context
Steffen Wolfrum via ntg-context schrieb am 19.05.2022 um 12:44: do you have a MWE? the example from https://wiki.contextgarden.net/Tabulate gives an empty page: [...] You need \starttext and \stoptext in your document. The examples in the wiki don't need both commands because they are added

Re: [NTG-context] split TABLE cells

2022-05-19 Thread Steffen Wolfrum via ntg-context
> Am 19.05.2022 um 08:14 schrieb Hans Hagen via ntg-context > : > > On 5/18/2022 8:07 PM, Steffen Wolfrum via ntg-context wrote: >> Hi, >> I just found an old mail from 30 May 2008: >> How do I split not only TABLE but cells? It was not possible then. >> \s

Re: [NTG-context] split TABLE cells

2022-05-18 Thread Hans Hagen via ntg-context
On 5/18/2022 8:07 PM, Steffen Wolfrum via ntg-context wrote: Hi, I just found an old mail from 30 May 2008: How do I split not only TABLE but cells? It was not possible then. \starttext \bTABLE[split=yes,option=stretch] \bTR \bTD \input tufte \input knuth Hello world ... \eTD \bTD \input

[NTG-context] split TABLE cells

2022-05-18 Thread Steffen Wolfrum via ntg-context
Hi, I just found an old mail from 30 May 2008: How do I split not only TABLE but cells? It was not possible then. \starttext \bTABLE[split=yes,option=stretch] \bTR \bTD \input tufte \input knuth Hello world ... \eTD \bTD \input tufte \eTD \bTD \input knuth \eTD \eTR \bTR \bTD Test \eTD \bTD

[NTG-context] PDF/A-3, XMP and Factur-X

2022-05-18 Thread Henning Hraban Ramm via ntg-context
123456") \stopluacode Would I need to add my tags to the mapping table of lpdf-xmp.lua? Or circumvent it after a look at the function concerned: function lpdf.addxmpinfo(tag,value,check) local pattern = permitdetail(tag) if type(pattern) == "string" then xmlfillin(x

Re: [NTG-context] Table breaks incorrectly between pages

2022-05-15 Thread śrīrāma via ntg-context
On 5/15/22 6:18 PM Bruce Horrocks wrote: > Too slow!! > > I'd already added https://wiki.contextgarden.net/ TABLE#Tables_in_page_headers. Hmm. I searched the wiki for '\bTABLEnested' and this did not show up there. I just now checked the edit history now and you seem

Re: [NTG-context] issue with two recently added PDF manuals

2022-05-15 Thread Günter Kolousek via ntg-context
Same here! ❯ qpdfview onandon.pdf documents/general/manuals "Error: Couldn't find trailer dictionary" "Error: Couldn't find trailer dictionary" "Error: Couldn't read xref table" ❯ ❯ qpdfview columnsets.pdf documents/general/manuals "Error

Re: [NTG-context] Table breaks incorrectly between pages

2022-05-15 Thread Bruce Horrocks via ntg-context
Too slow!! I'd already added https://wiki.contextgarden.net/TABLE#Tables_in_page_headers. > On 15 May 2022, at 12:00, śrīrāma via ntg-context wrote: > > On 5/15/22 2:20 PM Wolfgang Schuster via ntg-context wrote: >> Use the TABLEnested environment in your document header w

Re: [NTG-context] Table breaks incorrectly between pages

2022-05-15 Thread śrīrāma via ntg-context
Enested > \stopsetups Splendid (as always)! Definitely a better solution for Stefan's document. I added a section in the wiki making a note of this: https://wiki.contextgarden.net/TABLE#Headers_with_TABLEs Thanks Wolfgang! Until now, I did not even know of the 'n

Re: [NTG-context] Table breaks incorrectly between pages

2022-05-15 Thread Wolfgang Schuster via ntg-context
Stefan Nedeljkovic via ntg-context schrieb am 13.05.2022 um 09:00: Dear list I need your help with a table that seems to completely screw up the page when it spans across multiple pages. I'm attaching all the necessary files. Use the TABLEnested environment in your document header whic

Re: [NTG-context] Table breaks incorrectly between pages

2022-05-14 Thread Stefan Nedeljkovic via ntg-context
Wow, thank you very, very much! On Sun, 15 May 2022, 05:35 śrīrāma, wrote: > On 5/13/22 12:30 PM Stefan Nedeljkovic via ntg-context wrote: > > Dear list I need your help with a table that seems to completely screw up > > the page when it spans across multiple pages. I'

Re: [NTG-context] Table breaks incorrectly between pages

2022-05-14 Thread śrīrāma via ntg-context
On 5/13/22 12:30 PM Stefan Nedeljkovic via ntg-context wrote: > Dear list I need your help with a table that seems to completely screw up > the page when it spans across multiple pages. I'm attaching all the > necessary files. > > Kind regards, > Stefan This seems to be a

[NTG-context] Table breaks incorrectly between pages

2022-05-14 Thread Stefan Nedeljkovic via ntg-context
Dear list I need your help with a table that seems to completely screw up the page when it spans across multiple pages. I'm attaching all the necessary files. Kind regards, Stefan \input fonts \usetypescript[ibmplex][uc] \setupbodyfont[ibmplex,rm,9pt] \setuppapersize[A4] \setuplayout[ lef

Re: [NTG-context] Simple question

2022-05-10 Thread Henning Hraban Ramm via ntg-context
Marei.) Without researching I assume there are already Lua functions to read a CSV file into a Lua table, and the lookup is easy – since I’m not fluent in Lua, I won’t provide the function(s) for you. BTW there is already \translate (https://wiki.contextgarden.net/Command/translate) that ch

Re: [NTG-context] Citeproc-lua

2022-05-06 Thread Denis Maier via ntg-context
texbook},prefix={see },suffix={, everywhere}}}{1}} \citation {{texbook@4}{{id={texbook},prefix={see },label={page},locator={12, and passim}}}{1}} But I guess that's the way these things work in latex, and adding that stuff to a lua table will probably save us much trouble anyway. (E.g., no nee

Re: [NTG-context] Citeproc-lua

2022-05-06 Thread Taco Hoekwater via ntg-context
/copy for someone who knows what is actually in the ConTeXt .tuc file. On the output side, it uses a lookup table to generate the desired markup (in citeproc-formats.lua). Right now, there are definitions provided for HTML and LaTeX, but that is very simple to extend. There is a LaTeX package for

Re: [NTG-context] XML: calculations on attribute values before output

2022-05-05 Thread Duncan Hothersall via ntg-context
s here too. Thanks again. Duncan On Thu, 5 May 2022 at 08:21, Taco Hoekwater wrote: > > > > On 4 May 2022, at 22:10, Duncan Hothersall via ntg-context < > ntg-context@ntg.nl> wrote: > > > > Hi. > > > > I'm processing an XML table and need to set a

Re: [NTG-context] Crediting copyright on photographs

2022-05-05 Thread Richard Mahoney via ntg-context
yright > anymore.}{\externalfigure[cow][height=6cm]} > > then the copyright bit will appear in the Table of Figures which I > don't really want to happen. Is there a way to truncate this? Using \startplacefigure[title={complete caption}, list={description in the table of figur

Re: [NTG-context] XML: calculations on attribute values before output

2022-05-05 Thread Taco Hoekwater via ntg-context
> On 4 May 2022, at 22:10, Duncan Hothersall via ntg-context > wrote: > > Hi. > > I'm processing an XML table and need to set a row span. Because we use a > variant of the CALS table model, spans are defined by an attribute saying how > many *additional* rows

Re: [NTG-context] Crediting copyright on photographs

2022-05-04 Thread Henning Hraban Ramm via ntg-context
text: e.g. \placefigure{A picture of a cow. Image of a cow that may or may not be under copyright anymore.}{\externalfigure[cow][height=6cm]} then the copyright bit will appear in the Table of Figures which I don't really want to happen. Is there a way to truncate this? Using \startplacefigure[

Re: [NTG-context] Crediting copyright on photographs

2022-05-04 Thread Adam Reviczky via ntg-context
copyright anymore.}{\externalfigure[cow][height=6cm]} > > then the copyright bit will appear in the Table of Figures which I don't > really want to happen. Is there a way to truncate this? > > > Option 2: some magazines print the copyright credit running up the side of > the

[NTG-context] Crediting copyright on photographs

2022-05-04 Thread Bruce Horrocks via ntg-context
may not be under copyright anymore.}{\externalfigure[cow][height=6cm]} then the copyright bit will appear in the Table of Figures which I don't really want to happen. Is there a way to truncate this? Option 2: some magazines print the copyright credit running up the side of the image, indep

[NTG-context] XML: calculations on attribute values before output

2022-05-04 Thread Duncan Hothersall via ntg-context
Hi. I'm processing an XML table and need to set a row span. Because we use a variant of the CALS table model, spans are defined by an attribute saying how many *additional* rows should be spanned, as opposed to how many *in total*. So to translate this into TABLE \bTD[nr=X] syntax I need to

Re: [NTG-context] recursion in a table

2022-05-02 Thread Hans Hagen via ntg-context
On 5/2/2022 2:30 AM, Aditya Mahajan via ntg-context wrote: \expanded{\NC \recurselevel \noexpand\NC ... } There is no need for \noexpand before \NC. Even \NR is protected. In MKIV there are some more sensitive ones like \FR but in LMTX these are defined as \noaligned which permits them being

Re: [NTG-context] recursion in a table

2022-05-01 Thread Aditya Mahajan via ntg-context
On Sun, 1 May 2022, Henning Hraban Ramm via ntg-context wrote: > Hi, > I was playing with the example from > https://wiki.contextgarden.net/Scaling_Rotating_Mirroring_Clipping#Location_parameter > > and tried to put it in a tabulate: > > > \useMPlibrary[dum] > \setupexternalfigures[width=3em,

[NTG-context] recursion in a table

2022-05-01 Thread Henning Hraban Ramm via ntg-context
Hi, I was playing with the example from https://wiki.contextgarden.net/Scaling_Rotating_Mirroring_Clipping#Location_parameter and tried to put it in a tabulate: \useMPlibrary[dum] \setupexternalfigures[width=3em,height=2em,frame=on,] %\def\TXT{\ruledhbox{\bf(XyX)}} \def\TXT{\externalfigure[p

Re: [NTG-context] context module t-account in LMTX

2022-04-28 Thread Heinrich Paeßens via ntg-context
17:10, Wolfgang Schuster via ntg-context > wrote: > > Heinrich Paeßens schrieb am 28.04.2022 um 16:39: >> Many thanks Wolfgang, >> >> I can see the 'values' in a table like form, nothing but the values — how >> can I switch on the 'lines' of the tab

Re: [NTG-context] context module t-account in LMTX

2022-04-28 Thread Wolfgang Schuster via ntg-context
Heinrich Paeßens schrieb am 28.04.2022 um 16:39: Many thanks Wolfgang, I can see the 'values' in a table like form, nothing but the values — how can I switch on the 'lines' of the table? You can either add     \setuptaccount[mp=taccount:line] or     \setuptacco

Re: [NTG-context] context module t-account in LMTX

2022-04-28 Thread Heinrich Paeßens via ntg-context
Many thanks Wolfgang, I can see the 'values' in a table like form, nothing but the values — how can I switch on the 'lines' of the table?Best regards, HeinrichI took your file t-taccount.mkxland——% !TEX program = lmtx\usemodule[t][taccount]\startTEXpage[offset=5pt]\startt

[NTG-context] Why can I no longer place \input inside table after update?

2022-04-23 Thread Joel via ntg-context
ing an argument." Before the update, this code worked fine. How can I \input a file while inside a table environment, as above? Thanks, --Joel ___ If your question is of interest to others as well, please add a

Re: [NTG-context] xmlpos values doubled

2022-04-20 Thread Pablo Rodriguez via ntg-context
On 4/20/22 11:51, Ben Moon via ntg-context wrote: > Hello again, > > I wonder whether anyone has some thoughts to help with my problem? > Either why \xmlpos gives double values or alternatives to arrange my > table format? Hi Ben, I think that both \xmlpos and \xmldepth give weird

Re: [NTG-context] xmlpos values doubled

2022-04-20 Thread Ben Moon via ntg-context
Hello again, I wonder whether anyone has some thoughts to help with my problem? Either why \xmlpos gives double values or alternatives to arrange my table format? Best wishes, Ben On Mon, 28 Mar 2022, at 10:44, Ben Moon via ntg-context wrote: > Hello All, > > I'm trying to

Re: [NTG-context] right item marks for associative questions?

2022-04-12 Thread Wolfgang Schuster via ntg-context
ially with long answers.. That makes a four columns table more cumbersome, so I believe. You can use different alignment settings to move the bullet points to the right side of your lists. \starttext \bTABLE[frame=off,width=.4\textwidth,columndistance=.2\textwidth,align={normal,lohi}]  

Re: [NTG-context] right item marks for associative questions?

2022-04-12 Thread Damien Thiriet via ntg-context
ot; feature is one way to go Might be, but I do not always give the same number of answers on both columns Something I forgot to put in my MWE is that I randomize both lists. Messing the answers is a good way to prevent pupils from cheating, especially with long answers.. That makes a four colu

Re: [NTG-context] right item marks for associative questions?

2022-04-11 Thread śrīrāma via ntg-context
ak the alternative, align, closesymbol, closecommand to get exactly what you want; the example above will give a somewhat symmetric layout] More generally, if the text can multi-line, then I think TABLE (with proper alignment options) might be better-suited: %%% start example-2 \define\startIte

Re: [NTG-context] processdatabasefile styling of table cells

2022-04-06 Thread Bruce Horrocks via ntg-context
ers a lot. Sometimes only the last column contains decimal > numbers, sometimes the last two columns. Not sure what will happen here - try it and see. Whenever my table layouts go wildly wrong, Context usually manage

[NTG-context] processdatabasefile styling of table cells

2022-04-06 Thread juh+ntg-context--- via ntg-context
Hi all, I include tables via csv files like this \processdatabasefile[test][test.csv] I was able to style the tables with this: \setupTABLE [ split=yes, header=repeat, option=stretch, loffset=.5ex,roffset=.5ex] \setupTABLE [row] [odd] [background=color,backgroundcolor=hs-hellblau,] \setupTA

Re: [NTG-context] modify kern between two glyphs

2022-04-05 Thread mf via ntg-context
There's a problem with oldstyle glyphs, because they have different codes inside a font. I used fontforge to find the "four.oldstyle" glyph, whose code is 0xf734. But then I discovered that the 'four.oldstyle' key works the same in the lua table. This is the

Re: [NTG-context] modify kern between two glyphs

2022-04-05 Thread mf via ntg-context
the right macro. It looks like it's not. I'm expecting there's a lua font table with glyph pairs kerning to update. Massi ___ If your question is of interest to others as well, please add an entry to the W

Re: [NTG-context] How to group list of figures and list of tables by chapter?

2022-03-31 Thread Werner Schmidt via ntg-context
Thanks a lot it works! I just had to add \noindent because for some strange reason the chapter title was indented after adding the \writebetweenlist hook to \setuphead. before={ \noindent \writebetweenlist [figure] [location=here] {\blank} \writebetweenlist [table] [location=here] {\blank

[NTG-context] xmlpos values doubled

2022-03-28 Thread Ben Moon via ntg-context
Hello All, I'm trying to render a table stored in XML JATS format (https://jats.nlm.nih.gov/archiving/) and eventually want to use the tag to setup column aligning from the @align attribute, e.g., \setupTABLE [column] [\xmlpos{#1}] [align=\xmlatt{#1}{align}] Including \xmlpos{#1}

Re: [NTG-context] embedding tex and lua code in

2022-03-24 Thread mf via ntg-context
t;script type="text/x-lua"> in the <head> element (BTW, "text/x-lua" is the mimetype proposed by freedesktop.org for lua scripts. That element is managed by this code: --   if mimetype and mimetype == "text/x-lua" then     local

Re: [NTG-context] redefining xmlsetups inside a XML document

2022-03-22 Thread mf via ntg-context
s) context( "\\startluacode " .. code .. " \\stopluacode" ) end -- s is the table representing the script element. That works, but it has a problem with one-line comments: -- <script type="

Re: [NTG-context] Make footnote/endnote number not superscript?

2022-03-20 Thread Rik Kabel via ntg-context
t will make the main text cleaner if I use endnotes rather than include the URL in-line in the text or as a (distracting) footnote. So when the author writes "See my video at URL>" I will print "See my video at link 1". At the back of the book, in an appendix somewhere, I t

Re: [NTG-context] Make footnote/endnote number not superscript?

2022-03-20 Thread Wolfgang Schuster via ntg-context
include the URL in-line in the text or as a (distracting) footnote. So when the author writes "See my video at " I will print "See my video at link 1". At the back of the book, in an appendix somewhere, I then use \placenotes to display a table of the actual URLs for any readers

Re: [NTG-context] Make footnote/endnote number not superscript?

2022-03-20 Thread jbf via ntg-context
an include the URL in-line in the text or as a (distracting) footnote. So when the author writes "See my video at " I will print "See my video at link 1". At the back of the book, in an appendix somewhere, I then use \placenotes to display a table of the actual URLs for any rea

[NTG-context] Make footnote/endnote number not superscript?

2022-03-20 Thread Bruce Horrocks via ntg-context
te. So when the author writes "See my video at " I will print "See my video at link 1". At the back of the book, in an appendix somewhere, I then use \placenotes to display a table of the actual URLs for any readers that want to type them in. I want the "link 1" bit

Re: [NTG-context] Metafun, difficulty with graphical element in the margin

2022-03-20 Thread Wolfgang Schuster via ntg-context
dypart] \setuphead[chapter][color=blue] \stopsectionblockenvironment \starttext \startfrontmatter \title{Table of content} \placecontent \stopfrontmatter \startbodymatter \chapter{Knuth} \input knuth \chapter{Zapf} \input zapf \stopbodymatter \stoptext \starttext a\texttilde b\let

Re: [NTG-context] Metafun, difficulty with graphical element in the margin

2022-03-20 Thread Willi Egger via ntg-context
pter][style=\ssc] > > % Local settings for chapter in the bodymatter block > \startsectionblockenvironment[bodypart] > \setuphead[chapter][color=blue] > \stopsectionblockenvironment > > \starttext > > \startfrontmatter > > \title{Table of content} > > \

Re: [NTG-context] Metafun, difficulty with graphical element in the margin

2022-03-20 Thread Wolfgang Schuster via ntg-context
% Global settings for all chapters \setuphead[chapter][style=\ssc] % Local settings for chapter in the bodymatter block \startsectionblockenvironment[bodypart] \setuphead[chapter][color=blue] \stopsectionblockenvironment \starttext \startfrontmatter \title{Table of content} \placecontent

Re: [NTG-context] "Flushbottom" / \setupalign[line] in LMTX

2022-03-09 Thread Denis Maier via ntg-context
la bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla} \def\Fig{\placefigure{A figure.}{\framed{\vbox to 5cm{bla}}}} \def\Tab{\placetable{A table.}{\framed{\vbox to 5cm{bla \starttext \section{Section}\Par\Par\P

[NTG-context] "Flushbottom" / \setupalign[line] in LMTX

2022-03-09 Thread Denis Maier via ntg-context
la bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla} \def\Fig{\placefigure{A figure.}{\framed{\vbox to 5cm{bla \def\Tab{\placetable{A table.}{\framed{\vbox to 5cm{bla \starttext \section{Section}\Par\Par\Par\F

Re: [NTG-context] OT world history: other measuring systems?

2022-01-26 Thread BPJ via ntg-context
the grains contain, > one has different amount of the real stuff. If one measures the volume of > the grains, then according how compressed they are, the amount of the > grains may be different… (at some point there was a law which stated that > when a unit vessel of grains was to be sold,

Re: [NTG-context] OT world history: other measuring systems?

2022-01-26 Thread Jean-Pierre Delange via ntg-context
stuff. If one measures the volume of the grains, then according how compressed they are, the amount of the grains may be different… (at some point there was a law which stated that when a unit vessel of grains was to be sold, the seller should struck the bottom of the vessel on a table three times

Re: [NTG-context] OT world history: other measuring systems?

2022-01-26 Thread Otared Kavian via ntg-context
mount of the grains may be different… (at some point there was a law which stated that when a unit vessel of grains was to be sold, the seller should struck the bottom of the vessel on a table three times and then refill again sthe vessel for it to be full). The measure of the distances on

Re: [NTG-context] Counter names

2022-01-20 Thread Hans Hagen via ntg-context
nenote paragraph realpage subpage table textnote:note userpage otherw will be defined when you create instances Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH

Re: [NTG-context] Custom Table of Contents

2022-01-20 Thread Hans Hagen via ntg-context
On 1/20/2022 3:45 PM, andrei--- via ntg-context wrote: Hi! I’m new to ConTeXt. I need to make a custom table of contents that looks like this: https://imgur.com/a/Ca3By6X <https://imgur.com/a/Ca3By6X> Each row in the table corresponds to an item that has following data to print in the

[NTG-context] Custom Table of Contents

2022-01-20 Thread andrei--- via ntg-context
Hi! I’m new to ConTeXt. I need to make a custom table of contents that looks like this: https://imgur.com/a/Ca3By6X Each row in the table corresponds to an item that has following data to print in the table of contents: page, total number of pages which the item spans, name of the item and a

Re: [NTG-context] How to create cell data that spans four rows in a table?

2022-01-09 Thread Wolfgang Schuster via ntg-context
Willi Egger via ntg-context schrieb am 08.01.2022 um 23:57: I would suggest not to use \starttable at all. To me the most suitable table environment for such a table is \bTABLE \eTABLE. It gives you all kind of control over layout, dimensions, frames on and off etc. I agree natural tables

Re: [NTG-context] How to create cell data that spans four rows in a table?

2022-01-08 Thread Aditya Mahajan via ntg-context
On Sat, 8 Jan 2022, Joel via ntg-context wrote: > I created a table that has some cells span multiple rows. This works good > with cells that span an odd-number of rows, but when I try to span 4 rows, > the text isn't quite vertically centered. How can I get the cell with the &g

<    1   2   3   4   5   6   7   8   9   10   >