[NTG-context] beta

2019-10-28 Thread Hans Hagen

Hi,

I uploaded a beta. In lmtx there is now a bit more advanced support for 
svg. A preliminary manual is included that explains a few things.


As a teaser ... it is also possible to embed svg code, as in:

\startbuffer[svgtest]




\stopbuffer

\startTEXpage
\includesvgbuffer[svgtest]
\stopTEXpage

\startTEXpage
\includesvgbuffer[svgtest][offset=2bp]
\stopTEXpage

or in metapost disguise:

\startMPpage
vardef svg expr c = lmt_svg [ code = c ] enddef ;

draw svg "


" ;
\stopMPpage

It is not a replacement for metapost (which is more efficient runtime 
anbyway) but for artistic images a mixture might work out ok.


In principle inclusion with externalfigure also works when 
conversion=mps is set but, although I have some 1500 test images, not 
all might work out well. There can be a lot of crap be hidden in svg 
files and angle brackets are no guarantee for properly structured 
images. Especially fonts can be troublesome. On the other hand, if one 
has very structured input, text labels can be swapped for propertly 
typeset ones (like math), but that's for later to explain (experimental 
stuff). We'll see.


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
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] beta

2019-10-28 Thread Floris van Manen


On 28-10-2019 19:20, Hans Hagen wrote:
> 
> As a teaser ... it is also possible to embed svg code, as in:
> 
> \startbuffer[svgtest]
> 
>          cx="50" cy="50" r="40"
>     stroke="green" stroke-width="10" stroke-opacity="0.3"
>     fill="red" fill-opacity="0.3"
>     />
>          cx="150" cy="50" r="40"
>     stroke="green" stroke-width="10"
>     fill="red"
>     opacity="0.3"
>     />
> 
> \stopbuffer
> 
> \startTEXpage
>     \includesvgbuffer[svgtest]
> \stopTEXpage
> 
> \startTEXpage
>     \includesvgbuffer[svgtest][offset=2bp]
> \stopTEXpage

Nice !
It seems that it does not retains the  grouping and layering in
place. e.g. everything ends up in one layer and one group.

.Floris



pEpkey.asc
Description: application/pgp-keys
___
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
___


[NTG-context] Luatex 1.11.1 announcement

2019-10-28 Thread luigi scarso
==
LuaTeX 1.11.1 2019-10-28
==

First release of luahbtex / luajithbtex,
luatex / luajittex with harfbuzz.
Small bug fixes, code clean up and a couple of new primitives
to match eTeX.
A new callback lua.getcodepage()  for diagnostic purposes.
*** DROPPED the   "page_objnum_provider" callback, replaced with
"page_order_index". ***
See ChangeLog and the manual.

-- 
luigi
___
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
___


[NTG-context] Fails with MkIV works with LMTX

2019-10-28 Thread Rik Kabel

This works with the 20191028 LMTX beta, fails with the 20191028 MkIV beta:

   \starttext
   This\footnote{that}
   \stoptext

Error log:

   return {
 ["filename"]="c:/Users/micro/Desktop/fn.tex",
 ["lastcontext"]="\n ...s \\inheritmaintextcolor
   \\strc_itemgroups_push \n \n\\handlenoteinsert ...tes_synchronize
   \\the \\everybeforenoteinsert
   \n  \\insert
   \\currentnoteinsert...\n\\235>notation:note ...enoteinsert
   \\currentnote \\currentnotenumber
   \n  \\fi \\fi \\fi
   \\endgroup \\fi ...\n\\m_syst_action_nop ...dler
   \\currentconstructionhandler \\endcsname \n
   \\strc_constructions_finali...\nl.2
   This\\footnote{that}\n  ",
 ["lastluaerror"]="?",
 ["lasttexerror"]="! Undefined control sequence",
 ["linenumber"]=2,
 ["offset"]=10,
   }

Can anyone reproduce this? I have tried rebuilding.

--
Rik


___
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] Fails with MkIV works with LMTX

2019-10-28 Thread Otared Kavian
Hi Rik,

Yes I get an error message with th eversion of mkiv you are mentioning (on 
MacOS 10.14.6).
The error message is:

Undefined control sequence

 ...es \inheritmaintextcolor \strc_itemgroups_push 
  
\handlenoteinsert ... \the \everybeforenoteinsert 
  \insert \currentnoteinsert...
