I want to use Helevetica Neue for producing a dvi file. As this means using a standard system (non LaTex) font, this leave LuaTeX as the only option.
I’m simply using something like this:
\photo{/Users/example/Pictures/identité0001.jpg}
This works nice when using XeTex for any output and even with LuaLateX too in pdf mode.
But if I use dvi mode then it fails:
(/usr/share/texlive/texmf-dist/tex/latex/microtype/mt-mvs.cfg
File: mt-mvs.cfg 2006/07/05 v1.1 microtype config. file: Marvosym Euro (RS)
)
\makecvheadpicturebox=\box62
! String contains an invalid utf-8 sequence.
<read 0>
���xxExif
Where of course Exif means the problem is the binary data of the image.
The man page is maybe spotting the reason why:
All LuaTeX text input and output is considered to be Unicode text.
In DVI mode, luaTeX can be used as a complete replacement for the TeX engine.
In PDF mode, luaTeX can natively handle the PDF, JPG, JBIG2, and PNG graphics formats. luaTeX cannot include PostScript or Encapsulated PostScript (EPS) graphics files; first convert them to PDF using epstopdf (1).
Which hints it doesn’t supports the image format.
If yes, what image format I should use? and how to convert the picture to that image?
Or is there a way to convert directly Extended dvi (.xdv
) files produced by XeLaTex to plain dvi files?
.pdf
afterwards the image will re-appear.\usepackage[demo]{graphicx}
? Then the images are not actually included anddvilualatex
doesn't complain. See also tex.stackexchange.com/questions/124049/… for setting thios option if the class loads the package./photo
provided by moderncv.demo
option. The only use case would be if you want other people to create a pdf from a dvi file that you provide - but that seems a bit of an edge case.