> On Apr 23, 2016, at 12:24 PM, Philipp Gesang <[email protected]> wrote: > > ···<date: 2016-04-23, Saturday>···<from: Herbert Schulz>··· > >>> On Apr 23, 2016, at 11:29 AM, Philipp Gesang <[email protected]> wrote: >>> >>> ···<date: 2016-04-23, Saturday>···<from: Herbert Schulz>··· >>> >>>>> On Apr 23, 2016, at 9:30 AM, Philipp Gesang <[email protected]> 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
Howdy, I have more information about the ``infinite loop'' of changing .luc file. I have two identical copies of Latin Modern and Latin Modern Math OTF fonts; one in .../texmf-dist/fonts/opentype/... and the other in my personal font files in ~/Library/Fonts/... where Font Book can find them. (There is a good reason for that when using xe(la)tex.) If I remove the versions from my personal fonts and rebuild the font cache I consistently get fine results with latexmk and lualatex. I guess there is something special about Latin Modern (& Math) because I have other duplicated fonts and lualatex has no problem with them. Good Luck, Herb Schulz (herbs at wideopenwest dot com)
