ljvblfz / otfdvi

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About


Languages

Language:Lua 73.7%Language:TeX 22.0%Language:PostScript 4.0%Language:HTML 0.2%Language:Prolog 0.1%Language:CSS 0.1%Language:Ruby 0.0%Language:Makefile 0.0%Language:Shell 0.0%