zauguin / luametalatex

18 stars 2 forks source link

microtype #2

Closed hvoss49 closed 2 years ago

hvoss49 commented 2 years ago

There is a problem with package micro type:

\listfiles
\errorcontextlines=100
%\RequirePackage{pdfmanagement-testphase}
%\DeclareDocumentMetadata{uncompress}
\documentclass{book}
%\usepackage{libertinus}
\usepackage{microtype}
%\usepackage[ngerman]{babel}
\begin{document}

Mögliche Ursache ist ein ???fehler.

\end{document}

All is up-to-date: TL, ConTeXt, luametalatex

bash-3.2$ luametalatex-dev doc1
{/usr/local/texlive/2021/texmf-var/fonts/map/pdftex/updmap/pdftex.map}This is LuaMetaTeX, Version 2.09.35 luametalatex-dev.fmt 2022.1.2
(doc1
LaTeX2e <2022-06-01> pre-release-0 (develop 2022-1-2 branch)
 L3 programming layer <2021-11-22>(book.cls
Document Class: book 2021/10/04 v1.4n Standard LaTeX document class
(bk10.clo))(microtype.sty(keyval.sty)(etoolbox.sty)(microtype-luatex.def)(microtype.cfg))(l3backend-luatex.def)(doc1.aux)(ts1cmr.fd)(mt-LatinModernRoman.cfg)
! Illegal unit of measure (pt inserted).
<to be read again> 

    def 
<macro> MT@pr@split@val 
    ...pty @tempb relax {MT@scale@to@em lpcode MT@font MT@char =MT@the@pr@code }def 
    @tempb {#2}MT@ifempty @tempb relax {MT@scale@to@e ...
<macro> MT@split@codes 
    ...T@char > m@ne MT@get@char@unit csname MT@MT@feat @split@valendcsname #2relax 
    fi fi 
<macro> MT@set@codes 
    #1,->ifx relax #1@empty else MT@split@codes #1==relax 
    expandafter MT@set@codes fi 
<macro> MT@curr@list@name 
    A={50,50},
    Æ={50,},F={,50},J={50,},K={,50},L={,50},T={50,50},V={50,50},W={50,50},X={50,50},Y={50,50},k={,50},r={,50},t={,70},v={50,5
<argument> 
    ...name MT@let@cn @tempc {MT@pr@c@MT@pr@c@name }expandafter MT@set@codes @tempc 
    ,relax ,MT@set@pr@prefixheirs 
<macro> @firstoftwo 
    #1#2->#1
<macro> MT@maybe@do 
    ...}}else MT@dofalse fi ifMT@do def MT@feat {#1}csname MT@set@#1@codesendcsname 
    else MT@ifstreq {#1}{tr}{let MT@info@notracking M ...
<macro> font@name 
    ...@vinfo {Setting up font `MT@@font 'on@line }MT@info@notracking MT@protrusion 
    MT@expansion MT@noligatures MT@register@font fi 
<macro> font@name 
    ...me else ifx MT@font font@name else MT@register@subst@font fi fi MT@setupfont 
    endgroup 
<macro> MT@active@features 
    ...esfalse xdef font@name {csname curr@fontshape /f@size endcsname }pickup@font 
    font@name UseHook {selectfont}size@update enc@upd ...
<macro> g__hook_begindocument_reversed_tl 
    MT@setup@ 
    MT@glet MT@setup@ @empty __hook_toplevel begindocument __hook_next begindocument 
<macro> __hook_use_once:n 
    ...k_preamble_hook:n {#1}__hook_use_once_set:n {#1}__hook_use_initialized:n {#1}
    __hook_use_once_clear:n {#1}
<macro> __hook package/fontspec/after 
    ...efundefined relax @kernel@before@begindocument UseOneTimeHook {begindocument}
    @kernel@after@begindocument ifdim topskip <1spglo ...
<line 1.9> 
    \begin{document}
? 
zauguin commented 2 years ago

Generally load the luametalatex-microtype package instead of/in addition to/whatever (it loads microtype internally`) to get some hotfixes for better luametalatex support in microtype. It doesn't actually work right now, but that's where these patches will be added.

I'll probably look into loading it automatically after it's working again.

hvoss49 commented 2 years ago

Ah yes, I saw in the git but forgot about it ...

zauguin commented 2 years ago

Let's keep this open until luametalatex-microtype is usable again.

zauguin commented 2 years ago

With the latest LuaMetaTeX version luametalatex-microtype should now work. Also loading microtype now automatically loads luametalatex-microtype, so it should no longer be loaded separately.

(At the time of writing, the needed luametatex update is not yet part if the latest lmtx distribution, so it might take some days before this is commonly usable.)