[NTG-context] Hatch color in a table cell

2020-03-12 Thread Fabrice Couvreur
Hi,
I would like to hatch the cell green.
Thank you.
Fabrice

\usecolors[xwi]
\startuniqueMPgraphic{meta:hash}{linewidth,linecolor,angle,gap}
if unknown context_back : input mp-back ; fi ;
some_hash ( OverlayWidth, OverlayHeight ,
\MPvar{linewidth}, \MPvar{linecolor} ,
\MPvar{angle}, \MPvar{gap} ) ;
\stopuniqueMPgraphic

\setupMPvariables
[meta:hash]
[gap=.25\bodyfontsize,
angle=45,
linewidth=\overlaylinewidth,
linecolor=\overlaylinecolor]

\def\metahashoverlay#1{\uniqueMPgraphic{meta:hash}{angle=#1}}
\defineoverlay[meta:hash:right]
[\metahashoverlay{ +45}]
\defineoverlay[meta:hash:left]
[\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,
backgroundcolor=white, framecolor=purple,
meta:hash:linecolor=green]
  \startxrow

\startxcell[background=color,backgroundcolor=paleturquoise]
  i
\stopxcell
\startxcell[background=meta:hash:right,frame=off]

\stopxcell
\startxcell
  0
\stopxcell
\startxcell
  1
\stopxcell
\startxcell
  2
\stopxcell
  \stopxrow
  \startxrow

\startxcell[background=color,backgroundcolor=paleturquoise]
  S
\stopxcell
\startxcell
  0
\stopxcell
\startxcell

\stopxcell
\startxcell

\stopxcell
\startxcell

\stopxcell
  \stopxrow
  \startxrow

\startxcell[background=color,backgroundcolor=paleturquoise]
  a
\stopxcell
\startxcell
  3
\stopxcell
\startxcell

\stopxcell
\startxcell

\stopxcell
\startxcell

\stopxcell
\stopxrow
\stopxtable
  \stopmidaligned
\stoptext
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] ePub issues: XML structure

2020-03-12 Thread Axel Kielhorn


> Am 12.03.2020 um 08:09 schrieb Henning Hraban Ramm :
> 
>> Am 2020-03-11 um 22:42 schrieb Axel Kielhorn :
>> 
>> Actually your workshop is the reason I plan to attend the meeting.
> 
> Nice to hear, you’re welcome!

As a preparation I have updated my german intro at:

https://github.com/AKielhorn/Context-Intro

> 
>> I hope Corona does not interfere.
> 
> me too! Yesterday the DANTE board wrote they’re still considering.
> Well, my bed is paid for, and won’t get refunded.

We’ll see.

Greetings Axel

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] ePub issues: XML structure

2020-03-12 Thread Henning Hraban Ramm
> Am 2020-03-11 um 22:42 schrieb Axel Kielhorn :
> 
>> Am 11.03.2020 um 20:59 schrieb Henning Hraban Ramm :
>> 
>> Hi Axel,
>> will I meet you by chance at the DANTE in Lübeck?
>> 
>> In that case it would be nice if you could assist me with my "ConTeXt for 
>> beginners workshop" to tell something about Lua & XML.
>> 
>> Greetlings, Hraban
> 
> Actually your workshop is the reason I plan to attend the meeting.

Nice to hear, you’re welcome!

> I hope Corona does not interfere.

me too! Yesterday the DANTE board wrote they’re still considering.
Well, my bed is paid for, and won’t get refunded.

> Greetling[1], Axel
> 
> [1] There are no Tikzgreetlings, as far as I know.

;)
While I got used to TikZ in a LaTeX project, I’m not very fond of TikZlings 
(funny, but not as funny as their creators seem to deem them).

(My greetlings are just a translation of the “Grüßlinge” that we used in one of 
my youth groups. I’m fading them out.)

Best, Hraban
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___