\235>notation:note ...rentnote \currentnotenumber 
  \fi \fi \fi \endgroup \fi ...
\m_syst_action_nop ...structionhandler \endcsname 
  \strc_constructions_finali...

Best regards: OK

> On 28 Oct 2019, at 22:59, Rik Kabel  wrote:
> 
> This works with the 20191028 LMTX beta, fails with the 20191028 MkIV beta:
> 
> \starttext
> This\footnote{that}
> \stoptext
> 
> Error log:
> 
> return {
>  ["filename"]="c:/Users/micro/Desktop/fn.tex",
>  ["lastcontext"]="\n ...s \\inheritmaintextcolor 
> \\strc_itemgroups_push \n 
>\n\\handlenoteinsert ...tes_synchronize \\the \\everybeforenoteinsert 
> \n  \\insert 
> \\currentnoteinsert...\n\\235>notation:note ...enoteinsert \\currentnote 
> \\currentnotenumber \n  \\fi 
> \\fi \\fi \\endgroup \\fi ...\n\\m_syst_action_nop ...dler 
> \\currentconstructionhandler \\endcsname \n   
>  \\strc_constructions_finali...\nl.2 
> This\\footnote{that}\n  ",
>  ["lastluaerror"]="?",
>  ["lasttexerror"]="! Undefined control sequence",
>  ["linenumber"]=2,
>  ["offset"]=10,
> }
> 
> Can anyone reproduce this? I have tried rebuilding.
> 
> -- 
> Rik
> 
> 
> 
> ___
> 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
> ___

___
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
___


[NTG-context] A question about an algorithm environment

2019-10-28 Thread Fabrice Couvreur
Hi Wolfgang,
Why in the first example, the indentation of my Python code that I wish is
not respected and that I have to do as the second example to have what I
want ?
Thank you.
Fabrice

 \defineframedtext
 [algorithmframe]
 [width=fit,
  location=middle,
 foregroundstyle={\tt\switchtobodyfont[11pt]},
  framecolor=darkblue,
  corner=round]

  \definelines
 [algorithm]
 [space=on,
  before=\startalgorithmframe,
  after=\stopalgorithmframe]

\starttext
\startlinecorrection[blank]
  \startmidaligned
\startalgorithm
  {\blue def nom} (argument1, argument2,\unknown):
 \unknown
{\orange return} résultat
\stopalgorithm
  \stopmidaligned
\stoplinecorrection
\startlinecorrection[blank]
  \startmidaligned
\startalgorithm
{\blue def nom} (argument1, argument2,\unknown):
 \unknown
{\orange return} résultat
\stopalgorithm
  \stopmidaligned
\stoplinecorrection
\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
___


[NTG-context] Bug in latest LMTX?

2019-10-28 Thread Otared Kavian
Hi Hans,

Last night I updated to th elatest beta LMTX (version 2019.10.28 18:57), and 
noticed that several things don't work as usual. I have not yet been able to 
find all the examples, but here is one in math:

\definemathfence[abs][bar][command=yes,factor=auto]

\starttext

\startformula
\sup_{t\in {\Bbb R}}\abs{f(t + T) - f(t)} \leq \epsilon.
\stopformula

\stoptext

The above does not typeset and I have the following error message:

tex error   > tex error on line 7 in file ./bug-math.tex: ! This can't 
happen (mlist2)


\stopforceddisplaymath ->\endgroup \stopimath 
  
\strc_math_box_stop ->\stopforceddisplaymath 
 \egroup \d_strc_math_number_wid...
\stopdisplaymath ...xpandafter \stopinnermath \fi 
  \afterdisplayspace \egroup 
\strc_formulas_stop_formula ...formula \endcsname 
  \dostoptagged \dostoptagge...
l.7 \stopformula
  

1 \definemathfence[abs][bar][command=yes,factor=auto]
2 
3 \starttext
4 
5 \startformula
6 \sup_{t\in {\Bbb R}}\abs{f(t + T) - f(t)} \leq \epsilon.
7 >>  \stopformula
8 
9 \stoptext


I'm broken. Please show this to someone who can fix me.


mtx-context | fatal error: return code: 256

Thanks for your attention: OK
PS: the PDF produced now with a colorful « error » is very nice… but the error 
messages are cryptic :-)
___
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
___