Releases: lualatex/luamplib
v2.32.3
-
coloured
is a synonym of the optioncolored
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
v2.32.1
- 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
andbbox
options in pattern definition. - metapost code such as
rotated 30 slanted .2
is allowed as well as the string or table of numbers for thematrix
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
\mppattern{<name>}
...\endmppattern
defines a tiling pattern which can be used withwithpattern
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
- 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
v2.31.0
v2.30.0
-
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 primitiveglyph
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
, optionscale
is deprecated and now a synonym of
scaled
. In DVI mode, unicode-math package is needed for math formula
graphictext.
v2.29.0
- 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
andmplibrgbtexcolor
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