/otfdvi

Primary LanguageLua

DVI with OTF to PS (or PDF)

Problem 1

lualatex can produce a DVI file with OpenType files. Standard DVIPS cannot produce a PS file from such a DVI.

Solution 1

This is more a workaround that a solution. The idea is to convert a DVI with OTF fonts to DVI without OTF fonts that dvips can understand

\documentclass{article}     
\usepackage{fontspec}
\begin{document}             
A G
\end{document}
dvilualatex sample2e.tex
./otfdvi.lua --no-auto sample2e.dvi test.dvi
dvips -j1-u test.map -o sample2e.ps test.dvi
ps2pdf sample2e.ps

Dependencies

  • lustache
$ cd ~/texmf/scripts/lua; git clone https://github.com/Olivine-Labs/lustache
  • dvi
$ cd ~/texmf/scripts/lua; git clone https://github.com/dgalcius/dvilua

VTeX Integration

texmf.cnf:

TEXMFLOCAL = $SELFAUTOPARENT/../vtex-dist TEXMFHOME = $SELFAUTOPARENT/texmf-vtex