[NTG-context] Re: Question about building an array of values with Lua

2023-08-24 Thread Fabrice Couvreur
s > case you need to use the Lua function math.mod as in the following, which > is a completed version of what Wolfgang sent: > > > I guess I completely missed the units digit part :) > > %% begin filling-with-lua.tex > \starttext > > \startluacode > context.startxt

[NTG-context] Re: Question about building an array of values with Lua

2023-08-23 Thread Wolfgang Schuster
is a completed version of what Wolfgang sent: I guess I completely missed the units digit part :) %% begin filling-with-lua.tex \starttext \startluacode context.startxtable{ align = "middle,lohi", bodyfont = "9pt", framecolor = "black" }     context.startxrow{ backgro

[NTG-context] Re: Question about building an array of values with Lua

2023-08-23 Thread Otared Kavian
filling-with-lua.tex \starttext \startluacode context.startxtable{ align = "middle,lohi", bodyfont = "9pt", framecolor = "black" } context.startxrow{ background = "color", backgroundcolor = "lightgray" } context.sta

[NTG-context] Re: Question about building an array of values with Lua

2023-08-23 Thread Wolfgang Schuster
Fabrice Couvreur schrieb am 23.08.2023 um 19:28: Hi, I'm trying to fill an array using lua. So far it works but then I don't know if it's possible. Where do you have problems (look into cld-mkiv.pdf for hins)? \starttext \startluacode context.startxtable{ align = "middle,lohi"

[NTG-context] Question about building an array of values with Lua

2023-08-23 Thread Fabrice Couvreur
Hi, I'm trying to fill an array using lua. So far it works but then I don't know if it's possible. Thanks Fabrice \startluacode context.startxtable({"align={middle,lohi},bodyfont=9pt,framecolor=black"}) context.startxrow({"background=color, background

[NTG-context] Re: An error which is not in .log file

2023-08-15 Thread Xavier B.
). 26 27 \startplacefigure[reference=fig:oli-aigua-diposit, location=force, title={Dipòsit omplit amb aigua i oli}] 28 \bTABLE[frame=off,align={middle,lohi},width=fit] 29 \bTR 30 \bTD 31 \starttikzpicture[scale=0.75] 32 % recipient 33 \draw (0,0) -- (0,10) -- (2,1

[NTG-context] Re: Very strange error:

2023-08-14 Thread Xavier B.
h] {\x }; } \draw [color=red!50, line width=2pt] (0,0) -- (2,0); \stoptikzpicture \par \item \starttikzpicture \draw (0,0) -- (5,0); \foreach \x in {0, 1, 2,..., 5} { \draw (\x , -0.2) -- (\x , 0.2); \draw (\x ,-0.2) node[anchor=north] {\x }; } \draw [color=green!50, line width=2pt] (0,0) -- (3,0); \sto

[NTG-context] Very strange error:

