ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* new (lmtx) beta
@ 2019-10-04 16:10 Hans Hagen
  2019-10-04 19:33 ` Mikael P. Sundqvist
  0 siblings, 1 reply; 12+ messages in thread
From: Hans Hagen @ 2019-10-04 16:10 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: text/plain, Size: 548 bytes --]

Hi,

I uploaded a new lmtx beta. Again some more metafun trickery (see 
luametafun manual). I attached an (lmtx only) example of some experiment 
code, dedicated to Alan Braslau (teacher among other things).

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

[-- Attachment #2: kindergarten.pdf --]
[-- Type: application/pdf, Size: 9795 bytes --]

[-- Attachment #3: kindergarten.tex --]
[-- Type: text/plain, Size: 2704 bytes --]

\startMPcalculation{simplefun}

    pen KindergartenPen ; KindergartenPen := pencircle scaled 1 ;

    % 10 x 10 grid

    vardef KindergartenEqual =
        draw image
            (
                draw (2,6) -- (9,5) ;
                draw (2,4) -- (8,3) ;
            )
            shifted (0,-2)
            withpen KindergartenPen
            withcolor "KindergartenEqual"
    enddef ;
    vardef KindergartenPlus =
        draw image
            (
                draw (1,4) -- (9,5) ;
                draw (4,1) -- (5,8) ;
            )
            shifted (0,-2)
            withpen KindergartenPen
            withcolor "KindergartenPlus"
    enddef ;
    vardef KindergartenMinus =
        draw image
            (
                draw (1,5) -- (9,4) ;
            )
            shifted (0,-2)
            withpen KindergartenPen
            withcolor "KindergartenMinus"
    enddef ;
    vardef KindergartenTimes =
        draw image
            (
                draw (2,1) -- (9,8) ;
                draw (8,1) -- (2,8) ;
            )
            shifted (0,-2)
            withpen KindergartenPen
            withcolor "KindergartenTimes"
    enddef ;
    vardef KindergartenDivided =
        draw image
            (
                draw (2,1) -- (8,9) ;
            )
            shifted (0,-2)
            withpen KindergartenPen
            withcolor "KindergartenDivided"
    enddef ;

    lmt_registerglyphs [
        name     = "kindergarten",
        units    = 10,
      % usecolor = true,
        width    = 10,
        height   = 8,
        depth    = 2,
    ] ;

    lmt_registerglyph [ category = "kindergarten", unicode = "0x003D",
        code = "KindergartenEqual"
    ] ;
    lmt_registerglyph [ category = "kindergarten", unicode = "0x002B",
        code = "KindergartenPlus"
    ] ;
    lmt_registerglyph [ category = "kindergarten", unicode = "0x2212",
        code = "KindergartenMinus"
    ] ;
    lmt_registerglyph [ category = "kindergarten", unicode = "0x00D7",
        code = "KindergartenTimes"
    ] ;
    lmt_registerglyph [ category = "kindergarten", unicode = "0x002F",
        code = "KindergartenDivided"
    ] ;

\stopMPcalculation

\definecolor[KindergartenEqual]  [darkgreen]
\definecolor[KindergartenPlus]   [darkred]
\definecolor[KindergartenMinus]  [darkred]
\definecolor[KindergartenTimes]  [darkblue]
\definecolor[KindergartenDivided][darkblue]

\definefontfeature
  [mathextra]
  [metapost=kindergarten]

\setupbodyfont[dejavu]

\startTEXpage[offset=10pt]
    $ y = 2 \times x + a - b / 3 $ \par
    \hfill \infofont{kindergarten math}
\stopTEXpage

[-- Attachment #4: Type: text/plain, Size: 493 bytes --]

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

^ permalink raw reply	[flat|nested] 12+ messages in thread
[parent not found: <mailman.1.1570356001.2603.ntg-context@ntg.nl>]
* new lmtx beta
@ 2020-01-26 18:38 Hans Hagen
  2020-01-26 18:40 ` Mojca Miklavec
  0 siblings, 1 reply; 12+ messages in thread
From: Hans Hagen @ 2020-01-26 18:38 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi,

I uploaded a new beta (mostly lmtx). Challenged by Mojca we managed to 
get native compilation under mswindows working in visual studio (and 
soon the compile farm will do several windows compilation variants) so 
future installation can have either native binaries or crosscompiles 
(they have comparable performance with the native ones being a bit 
smaller). The current upload still has crosscompiled binaries.

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2020-01-26 19:16 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-04 16:10 new (lmtx) beta Hans Hagen
2019-10-04 19:33 ` Mikael P. Sundqvist
2019-10-05  7:39   ` Fabrice Couvreur
2019-10-05  7:45     ` Wolfgang Schuster
2019-10-05 10:52       ` Mikael P. Sundqvist
2019-10-06  8:39         ` Fabrice Couvreur
     [not found] <mailman.1.1570356001.2603.ntg-context@ntg.nl>
2019-10-11 14:09 ` Jeong Dal
2019-10-11 15:09   ` Hans Hagen
2019-10-11 22:19     ` Jeong Dal
2020-01-26 18:38 new lmtx beta Hans Hagen
2020-01-26 18:40 ` Mojca Miklavec
2020-01-26 19:16   ` Hans Hagen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).