Hi everyone,
Excuse my poor English. I recently updated my online table generator (http://latex-tables.com) to support ConTeXt. It also supports many languages, like LaTeX, Plain TeX, Markdown, HTML and more. It uses the eXtreme table format and supports many features including :
- Borders, border width and border color
- Merged cells
- Background color
- Alignment (flushleft, center, flushright)
- Splitted tables
- Rotated tables
- Caption
- More...
However, I have many issues that I have trouble to fix.
1/ I have many troubles with borders, because I can't set the color and the width of each border. Instead, I use "fake rows" and "fake cells" when it is necessary. However, I can't figure out how to set the height of a row to 0.4pt. It's always bigger. So, instead I use "location=hanging" on this row but, because of this, borders are hidden behind the next row's background. What can I do about this ?
MWE without background color :
\definecolor[Siren][r=0.502,g=0,b=0.251]
\definecolor[Rose][r=1,g=0,b=0.502]
\definecolor[FlushOrange][r=1,g=0.502,b=0]
\definecolor[ElectricViolet][r=0.502,g=0,b=1]
\definecolor[Chartreuse][r=0.502,g=1,b=0]
\definecolor[BlushPink][r=1,g=0.502,b=1]
\placetable[none]{}{
\startxtable[align=lohi,framecolor=Siren,frame=off,leftframe=on,rightframe=on]
\startxrow[offset=overlay,location=hanging,topframe=on]
\startxcell\stopxcell
\startxcell[framecolor=Rose]\stopxcell
\stopxrow
\startxrow
\startxcell[rightframe=off,framecolor=cyan] A\stopxcell
\startxcell[rightframe=off,framecolor=FlushOrange] B\stopxcell
\startxcell[width=0pt,framecolor=ElectricViolet]\stopxcell
\stopxrow
\startxrow[offset=overlay,location=hanging,topframe=on,framecolor=Chartreuse]
\startxcell\stopxcell
\startxcell[framecolor=BlushPink]\stopxcell
\stopxrow
\stopxtable
}
MWE with background color
\definecolor[Siren][r=0.502,g=0,b=0.251]
\definecolor[Rose][r=1,g=0,b=0.502]
\definecolor[FlushOrange][r=1,g=0.502,b=0]
\definecolor[ElectricViolet][r=0.502,g=0,b=1]
\definecolor[Chartreuse][r=0.502,g=1,b=0]
\definecolor[BlushPink][r=1,g=0.502,b=1]
\definecolor[Dolly][r=1,g=1,b=0.502]
\placetable[none]{}{
\startxtable[align=lohi,background=color,backgroundcolor=Dolly,framecolor=Siren,frame=off,leftframe=on,rightframe=on]
\startxrow[offset=overlay,location=hanging,topframe=on,background=none]
\startxcell\stopxcell
\startxcell[framecolor=Rose]\stopxcell
\stopxrow
\startxrow
\startxcell[rightframe=off,framecolor=cyan] A\stopxcell
\startxcell[rightframe=off,framecolor=FlushOrange] B\stopxcell
\startxcell[width=0pt,framecolor=ElectricViolet]\stopxcell
\stopxrow
\startxrow[offset=overlay,location=hanging,topframe=on,framecolor=Chartreuse]
\startxcell\stopxcell
\startxcell[framecolor=BlushPink]\stopxcell
\stopxrow
\stopxtable
}
2/ I have trouble with rotated cells. It seems to affect the width of the table. How can I use a rotated cell without setting manually a fixed width.
MWE :
\placetable[none]{}{
\startxtable[align=lohi]
\startxrow
\startxcell \rotate[rotation=90]{Test test test}\stopxcell
\startxcell Test\stopxcell
\stopxrow
\startxrow
\startxcell Test\stopxcell
\startxcell Test\stopxcell
\stopxrow
\stopxtable
}
Thank you !
- X.D.