2023-08-14 Thread Xavier B.
vegeu la figura~\\in [figura:diagrama-punts-5x10]) representeu la informació donada en cada cas. \\par \\placefigure [force] [figura:diagrama-punts-5x10] {Diagrama de punts $5 \\times 10$} { \\bTABLE [frame=off,align={middle,lohi},width=fit, offset=2mm] \\bTR \\bTD \\starttikzpicture \\foreach \\x i

Re: [NTG-context] Nuclear reactions

2023-04-16 Thread Alan Braslau via ntg-context
cede text. Thus, isotopes (such as this alpha particle, for example), can be written as: \chemical{^4_2He^{2+}}. But compare the alignment of \chemical{_{92}^{238}U} with \chemical{\lohi[left]{92}{238}U}. I have not used chemical formulas for some time, but \chemical{^{235)_{92}U,+,$n$,->,^{

Re: [NTG-context] Nuclear reactions

2023-04-16 Thread Tomáš Hála via ntg-context
Hi Gavin, maybe you have solved your problem yet. \startformula {\null}^^{194}__{38}{\rm Sr} or {\hbox{Xe}}^^{140}__{54}. \stopformula Better, ConTeXt way could be the variation on \chem: \unexpanded\def\isotope#1#2#3{\dontleavehmode\begingroup\null\lohi[left]{#2}{#3}#1\endgroup} \isotope{Sr

Re: [NTG-context] Nuclear reactions

2023-04-15 Thread Gavin via ntg-context
atomic symbols with two > letters, (Be, Sr, Xe, etc.) the prescripts split the atoms! (See output > below.) > > \starttext > Text: \lohi[left]{4}{10}Be. > Reaction: > \startformula > {\rm U}^^{235}__{92} + n \rightarrow {\rm Sr}^^{94}__{38} + {\rm > Xe}^^{140}__{5

[NTG-context] Nuclear reactions

2023-04-15 Thread Gavin via ntg-context
Hi list, I’m writing nuclear reactions. When add prescripts to atomic symbols with two letters, (Be, Sr, Xe, etc.) the prescripts split the atoms! (See output below.) \starttext Text: \lohi[left]{4}{10}Be. Reaction: \startformula {\rm U}^^{235}__{92} + n \rightarrow {\rm Sr}^^{94}__{38

Re: [NTG-context] rotated headers in natural tables

2023-03-17 Thread Wolfgang Schuster via ntg-context
in a framed (and therefore also natural tables and extreme tables) with align=high, align=low and align=lohi. \bTR[align={middle,low},strut=no]     \bTH \dontleavehmode\rotate{animal} \eTH     \bTH \dontleavehmode\rotate{size} \eTH     \bTH \dontleavehmode\rotate{weight} \eTH     \bTH \dontleavehmode

Re: [NTG-context] Absolute positioning of \startcombination... \stopcombination

2023-03-17 Thread Keith McKay via ntg-context
]}{} \rotate[rotation=90]{\externalfigure[dummy]}{} {\externalfigure[dummy][]}{} \stopcombination} } \flushlayer[test3] \page %%% Wolfgang %%% \centerbox {\bTABLE[frame=off,offset=7.5mm,align={middle,lohi}] \bTR \bTD \externalfigure[dummy] \eTD \bTD \rotate[rotation=90]{\externalfigure[dummy

Re: [NTG-context] Absolute positioning of \startcombination... \stopcombination

2023-03-16 Thread Keith McKay via ntg-context
gt; > > > > > \useMPlibrary [dum] > > > > > > \starttext > > > > > > \definelayer[test3] > > > > > > \setlayer[test3][x=2cm,y=15cm] > > > > > > {\startcombination[nx=3,ny=1,distance=15mm,after=,location

Re: [NTG-context] Absolute positioning of \startcombination... \stopcombination

2023-03-16 Thread Alan Braslau via ntg-context
text > > > > \definelayer[test3] > > > > \setlayer[test3][x=2cm,y=15cm] > > > > {\startcombination[nx=3,ny=1,distance=15mm,after=,location=middle] > > > > {\externalfigure[dummy]}{} > > > > \rotate[rotation=90]{\externalfigure[dumm

Re: [NTG-context] Absolute positioning of \startcombination... \stopcombination

2023-03-16 Thread Wolfgang Schuster via ntg-context
]}{} {\externalfigure[dummy][]}{} \stopcombination} \flushlayer[test3] \stoptext \useMPlibrary [dum] \showframe [text] [text] \setuplayout [tight] \starttext \centerbox    {\bTABLE[frame=off,offset=7.5mm,align={middle,lohi}]     \bTR     \bTD     \externalfigure[dummy

Re: [NTG-context] Create the values of a sequence with Lua

2022-10-31 Thread Aditya Mahajan via ntg-context
ur help. > Fabrice You just need to adjust the order in which you are doing things... \starttext \startluacode context.startxtable({"align={middle,lohi},width=2cm,bodyfont=9pt"}) local p = {} p[0] = 0.3 for i= 0, 19 do context.startxrow()

[NTG-context] Create the values of a sequence with Lua

2022-10-31 Thread Fabrice Couvreur via ntg-context
Hi, The idea is to fill the array with the sequence defined by p(0) = 0.3 and p(n + 1) = 0.3 + 0.7*p(n) The problem is that I don't really master Lua but I will learn when I have some time! Thanks for your help. Fabrice \starttext \startluacode context.startxtable({"align={middle,lohi},widt

Re: [NTG-context] How to make a row of text have vertical centering in tabulate environment?

2022-10-25 Thread Pablo Rodriguez via ntg-context
me=on, bottomframe=on] \startxcell[nx=2] Cause \stopxcell \startxcell Effect \stopxcell \stopxrow \startxrow[bottomframe=on] \startxcell[width=.45\textwidth, align=lohi] text a \stopxcell \startxcell[width=.1\textwidth, align=lo

Re: [NTG-context] How to make a row of text have vertical centering in tabulate environment?

2022-10-25 Thread Wolfgang Schuster via ntg-context
row \startxcell[width=.45\textwidth] Cause \stopxcell \startxcell[width=.1\textwidth] % empty cell \stopxcell \startxcell[width=.45\textwidth] Effect \stopxcell \stopxrow \startxrow[align={flushleft,lohi}] \startxc

Re: [NTG-context] startTEXpage on A4

2022-10-10 Thread Willi Egger via ntg-context
; \stopuniqueMPgraphic \framedtext [height=fit, align={lohi,center}, background=Cutpointstight, foregroundcolor=black, frame=off, offset=3pt] {{\tfa HALITGARII EPISCOPI \blank[small] De vitiis et virtutibus \blank[small

[NTG-context] \startcolumnset ... \stopcolumnset is working.

2022-09-14 Thread Jeong Dal via ntg-context
=headerBox, align=lohi]%topframe= \setupbackgrounds[footer][text][frame=off, background=screen] \define[3]\headTitle{\setupheadertexts[][\bf #1 \hfill #2 \hfill #3 \hfill ID: \hskip 2cm Name: \hskip 2cm]} \setupmathematics[autopunctuation=no, integral=nolimits] \setupbodyfont[rm,10pt

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

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

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

2022-06-30 Thread Pablo Rodriguez via ntg-context
wframe \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} {\star

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-11 Thread śrīrāma via ntg-context
e 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\startItemize{

Re: [NTG-context] Makeup on same page as main content

2022-03-05 Thread śrīrāma via ntg-context
ign={flushright,lohi}] \bTR \bTD \externalfigure[cow][height=2cm] \eTD \bTD \doiftextelse{\getvariable{assignments}{date}}{\getvariable{assignments}{date}}{\date} \eTD \eTR \bTR \bTD Course: \getvariable{assignments}{code} \eTD \bTD \getvariable{assignments}{assignment} \eTD \

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

2022-01-09 Thread Wolfgang Schuster via ntg-context
of each cell and row. The example table of the OP can be written like below. \starttext \startsetups [tableframe] \setupTABLE [c] [1][leftframe=off,width=40mm] \setupTABLE [c] [2][rightframe=off, width=60mm] \setupTABLE [c] [each] [align={lohi,center}] \stopsetups \startTABLE

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

2022-01-08 Thread Joel via ntg-context
is \bTABLE \eTABLE. It gives you all kind of control over layout, dimensions, frames on and off etc. \setupTABLE[c][1][leftframe=off,width=40mm] \setupTABLE[c][2][rightframe=off, width=60mm] \setupTABLE[c][each][align={lohi,center}] \bTABLE     \bTR         \bTD {\bf Eons}\eTD \bTD {\bf Eras

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

2022-01-08 Thread Willi Egger via ntg-context
] \setupTABLE[c][each][align={lohi,center}] \bTABLE \bTR \bTD {\bf Eons}\eTD \bTD {\bf Eras} \eTD \eTR \bTR \bTD Hadeon Eon \eTD \bTD \eTD \eTR \bTR \bTD[ny=4] Archanon Eon \eTD \bTD Eoarchean Era \eTD

Re: [NTG-context] Critical Editions?

2022-01-04 Thread Pablo Rodriguez via ntg-context
nting={yes, small, even}, before=\startnarrower, after=\stopnarrower] \startslokaed mano buddhir ahaṃ prāṇās tanmātrendriyajīvanam yaṃ dṛṣṭvā\linenote{dṛṣṭvā ] dṛṣṭva G\lohi{pc}{1}} vinivartante tam \linenote{tam ] tat} upāsyam upāsmahe \stopslokaed \starts

Re: [NTG-context] aligning Malayalam horizontally across column

2022-01-01 Thread Ajith R via ntg-context
On Fri, 31 Dec 2021 20:49:30 +0530 kauśika wrote: > If the height varies due to the formation of conjuncts, I > think you are better off using "(natural) tables" : > https://wiki.contextgarden.net/TABLE > In particular, setting align=lohi for the two columns concerned >

Re: [NTG-context] aligning Malayalam horizontally across column

2021-12-31 Thread kauśika via ntg-context
ter off using "(natural) tables" : https://wiki.contextgarden.net/TABLE In particular, setting align=lohi for the two columns concerned should work. Again, your example is not clear enough for me to suggest much. kauśika ___

Re: [NTG-context] Critical Editions?

2021-12-21 Thread Denis Maier via ntg-context
opn > arrower] > > % SANSKRIT EDITION plain (referring to verses) > \definelines[slokaedplain][][indenting={yes, small, even}, >before=\startnarrower,after=\stopnarrower] > > With this the code of the edition can be pleasently minimalistic: >

[NTG-context] Critical Editions?

2021-12-21 Thread hanneder--- via ntg-context
c: \startslokaed mano buddhir ahaṃ prāṇās tanmātrendriyajīvanam yaṃ dṛṣṭvā\linenote{dṛṣṭvā ] dṛṣṭva G\lohi{pc}{1}} vinivartante tam \linenote{tam ] tat} upāsyam upāsmahe} \stopslokaed \startslokaedplain mano buddhir ahaṃ prāṇās tanmātrendriyajīvanam yaṃ dṛṣṭvā\variant{2c dṛṣṭvā ] dṛṣṭva

[NTG-context] \startcolumnset ... \stopcolumnset fatal error: return code 11

2021-12-16 Thread Jeong Dal via ntg-context
set [exam] [n=2, background=verticalrule] \setuplayout[width=19cm, height=26cm, header=1cm, footer=.5cm,backspace=1cm] \setupheader[before=\vfil, after=\vfil] \setupbackgrounds[header][text][frame=off, background=headerBox, align=lohi]%topframe= \setupbackgrounds[footer][text][frame=

Re: [NTG-context] About "clearpage"

2021-12-16 Thread Wolfgang Schuster via ntg-context
=\measure{MarginWidth}, height=max, offset=0pt, boffset=\measure{MarginRaise}, align={inner,lohi}] \startsetups[text a] \startframed[MarginBlock] \getmarking[chapter] \stopframed \stopsetups \startsetups[text b] \startframed[MarginBlock] \getmarking[section

[NTG-context] using the newcolumnsets module

2021-12-09 Thread Jeong Dal via ntg-context
set [exam] [n=2, background=verticalrule] \setuplayout[width=19cm, height=26cm, header=1cm, footer=.5cm,backspace=1cm] \setupheader[before=\vfil, after=\vfil] \setupbackgrounds[header][text][frame=off, background=headerBox, align=lohi]%topframe= \setupbackgrounds[footer][text][frame=

Re: [NTG-context] weekend upload

2021-07-12 Thread Jeong Dal
ons \defineframed [boxframed] [ width=6em, height=2\lineheight, align={middle,lohi}, background=color, backgroundcolor=blue, foregroundcolor=white, forefroundstyle=bold, ] \startuseMPgraphic[offset=2mm]{boxes} boxit.A("\boxframed{Box A}"); boxit.B(&qu

Re: [NTG-context] Fuzzy lines

2021-05-13 Thread Thomas A. Schmitz
=12cm,frame=on,background=Fuzzy,align={middle,lohi}] {Test} \stopTEXpage test.pdf Description: Adobe PDF document ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg

Re: [NTG-context] Lua code and table

2021-02-19 Thread Hans Hagen
- \setupbodyfont[pagella] \starttext \definextable [MyTable] [align={middle,lohi}, width=0.8cm, offset=0.8ex, bodyfont=9pt, framecolor=cyan] \startluacode function document.MyTable(specification) local

Re: [NTG-context] Lua code and table

2021-02-19 Thread Fabrice Couvreur
on.action >>> 18 local conversion = specification.conversion or >>> "Characters" >>> 19 >>> 20 local n = #pattern >>&g

Re: [NTG-context] Lua code and table

2021-02-18 Thread Fabrice Couvreur
t;> 14 function document.MyTable(specification) >> 15 >> 16 local pattern= specification.pattern >> 17 local action = specification.action >> 18 local conversion = specification.conversion or >> "Charac

Re: [NTG-context] Lua code and table

2021-02-18 Thread Jano Kula
.action > 18 local conversion = specification.conversion or "Characters" > 19 > 20 local n = #pattern > 21 > 22 -- context.startxtable { align = "middle,lohi", width = > "0.8cm", > 23 >> offset = "0.8ex",

Re: [NTG-context] Lua code and table

2021-02-18 Thread Fabrice Couvreur
pattern 21 22 -- context.startxtable { align = "middle,lohi", width = "0.8cm", 23 >> offset = "0.8ex", bodyfont = "9pt", framecolor = "cyan" } 24 context.startxtable { "MyTable" } 25 cont

Re: [NTG-context] Lua code and table

2021-02-18 Thread Hans Hagen
{ align = "middle,lohi", width = "0.8cm", offset = "0.8ex", bodyfont = "9pt", framecolor = "cyan" } is ok, but anm abstraction is even better. Now, who will wikify it ... %%% code %%% \setupbodyfont[pagella] \starttex

Re: [NTG-context] Lua code and table

2021-02-17 Thread Bruce Horrocks
= "middle", style = "type", background = "DiagonalRule", } local letters_1 = { "A", "B", "C", "D", "E", "F", "G", "H" } local pattern_1 = { ".XXX..XX", "X...

Re: [NTG-context] Lua code and table

2021-02-17 Thread Tomas Hala
", "D", "E", "F", "G", "H" } #  context.startxtable({"align={middle,lohi}, #width=0.8cm,offset=0.8ex,bodyfont=9pt,framecolor=cyan"}) #  context.startxrow() #  context.startxcell({"frame=off"}) #  conte

[NTG-context] Lua code and table

2021-02-17 Thread Fabrice Couvreur
\NC \bf #1 \NC\NC\NR \stoptabulate } \starttext \startluacode local background_one = { align = "middle", style = "type", background = "DiagonalRule", } local letters_1 = { "A", "B", "C", "D", "E

[NTG-context] 3 questions about xtables after reading manuals

2021-01-18 Thread Andres Conrado Montoya
arrowed so much as to break a line of 4 or 5 words. MWE: % \startplacetable[location=none] %\startxtable[align={middle,lohi},option=tight] % This makes the first column too narrow. Lines are not that long \startxtable[align={middle,lohi}] \startxtablehead[head] \startxrow \startx

[NTG-context] Hatch a cell : meta:hash:left

2021-01-16 Thread Fabrice Couvreur
Hi, I seem to have seen a method for hatching the cell of a table, but maybe it's my imagination. The following code does not work. Thanks for your help. Fabrice ## hatching.tex # \setupcolors[state=start] \usemodule[xwi] \starttext \startxtable [align={lohi

[NTG-context] specify column-width, with option=stretch

2020-11-04 Thread Peter Münster
Hi, I would like to specify the column-width of the first column to 5mm: --8<---cut here---start->8--- \starttext \setupTABLE[textwidth=99mm, option=stretch] \setupTABLE[c][each][align={lohi, middle}] \setupTABLE[c][1][height=5mm, style=\tfxx] \framed

Re: [NTG-context] \dorecurse{}{} problem

2020-09-21 Thread Otared Kavian
Hi Dalyoung, I don't know why \recurselevel returns 0 inside a tabulate environment, but the following works fine: \starttext \startxtable[frame=off,bottomframe=on,width=1cm,align={middle,lohi}] \startxrow\startxcell \stopxcell\stopxrow % just to have a line on the top of the first row

[NTG-context] Color specific cells in a table

2020-08-23 Thread Fabrice Couvreur
le = "type", background = "color", backgroundcolor = "thistle2", foregroundcolor = "white", } local background_two = { align = "middle", style = "type", background = "color", backgroundcolor = "peac

Re: [NTG-context] memoir-style chapter heading

2020-08-18 Thread jbf
different ways. Thank you. How important is the 'lohi' addition you made to \framed? I removed it to see what would happen and did not notice any appreciable difference in the output. Julian On 18/8/20 11:19 pm, Otared Kavian wrote: Hi Julian, Actually one can tweak more or less the height

Re: [NTG-context] weird issue with xtable

2020-08-13 Thread Pablo Rodriguez
eing typeset in a horizontal context, > based on the error message (at least, if we assume that the error > message was triggered by a table). I think it is easy to trigger the error: \setupxtable[split=yes] \starttext \ifvmode yes\else no\fi \startxtable[align={middle,

[NTG-context] Bug with lmtx and color in table

2020-07-22 Thread Fabrice Couvreur
Hello, With the latest version of lmtx, the background color of cells does not work. Thank you. Fabrice \starttext \startxtable [align={middle,lohi}, offset=0.8ex,background=color, backgroundcolor=red,frame=off] \startxrow \startxcell \m{\displaystyle

Re: [NTG-context] Code lua in a table

2020-07-21 Thread Fabrice Couvreur
math.round((n*Binom(n-1,k-1))/k) end end context.startxtable({"align={middle,lohi}, width=1cm,offset=0.8ex,bodyfont=9pt,framecolor=cyan"}) context.startxrow() context.startxcell({"background=DiagonalRule,background=color,backgroundcolor=thistle2"}) conte

Re: [NTG-context] Code lua in a table

2020-07-18 Thread Fabrice Couvreur
Small correction : \starttext \startluacode function Binom(n,k) if k > n then return 0 elseif (n == 0 or k == 0) then return 1 else return (n*Binom(n-1,k-1))/k end end context.startxtable({"align={mid

Re: [NTG-context] Code lua in a table

2020-07-18 Thread Fabrice Couvreur
function Binom(n,k) > > if k > n then > > return 0 > > elseif (n == 0 or k == 0) then > > return 1 > > else > > return (n*Binom(n-1,k-1))/k > > end > > > >

Re: [NTG-context] Code lua in a table

2020-07-18 Thread Wolfgang Schuster
= 0) then              return 1        else              return (n*Binom(n-1,k-1))/k        end     end     context.startxtable({"align={middle,lohi}, width=1.2cm,offset=0.8ex,bodyfont=9pt"})     for i = 1, 10 do           context.startxrow({"background=color,ba

Re: [NTG-context] Code lua in a table

2020-07-18 Thread Fabrice Couvreur
urn (n*Binom(n-1,k-1))/k end end context.startxtable({"align={middle,lohi}, width=1.2cm,offset=0.8ex,bodyfont=9pt"}) for i = 1, 10 do context.startxrow({"background=color,backgroundcolor=cyan"}) for j = 1, i do

Re: [NTG-context] Code lua in a table

2020-07-18 Thread Wolfgang Schuster
; n then              return 0        elseif (n == 0 or k == 0) then              return 1        else  return (n*Binom(n-1,k-1))/k      end  context(Binom(n,k)) Are you sure you want to use context(...) here?     end     context.startxtable({"align={middle,lohi}, width=1.2cm,offset=0.8ex,body

[NTG-context] Code lua in a table

2020-07-18 Thread Fabrice Couvreur
= 0) then return 1 else return (n*Binom(n-1,k-1))/k end context(Binom(n,k)) end context.startxtable({"align={middle,lohi}, width=1.2cm,offset=0.8ex,bodyfont=9pt"}) context.startxrow({"background=color,backgroundcolor=green"

Re: [NTG-context] Incorrect placement of a table with LMTX

2020-07-14 Thread Fabrice Couvreur
old, >width=broad] > > \defineenumeration >[definition] >[text=Définition, > number=yes, > headcommand=\groupedcommand{}{.}, > style=italic] > > \starttext > > \startdefinition > \blank > \startxtable[align={lohi,middle},w

Re: [NTG-context] Incorrect placement of a table with LMTX

2020-07-14 Thread Otared Kavian
yes, > headcommand=\groupedcommand{}{.}, > style=italic] > > \starttext > > \startdefinition > \blank > \startxtable[align={lohi,middle},width=2cm,offset=0.8ex] > \startxrow > \startxcell > 1 > \stopxcell > \startxcell > 2

[NTG-context] Incorrect placement of a table with LMTX

2020-07-14 Thread Fabrice Couvreur
={lohi,middle},width=2cm,offset=0.8ex] \startxrow \startxcell 1 \stopxcell \startxcell 2 \stopxcell \stopxrow \startxrow \startxcell 3 \stopxcell \startxcell 4 \stopxcell \stopxrow \stopxtable

Re: [NTG-context] offset for background overlay

2020-04-11 Thread Wolfgang Schuster
[background=triangle], but it doesn't work. How about nested tables: \starttext \bTABLE[width=1cm,height=1cm] \bTR \bTD A \eTD \bTD B \eTD \bTD C \eTD \bTD E \eTD \eTR \bTR \bTD E \eTD \bTD[nc=2,nr=2,strut=no,align={middle,lohi}] {\bTABLE

[NTG-context] Background color of a framedtext that covers floats

2020-04-08 Thread Fabrice Couvreur
\startframedtext [frame=off,width=\textwidth, background=color,backgroundcolor=fondpaille] \input tufte \startlinecorrection[blank] \startmidaligned \startxtable [align={lohi,middle}, option={stretch},framecolor=cyan, offset=0.8ex,background=color,backgroundcolor

Re: [NTG-context] Bug (Lua) ?

2020-03-19 Thread Hans van der Meer
local letters_1 = { "A", "B", "C", "D", "E", "F", "G", "H", "I", "J" } >>> local letters_2 = { "1", "Année", "1998", "1999", "2000", "2001&

Re: [NTG-context] Bug (Lua) ?

2020-03-19 Thread Aditya Mahajan
"G", "H", "I", "J" } local letters_2 = { "1", "Année", "1998", "1999", "2000", "2001", "2002", "2003", "2004", "2005","2006" } context.startxtab

Re: [NTG-context] Bug (Lua) ?

2020-03-19 Thread Fabrice Couvreur
gt; local letters_1 = { "A", "B", "C", "D", "E", "F", "G", "H", "I", "J" } > > local letters_2 = { "1", "Année", "1998", "1999", "2000", "

Re: [NTG-context] Bug (Lua) ?

2020-03-19 Thread mf
uot;I", "J" } local letters_2 = { "1", "Année", "1998", "1999", "2000", "2001", "2002", "2003", "2004", "2005","2006" } context.startxtable({"align={middle,lohi}, width=1.2c

Re: [NTG-context] Bug (Lua) ?

2020-03-19 Thread Hans Hagen
On 3/19/2020 11:20 AM, Fabrice Couvreur wrote: Hi, this file did not pose any problems but today yes. really? lua error       > lua error on line 34 in file /home/viserion/Table.tex: [ctxlua]:5: unfinished string near '"align={middle,lohi},' there is a "

[NTG-context] Bug (Lua) ?

2020-03-19 Thread Fabrice Couvreur
;1", "Année", "1998", "1999", "2000", "2001", "2002", "2003", "2004", "2005","2006" } context.startxtable({"align={middle,lohi}, width=1.2cm,offset=0.8ex,bodyfont=9pt"}) context

[NTG-context] Hatch color in a table cell

2020-03-12 Thread Fabrice Couvreur
] [\metahashoverlay{ -45}] \defineoverlay[meta:hash:horizontal][\metahashoverlay{+180}] \defineoverlay[meta:hash:vertical] [\metahashoverlay{ -90}] \starttext \startmidaligned \startxtable [align={lohi,middle}, width=1.5cm, background=color

[NTG-context] New to metapost, could use some help with first steps

2020-02-02 Thread Gerben Wierda
Hans was so kind to help me with a setup for some generated output. I am trying to understand every line of his example so I can expand on his exmaple to make it fully functional. In his example there is: context('draw textext("\\framed[frame=off,offset=5bp,align={middle,lohi,verytol

Re: [NTG-context] extreme table and right frames with vertically spanned cells

2020-01-05 Thread Pablo Rodriguez
\startxtable \startxrow \startxcell A \stopxcell \startxcell[ny=2, background=color, backgroundcolor=blue, rightframe=off, align=lohi, foregroundcolor=yellow] B \stopxcell \stopxrow \startxrow \

Re: [NTG-context] Tent style cards

2019-12-22 Thread Hans Hagen
solution: \starttexdefinition TableCard #1     \setupTABLE [start] [frame=off,width=4in,height=3in,align={middle,lohi},style=\tfd]     \setupTABLE [row]   [1] [orientation=180]    %\setupTABLE [start] [leftframe=on,rightframe=on]    %\setupTABLE [row]   [1] [topframe=on]    %\setupTABLE

Re: [NTG-context] Tent style cards

2019-12-22 Thread Wolfgang Schuster
    \setupTABLE [start] [frame=off,width=4in,height=3in,align={middle,lohi},style=\tfd]     \setupTABLE [row]   [1] [orientation=180]    %\setupTABLE [start] [leftframe=on,rightframe=on]    %\setupTABLE [row]   [1] [topframe=on]    %\setupTABLE [row]   [2] [bottomframe=on]     \bTABLE     \bTR

Re: [NTG-context] Tent style cards

2019-12-21 Thread Pablo Rodriguez
bottomspace=0in, footer=0in, backspace=0.0in, %% location=middle, marking=on, ] \startbuffer[tblcard] \startframedtext [frame=off, width=\textwidth, height=\textheight, align={lohi, middle}] \tfd A Name

Re: [NTG-context] Number format with lua

2019-11-09 Thread Henri Menke
quot;F", "G", "H", "I", "J" } > local letters_2 = { "1", "Année", "1998", "1999", "2000", "2001", "2002", > "2003", "2004", "2005","2006" }

[NTG-context] Number format with lua

2019-11-09 Thread Fabrice Couvreur
cal letters_2 = { "1", "Année", "1998", "1999", "2000", "2001", "2002", "2003", "2004", "2005","2006" } context.startxtable({"align={middle,lohi}, width=1.2cm,offset=0.8ex,bodyfo

[NTG-context] Bad cooperation between \unit and TABLE

2019-11-03 Thread Tomas Hala
doing something wrong? Best wishes, Tomáš \starttext \setupTABLE[c][2][alignmentcharacter={text->,}, aligncharacter=yes, align={lohi,middle}] \bTABLE \bTR\bTD Line \#1 \eTD \bTD39 \eTD \eTR \bTR\bTD Line \#2 \eTD \bTD 42,185 \eTD\eTR %\bTR\bTD Line \#2a \eTD \bTD 55 550

Re: [NTG-context] issue splitting tables and horizontal mode

2019-10-20 Thread Wolfgang Schuster
Pablo Rodriguez schrieb am 18.10.2019 um 16:23: Dear list, I have another issue related to extreme tables. \setupxtable[split=yes] \starttext \startmakeup[standard] \dontleavehmode \startxtable[align={middle,lohi},columndistance=0em] \startxrow

[NTG-context] issue splitting tables and horizontal mode

2019-10-18 Thread Pablo Rodriguez
Dear list, I have another issue related to extreme tables. \setupxtable[split=yes] \starttext \startmakeup[standard] \dontleavehmode \startxtable[align={middle,lohi},columndistance=0em] \startxrow \startxcell

[NTG-context] Size of the font (Metapost + xtable)

2019-09-23 Thread Fabrice Couvreur
.7cm*dir 0) ; \stopMPcode \stopbuffer \starttext \startlinecorrection[blank] \startmidaligned \startxtable[align={middle,lohi},width=2.25cm] \startxrow \startxcell [background=color,backgroundcolor=pal

[NTG-context] Border in xtable

2019-09-01 Thread Fabrice Couvreur
Hello, In the table below, why the border of the first line is not drawn ? Thank you Fabrice \definecolor[ColorA][0.8(white)] \definecolor[ColorB][0.9(white)] \starttext \startxtable [align={lohi,middle}, width=2cm,bodyfont=11pt] \startxrow[background=color,backgroundcolor=ColorA

[NTG-context] CrossWords Puzzles with context

2019-06-23 Thread Jorge Manuel
e (p.e. crosswords.txt) 3) In context use this script (Revised By Wolfgang Schuster) \startluacode context.startmidaligned() context.bTABLE( { rulethickness = ".25pt", width = ".8cm", height = ".8cm", align = "{lohi, middle}" } )

Re: [NTG-context] aligning rotated text in a natural table

2019-06-12 Thread Martin Althoff
][2,3][width=30mm] \setupTABLE[r][1][height= 50mm,align={lohi}] \bTABLE \bTR \bTD \dontleavehmode{\rotate{1. a bit more text again, entering the age of long sentences}} \eTD \bTD \hbox to \dimexpr(.5\lineheight+.5\hsize){\hss{\rotate{2. a bit more text again, and see if linebreaking works}}} \eTD \bTD

Re: [NTG-context] aligning rotated text in a natural table

2019-06-12 Thread Wolfgang Schuster
-context | current version: 2019.05.18 10:42 PDF of my output is attached. MWE: \starttext \setupTABLE[c][1][width=7mm] \setupTABLE[c][2][width=30mm] \setupTABLE[r][each][align={lohi,middle},height= 50mm] \bTABLE \bTR \bTD \rotate[270]{\switchtobodyfont[8pt]a bit more text} \eTD \bTD

Re: [NTG-context] aligning rotated text in a natural table

2019-06-12 Thread Martin Althoff
Hi Willi, thanks for the quick reply. I have the [align=lohi] as part of the setupTABLE statement. Now I tried adding it into the particular cell -- again no effect even if I add "middle". \bTD[align=lohi] \rotate[270]{\switchtobodyfont[8pt]a bit more text} \eTD I suspect the rotate

Re: [NTG-context] aligning rotated text in a natural table

2019-06-12 Thread Willi Egger
Martin, did you try to add [align=lohi]? Willi > On 12 Jun 2019, at 13:11, Martin Althoff wrote: > > I am trying to align rotated text horizontally and vertically in a table > cell. Vertically > is no problem, horizontally it fails. Non-rotated text is, of course, fine. >

[NTG-context] aligning rotated text in a natural table

2019-06-12 Thread Martin Althoff
of my output is attached. MWE: \starttext \setupTABLE[c][1][width=7mm] \setupTABLE[c][2][width=30mm] \setupTABLE[r][each][align={lohi,middle},height= 50mm] \bTABLE \bTR \bTD \rotate[270]{\switchtobodyfont[8pt]a bit more text} \eTD \bTD blah \eTD \eTR \eTABLE \stoptext rotate-test.pdf

[NTG-context] Alignment

2019-05-13 Thread Fabrice Couvreur
Hi, Not having too many ideas, I did this: is there not a more elegant way ? Thank you. Fabrice \definemathmatrix [pmatrix][matrix:parentheses][simplecommand=MATRIX] \starttext \startmidaligned \startxtable[align={middle,lohi},frame=off,offset=0.8ex] \startxrow

Re: [NTG-context] Normal tables error: Dimension too large. Context version: 2019.04.29 08:52

2019-05-10 Thread Hans Hagen
nc=39]     .    \eTH    ...       \bTR[strut=no]        \bTD[align={flushleft,lohi}, nr=1]   {     \bTABLE[option={stretch},offset=0pt, frame=off] ...      \eTABLE % fin de tabla interna en columna matriz   }    \eTD  

[NTG-context] Normal tables error: Dimension too large. Context version: 2019.04.29 08:52

2019-05-10 Thread Felipe de Jesús Molina Bravo
=color,backgroundcolor=white, width=broad] \bTABLE[split=repeat,option={stretch}, align={flushright}, frame=off] \bTABLEhead[align=flushright] \bTR \bTH [offset=none, align={flushleft}, nc=39] . \eTH ... \bTR[strut=no] \bTD[align={flushleft,lohi}

[NTG-context] Strange behavior with offset key in a xtable

2019-04-22 Thread Fabrice Couvreur
Hi, Why is the height of the cells of the third line different ? Thank you. Fabrice \starttext \startxtable[align={lohi,middle},offset=0.8ex,width=3cm] \startxrow \startxcell \m{x} \stopxcell \startxcell[nx=3] \math{-\infty} \hfill

Re: [NTG-context] Unwanted uppercase letter in \high{} within bibliography

2019-04-12 Thread Huseyin Özoguz
aphie"] \starttext \nocite[Manuel5] \placelistofpublications \stoptext As you can see, we get Ème in the output instead of ème. Is this a bug, or did I miss something? Regards, Damien Thiriet Hi, same issue here with \low and \lohi – I don't know if it is a bug or for purpose. But there i

  1   2   3   4   5   6   >