[luatex] METAPOST labels in Lualatex: illegal unit of measure

Dohyun Kim nomosnomos at gmail.com
Fri May 3 06:30:30 CEST 2013

2013/5/3 Dohyun Kim <nomosnomos at gmail.com>:
> BTW, without \usepackage{fontspec}, I get "undefined control sequence"
> error at \pdfstrcmp. I haven't noticed that before, as I always loaded
> fontspec package. However, fontspec is a too heavy a package for
> \pdfstrcmp command only. Could anybody tell me what package is
> suitable for this purpose? I tried \usepackage{pdftexcmds}, but of no
> use.

OK. According to the manual, pdftexcmds package provides not
\pdfstrcmp, but \pdf at strcmp instead. Therefore luatexko-mplib.sty
should be patched as follows:

>   \input pdftexcmds.sty
>   \RequirePackage{pdftexcmds}
<   \ifnum\pdfstrcmp{#1}{mplibcode}=\z@
>   \ifnum\pdf at strcmp{#1}{mplibcode}=\z@

Then no need to load fontspec.  Élle, please apply this patch as well
when you import luatexko-mplib to luamplib if it is acceptable.

Dohyun Kim
Seoul, Republic of Korea

More information about the luatex mailing list