[luatex] default magnification

Philipp Gesang phg at phi-gamma.net
Sat Apr 23 19:24:45 CEST 2016


···<date: 2016-04-23, Saturday>···<from: Herbert Schulz>···

> > On Apr 23, 2016, at 11:29 AM, Philipp Gesang <phg at phi-gamma.net> wrote:
> > 
> > ···<date: 2016-04-23, Saturday>···<from: Herbert Schulz>···
> > 
> >>> On Apr 23, 2016, at 9:30 AM, Philipp Gesang <phg at phi-gamma.net> wrote:
> >>> 
> >>>> 
> >>>>                                               A demonstration
> >>>> file that showed the use of fontspec with lualatex (it is shipped
> >>>> with MacTeX) seems to rebuild
> >>>> ~/Library/texlive/2016/texmf-var/luatex-cache/generic/fonts/otl/lmsans10-regular.luc
> >>>> on essentially every run;
> >>> 
> >>> Can you reduce that file to an MWE?
> >>> 
> >> 
> >> Howdy,
> >> 
> >> Here is a reasonable MWE that shows the problem. I get anywhere from 2 to 6 runs when one should do.
> >> 
> >> % !TEX TS-program = lualatexmk
> >> % !TEX encoding = UTF-8 Unicode
> >> \documentclass{article}
> >> \usepackage{fontspec}
> >> \setmainfont[Ligatures=TeX]{TeX Gyre Pagella}
> >> \setsansfont[Ligatures=TeX,Scale=MatchLowercase]{Latin Modern Sans}
> >> \setmonofont[Scale=MatchLowercase]{Inconsolata}
> >> \begin{document}
> >> Hello World
> >> \end{document}
> > 
> > Tested with “Inconsolata LGC” because that’s the one I have here,
> > the example does not trigger a database reload. As for that build
> > tool, if invoked like so:
> > 
> >    latexmk -pdflatex=lualatex -pdf test.tex
> > 
> > I can confirm that it indeed errors out due to too many runs. No
> > idea how it works, though.
> > 
> > Best,
> > Philipp
> > 
> 
> Howdy,
> 
> Near the end of the last run I see
> 
>    Changed files, or newly in use since previous run(s):
>       '/Users/herbs/Library/texlive/2016/texmf-var/luatex-cache/generic/fonts/otl/lmsans10-regular.luc'
> Latexmk: Maximum runs of pdflatex reached without getting stable files
> Latexmk: Did not finish processing file 'test.tex':
>    'pdflatex' needed too many passes
> 
> which seems to indicate that latexmk is ``seeing'' ~/Library/texlive/2016/texmf-var/luatex-cache/generic/fonts/otl/lmsans10-regular.luc change.

Interesting. Luatex outputs this:

    (load luc:
     /home/phg/.local/texlive/2016/texmf-var/luatex-cache/generic/fonts/otl/lmsans1
    0-regular.luc)(save: /home/phg/.local/texlive/2016/texmf-var/luatex-cache/gener
    ic/fonts/otl/lmsans10-regular.lua)(save: /home/phg/.local/texlive/2016/texmf-va
    r/luatex-cache/generic/fonts/otl/lmsans10-regular.luc))

When I compare these files from two subsequent runs of Luatex, I
get:

    --- /tmp/before.lua	2016-04-23 19:12:38.799568029 +0200
    +++ /tmp/after.lua	2016-04-23 19:13:11.029567602 +0200
    @@ -5510,14 +5510,14 @@
        ["boundingbox"]={ 27, 0, 735, 705 },
        ["index"]=123,
        ["name"]="f_f_i",
    -   ["unicode"]=64259,
    +   ["unicode"]={ 102, 102, 105 },
        ["width"]=814,
       },
       [64260]={
        ["boundingbox"]={ 27, 0, 731, 705 },
        ["index"]=124,
        ["name"]="f_f_l",
    -   ["unicode"]=64260,
    +   ["unicode"]={ 102, 102, 108 },
        ["width"]=814,
       },
       [983040]={

The next run then produces the unstructured value of “unicode”
for f_f_l again …

This does not happen without Fontspec:

    \documentclass{article}
    \usepackage{luaotfload}
    \font \lmsansten = file:lmsans10-regular.otf at 10pt
    \begin{document}
    \lmsansten Hello World
    \end{document}

Philipp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://tug.org/pipermail/luatex/attachments/20160423/b000e947/attachment-0001.bin>


More information about the luatex mailing list