[lltx] wrong baseline if text in luamplib graphic

Dohyun Kim nomosnomos at gmail.com
Sat Jun 29 02:29:46 CEST 2013


2013/6/29 Stephan Hennig <mailing_list at arcor.de>:
> Hi,
>
> I'm not sure if this is an error in LuaTeX or in the luamplib package,
> so sending this to both lists.
>
> Attached are an .mp file and a .tex file that should both draw the same
> graphic.
>
> Compiling the .mp file with MetaPost, output is as expected, i.e., the
> loop of the letter g reaches below the horizontal line at an y
> coordinate of zero.
>
> Compiling the .tex file with LuaLaTeX, the g sits completely on top of
> the line.
>
> Best regards,
> Stephan Hennig
>
>
>> This is LuaTeX, Version beta-0.76.0-2013061707 (rev 4627)  (format=lualatex 2013.6.23)  29 JUN 2013 00:01
>
>>  *File List*
>>  article.cls    2007/10/19 v1.4h Standard LaTeX document class
>>   size10.clo    2007/10/19 v1.4h Standard LaTeX file (size option)
>> luamplib.sty    2013/05/07 v2.0 mplib package for LuaTeX
>> luatexbase-modutils.sty    2013/05/11 v0.6 Module utilities for LuaTeX
>> ifluatex.sty    2010/03/01 v1.3 Provides the ifluatex switch (HO)
>> luatexbase-loader.sty    2013/05/11 v0.6 Lua module loader for LuaTeX
>> luatexbase-compat.sty    2011/05/24 v0.4 Compatibility tools for LuaTeX
>> pdftexcmds.sty    2011/11/29 v0.20 Utility functions of pdfTeX for LuaTeX (HO)
>> infwarerr.sty    2010/04/08 v1.3 Providing info/warning/error messages (HO)
>>  ltxcmds.sty    2011/11/09 v1.22 LaTeX kernel commands for general use (HO)
>>    ifpdf.sty    2011/01/30 v2.3 Provides the ifpdf switch (HO)
>> luatex-loader.sty    2010/03/09 v0.4 Lua module loader (HO)
>>  ***********

That is a bug of luamplib package.
Please apply the following patch until the packge is updated.

--- /usr/local/texlive/2013/texmf-dist/tex/luatex/luamplib/luamplib.sty.orig
   2013-06-29 09:25:28.000000000 +0900
+++ /usr/local/texlive/2013/texmf-dist/tex/luatex/luamplib/luamplib.sty
   2013-06-29 09:25:44.000000000 +0900
@@ -40,7 +40,7 @@
   %catcode`\%=12 %% don^^e2^^80^^99t in Plain!
   \catcode`\&=12 \catcode`\$=12
 }
-\def\mplibputtextbox#1{\vbox to 0pt{\vss\hbox to 0pt{\raise\dp#1\box#1\hss}}}
+\def\mplibputtextbox#1{\vbox to 0pt{\vss\hbox to 0pt{\box#1\hss}}}
 \bgroup\expandafter\expandafter\expandafter\egroup
 \expandafter\ifx\csname ProvidesPackage\endcsname\relax
 \def\mplibcode{%

Thanks for the report.
Regards,

--
Dohyun Kim
Seoul, Republic of Korea


More information about the lualatex-dev mailing list