[luatex] wrong baseline if text in luamplib graphic

Stephan Hennig mailing_list at arcor.de
Sat Jun 29 00:08:19 CEST 2013


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)
>  ***********
-------------- next part --------------
outputtemplate := "%j-%c.mps";
prologues := 3;
beginfig(0);
  draw origin--10right;
  draw btex g etex;
endfig;
end
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bug.pdf
Type: application/pdf
Size: 10025 bytes
Desc: not available
URL: <http://tug.org/pipermail/luatex/attachments/20130629/00a08004/attachment-0001.pdf>
-------------- next part --------------
\listfiles
\documentclass{article}
\usepackage{luamplib}
\begin{document}
\begin{mplibcode}
beginfig(0);
  draw (0,0)--(10,0);
  draw btex g etex;
endfig;
end
\end{mplibcode}
\end{document}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bug-0.mps
Type: application/postscript
Size: 18484 bytes
Desc: not available
URL: <http://tug.org/pipermail/luatex/attachments/20130629/00a08004/attachment-0001.ai>


More information about the luatex mailing list