I might be asking something stupid, but why does pushing mwe.tex
containing
\documentclass{article}
\pagestyle{empty}
\begin{document}
Text
\end{document}
through dvilualatex mwe && dvips mwe
lead to the output
both in mwe.dvi
and mwe.ps
?
I thought that dvilualatex
is there for generating a DVI file via luatex
instead of latex
, isn't it?
By the way, dvips
prints a strange font-not-found error message to the console although the font file exists:
$ dvips mwe && ls -la /usr/share/texmf/fonts/opentype/public/lm/lmroman10-regular.otf
This is dvips(k) 2021.1 (TeX Live 2022/dev) Copyright 2021 Radical Eye Software (www.radicaleye.com)
' LuaTeX output 2022.03.07:1640' -> mwe.ps
dvips: Font [/usr/share/texmf/fonts/opentype/public/lm/lmroman10-regular.otf] not found; using cmr10
</usr/share/texlive/texmf-dist/fonts/pk/ljfour/public/cm/dpi600/cmr10.pk>
dvips: Checksum mismatch in font [/usr/share/texmf/fonts/opentype/public/lm/lmroman10-regular.otf]
</usr/share/texlive/texmf-dist/dvips/base/tex.pro>
</usr/share/texlive/texmf-dist/dvips/l3backend/l3backend-dvips.pro>
</usr/share/texlive/texmf-dist/dvips/base/special.pro>. [1]
-rw-r--r-- 1 root root 111536 7. Okt 2009 /usr/share/texmf/fonts/opentype/public/lm/lmroman10-regular.otf
We use
$ dvilualatex --version
This is LuaTeX, Version 1.14.0 (TeX Live 2022/dev/Debian)
$ dvips --version
This is dvips(k) 2021.1 (TeX Live 2022/dev) Copyright 2021 Radical Eye Software
kpathsea version 6.3.4/dev
Best Answer
While it is possible to do some things it is more or less true that dviluatex if using OpenType fonts will write a dvi file that no dvi driver can use. (dvipdfmx has some support for this in recent releases, but that doesn't help if the aim is to get PostScript).
In the dvips output that you show, you see it failing on the Unicode OpenType Latin Modern, substituting its error fallback cmr10 pk bitmaps and hoping for the best.....
If you use a 7 or 8 bit classic Tex font, the resulting dvi file is usable eg
has a clean run in dvilualatex
and dvips is happy
and the resulting PostScript uses scalable type 1 Latin Modern: