Skip to content

Releases: lualatex/luamplib

v2.32.3

21 Jun 08:42
77b48ad
Compare
Choose a tag to compare
  • coloured is a synonym of the option colored in pattern definition.

  • fix a bug related to pdf page resources in dvi mode

  • users can access the lua table containing mplib instances luamplib.instances,
    through which metapost variables are also easily accessible as documented in
    LuaTeX manual 11.2.8.4.

v2.32.2

13 Jun 19:29
1860030
Compare
Choose a tag to compare

fix matrix conversion between MP and PDF

v2.32.1

13 Jun 07:33
267b7a2
Compare
Choose a tag to compare
  • for the sake of convenience, width and height values of tiling patterns will be written down into the log file.
  • table type is allowed as well as string type for matrix and bbox options in pattern definition.
  • metapost code such as rotated 30 slanted .2 is allowed as well as the string or table of numbers for the matrix option in pattern definition.
  • as for the resources option in pattern definition, luamplib automatically includes the resources of the current page.
  • luamplib does not log info even if there's no beginfig ... endfig.

v2.32.0

10 Jun 03:09
1e8b62d
Compare
Choose a tag to compare
  • \mppattern{<name>} ... \endmppattern defines a tiling pattern which can be used with withpattern operator to fill a closed path by replicating the tile horizontally and vertically. \begin{mppattern} ... \end{mppattern} is exactly the same as \mppattern ... \endmppattern. See luamplib manual for details.

v2.31.2

30 May 06:56
4d2c8be
Compare
Choose a tag to compare
  • support vertical writing mode in mpliboutlinetext
    (presently luatexko package only, and except horizontal mode inside vertical mode)
  • after the process of mpliboutlinetext, mpliboutlinepic[1] ... mpliboutlinepic[mpliboutlinenum] will be preserved as an array of images each of which containing a glyph or a rule. N.B. Unicode grapheme cluster is not considered here.

v2.31.1

24 May 04:55
9d1565d
Compare
Choose a tag to compare
  • fix bugs in outlinetext routine
  • improve rule treatment in graphictext

v2.31.0

21 May 10:51
110f2cc
Compare
Choose a tag to compare
  • provide a new metapost operator mpliboutlinetext, which mimicks metafun's outlinetext. The syntax is the same as metafun's. (#133)

v2.30.0

10 May 08:32
7d10e5e
Compare
Choose a tag to compare
  • provide a new metapost operator mplibglyph, which returns a metapost
    picture containing outline paths of a glyph in opentype, truetype or type1
    fonts. When a type1 font is specified, metapost primitive glyph will be
    called. In the syntax as follows, subfont number is zero based.

     mplibglyph 50   of \fontid\font            % slot 50 of current font
     mplibglyph 50   of "cmr10"                          % type1 font
     mplibglyph "Q"  of "TU/TeXGyrePagella(0)/m/n/10"    % TeX fontname
     mplibglyph "똠" of "NotoSansCJKkr-Regular.otf"      % raw filename
     mplibglyph "Q"  of "Times.ttc(2)"                   % subfont number
     mplibglyph "똠" of "SourceHanSansK-VF.otf[Regular]" % instance name
    
  • provide a new metapost command mplibdrawglyph. In contrast to metapost's
    draw command, this one fills paths of a picture according to the Nonzero
    Winding Number Rule.

  • in mplibgraphictext, option scale is deprecated and now a synonym of
    scaled. In DVI mode, unicode-math package is needed for math formula
    graphictext.

v2.29.0

01 May 07:49
7734e7a
Compare
Choose a tag to compare
  • provide new TeX macros to reduce typing toil. \mpfig ... \endmpfig is roughly the abbreviation of
         \begin{mplibcode}[@mpfig]
         beginfig(0)
         token list declared by \everymplib[@mpfig]
         ...
         token list declared by \everyendmplib[@mpfig]
         endfig;
         \end{mplibcode}

and \mpfig* ... \endmpfig is roughly the abbreviation of

         \begin{mplibcode}[@mpfig]
         ...
         \end{mplibcode}

These macros are protected and unexpandable. In these macros \mpliblegacybehavior{false} is forcibly declared. As both share the same instance name, MetaPost codes are inherited among them. The instance name (default: @mpfig) can be changed by redefining \mpfiginstancename.

  • instance names are allowed in plain TeX as well. The syntax is:
         \mplibcode[name] ... \endmplibcode
         \everymplib[name]{ ... }
         \everyendmplib[name]{ ... }

These macros are now protected and unexpandable.

  • provide new MetaPost operators mplibtexcolor and mplibrgbtexcolor which convert TeX color expressions to MetaPost color expressions. The latter one forces rgb model results (#112). For instance,
         mplibtexcolor "olive"     % => (0, 0, 1, 0.5)
         mplibrgbtexcolor "olive"  % => (0.5, 0.5, 0)

As spot colors are always forced to cmyk or rgb model, it is not recommended to use these operators for them.

  • write down MetaPost messages into the log file

v2.28.2

25 Apr 09:10
f3c092a
Compare
Choose a tag to compare
  • direction of figure box is explicitly declared as TLT (#129)
  • figure box materials are emitted in one go at the end of the figure
    (to enable tex.runtoks in spot color shading routine)