CTAN update: luamplib

CTAN Announcements ctan-ann at ctan.org
Sat Apr 13 18:03:47 CEST 2024


Dohyun Kim submitted an update to the

                 luamplib

package.

Version:  2.28.0 2024-04-12
License:  gpl2

Summary description:  Use LuaTeX’s built-in MetaPost interpreter

Announcement text:
----------------------------------------------------------------------

 * provide a new metapost operator 'mplibgraphictext', which is similar
   to ConTeXt's 'graphictext'. But the syntax is not the same:

       mplibgraphictext "Text" fakebold 2 scale 3
                               fillcolor red drawcolor blue

   where 'fakebold' and 'scale' are fontspec's font options.
   'fakebold', 'scale', 'drawcolor' and 'fillcolor' are optional and
   default values are '2', '1', "black" and "white" respectively.
   When color expressions are given as string, they are regarded as
   xcolor's or l3color's expressions. The operator generates a metapost
   picture, which can be drawn or assigned to a variable. For compatibilty
   with 'graphictext', 'withdrawcolor' and 'withfillcolor' are synonyms of
   'drawcolor' and 'fillcolor'. Because the implementation is quite
   different from the \ConTeXt's, there are some limitations such that
   we can't apply shading (gradient colors) to the text.

 * support metafun's new shading method. Color expressions given as string
   are regarded as xcolor's or l3color's expressions. Spot colors defined
   by the color commands of l3color package are also acceptable
   (currently '\DocumentMetadata{ }' is needed for spot colors).

 * fix the y-position of text figures, which means the result of 'infont'
   operator, not of the 'textext' operator.

----------------------------------------------------------------------

The package’s Catalogue entry can be viewed at
   https://ctan.org/pkg/luamplib

The package’s files themselves can be inspected at
   https://mirrors.ctan.org/macros/luatex/generic/luamplib/

------------------------------------------------------------------------

   Thanks for the upload.

     For the CTAN Team
    Petra Rübe-Pugliese

------------------------------------------------------------------------

CTAN is run entirely by volunteers and supported by TeX user groups.
Please join a user group or donate to one, see https://ctan.org/lugs


More information about the Ctan-ann mailing list