> by default (since a veee...eeery long time).
>
> 3. You can replace \bTD ... \eTD with \bTH ... \eTH for table headers to
> get bold text.
>
> begin example
> \startsetups[table:a]
>\setupTABLE [each] [frame=off,width=1cm,height=1cm,align={middle,lohi}]
>\s
need \setupcolors[state=start] because colors are enabled
by default (since a veee...eeery long time).
3. You can replace \bTD ... \eTD with \bTH ... \eTH for table headers to
get bold text.
begin example
\startsetups[table:a]
\setupTABLE [each] [frame=off,width=1cm,height=1cm,align={middle
ableH(i,year)
context.page()
end
end
\stopluacode
% Setup of the month table
\startsetups table:month
\setupTABLE[c]
[each]
[width=\dimexpr\textwidth/7,
frame=on,
style=\tfa]
\setupTABLE[r][each][height=1.8\lineheight,align={center,lohi
ection.
> >
> >
> > \defineframed [marginframe]
> > [width=max, height=max,
> > style=\ss,
> > corner=08, location=lohi,
> > frame=off]
> > \setuptext [style={\ss}]
>
dth=max, height=max, style=\ss,
corner=08, location=lohi,frame=off]
\setuptext [style={\ss}]
\setuptexttexts [margin] []
[\marginframe{\hbox orientation 1 {DRAFT}}]
[\marginframe{\hbox orientation 1 {DRAFT}}]
There
you can try 'setuptext' and '\setuptexttexts' to put "draft" in margin.and use
'orientation' to change direction.
\defineframed[marginframe]
[width=max, height=max, style=\ss,
co
In this
> 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
> conte
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
filling-with-lua.tex
\starttext
\startluacode
context.startxtable{ align = "middle,lohi", bodyfont = "9pt", framecolor =
"black" }
context.startxrow{ background = "color", backgroundcolor = "lightgray" }
context.startx
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 = "mi
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=co
u figura~\in[fig:oli-aigua-diposit]).
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
tex: The file ended when
scanning an argument.
200 persones en total \par \startitemize [a, packed] \item 2 de 5 persones
estan a $A$ \item a cada 4 persones de $A$ li corresponen 3 persones de $B$
\item 20\% són de $C$ \item 2/8 són de $D$ \stopitemize \par \head 420
persones en total \par \startite
10$ següent (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
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$,->,^{
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
ts 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} + {\rm
> Xe}^
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
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
dummy]}{}
\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[
gt; > >
> > > \useMPlibrary [dum]
> > >
> > > \starttext
> > >
> > > \definelayer[test3]
> > >
> > > \setlayer[test3][x=2cm,y=15cm]
> > >
> > > {\startcombination[nx=3,ny=1,distance=15mm,after=,location
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
]}{}
{\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
or your 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()
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}
rame=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, ali
tartxrow
\startxcell[width=.45\textwidth]
Cause
\stopxcell
\startxcell[width=.1\textwidth]
% empty cell
\stopxcell
\startxcell[width=.45\textwidth]
Effect
\stopxcell
\stopxrow
\startxrow[align={flushleft,lohi}]
\st
;
\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
round=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
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
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}
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}]
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
pTABLE[c][2][align={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}{assig
rt 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
\start
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
]
\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
kaedplain][][indenting={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
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
>
ink you are better 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
__
mbering\stopn
> 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 minimalis
listic:
\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
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=
=\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
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=
initions
\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.
20cm,width=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!
mail
-
\setupbodyfont[pagella]
\starttext
\definextable
[MyTable]
[align={middle,lohi},
width=0.8cm,
offset=0.8ex,
bodyfont=9pt,
framecolor=cyan]
\startluacode
function document.MyTable(specification)
local
on = specification.action
>>> 18 local conversion = specification.conversion or
>>> "Characters"
>>> 19
>>> 20 local n = #pattern
>>> 21
>>> 22 -- context.startxtable { align = "middle,lohi
\startluacode
>> 14 function document.MyTable(specification)
>> 15
>> 16 local pattern= specification.pattern
>> 17 local action = specification.action
>> 18 local conversion = specification.conversion or
&
= specification.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
local n = #pattern
21
22 -- context.startxtable { align = "middle,lohi", width =
"0.8cm",
23 >> offset = "0.8ex", bodyfont = "9pt", framecolor = "cyan" }
24 context.startxtable { "MyTable" }
25
tartxtable { 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]
= "middle",
style = "type",
background = "DiagonalRule",
}
local letters_1 = { "A", "B", "C", "D", "E", "F", "G", "H" }
local pattern_1 = {
".XXX..XX",
"X...
", "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
\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
] sometimes columns are narrowed 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
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=
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
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 firs
style = "type",
background = "color",
backgroundcolor = "thistle2",
foregroundcolor = "white",
}
local background_two = {
align = "middle",
style = "type",
background = "color",
backgroundcolor = "
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
ends up being 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[alig
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
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
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
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
> >
> >
= 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
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
; 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
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&
old,
>width=broad]
>
> \defineenumeration
>[definition]
>[text=Définition,
> number=yes,
> headcommand=\groupedcommand{}{.},
> style=italic]
>
> \starttext
>
> \startdefinition
> \blank
> \startxtable[align={lohi,middle},w
yes,
> headcommand=\groupedcommand{}{.},
> style=italic]
>
> \starttext
>
> \startdefinition
> \blank
> \startxtable[align={lohi,middle},width=2cm,offset=0.8ex]
> \startxrow
> \startxcell
> 1
> \stopxcell
> \startxcell
> 2
={lohi,middle},width=2cm,offset=0.8ex]
\startxrow
\startxcell
1
\stopxcell
\startxcell
2
\stopxcell
\stopxrow
\startxrow
\startxcell
3
\stopxcell
\startxcell
4
\stopxcell
\stopxrow
\stopxtable
[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}] {\b
\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
local letters_1 = { "A", "B", "C", "D", "E", "F", "G", "H", "I", "J" }
>>> local letters_2 = { "1", "Année", "1998", "1999", "2000", "2001&
"G", "H", "I", "J" }
local letters_2 = { "1", "Année", "1998", "1999", "2000", "2001", "2002",
"2003", "2004", "2005","2006" }
context.startxtable({
gt; local letters_1 = { "A", "B", "C", "D", "E", "F", "G", "H", "I", "J" }
> > local letters_2 = { "1", "Année", "1998", "1999", "2000", "
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
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 i
;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
]
[\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
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,ve
\startxtable
\startxrow
\startxcell A
\stopxcell
\startxcell[ny=2, background=color,
backgroundcolor=blue, rightframe=off,
align=lohi, foregroundcolor=yellow] B
\stopxcell
\stopxrow
\startxrow
\
.
Simple 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]
%\
bleCard #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 [row] [2] [bottomframe=on]
\bTABLE
=0in,
bottomspace=0in,
footer=0in,
backspace=0.0in,
%%
location=middle,
marking=on,
]
\startbuffer[tblcard]
\startframedtext
[frame=off, width=\textwidth, height=\textheight,
align={lohi, middle}]
\t
quot;F", "G", "H", "I", "J" }
> local letters_2 = { "1", "Année", "1998", "1999", "2000", "2001", "2002",
> "2003", "2004", "2005","2006" }
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
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
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
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
.7cm*dir 0) ;
\stopMPcode
\stopbuffer
\starttext
\startlinecorrection[blank]
\startmidaligned
\startxtable[align={middle,lohi},width=2.25cm]
\startxrow
\startxcell
[background=color,backgroundcolor=pal
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
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}" } )
for line in io.
BLE[c][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
-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
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
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.
>
1 - 100 of 548 matches
Mail list logo