[Tex/LaTex] How to get the .dvi file from Latex in addition to or instead of a pdf


What is the command and parameters that I would type in to generate and save a dvi output from my latex file? In other word I want the dvi file instead of/ or in addition to the pdf file. I use TexWorks. What folder would I run this command from? I am not an experienced Latex user. Will the command and parameters be different if I am using TexWorks to run a LuaLatex vs a pdfLatex?
I also use Windows 7 64bit operating system.

I am trying to get an image of tikz graphics I have produced with braille labels (using a systems font) that is SVG/JPEG/GIF so that I can import it into Tiger embosser software. The procedure that I was told to use by my boss is to take a screenshot of the pdf, copy and paste that into word, and then paste from word into the Tiger Software suite. So far, when I copy and paste a screenshot of the graphic the braille labels are misread. One dot is seen as 2 or 3 dots, which I assume is because of the difference in resolution. Then I have to spend time erasing all the labels and redoing them in the printer software suite, which is like paint, but worse.

I read that one can convert the dvi file to image file types like jpeg etc here. I am also trying to get an image file so that I can set the resolution of the image in another software like Gimp. I think I need a resolution of 20 dpi because the image is to be "printed" with an embosser printer that has that resolution. The file type that the printer uses as an input is a .prn.

Ultimately, I am trying to convince the staff here at Disability services that working in Latex would be beneficial, but it is a hard sell since no one else wants to learn it. I think it would make a difference if I could show them that it could save them time and make better graphics.

Best Answer

To answer the question, though it turned out, that the real aim is to produce raster images for a special Braille letter printer.

In general to produce a DVI file one has to compile the TeX source <filename>.tex simply with LaTeX …

latex <filename>

or for LuaLaTeX with the DVI compiler version …

dvilualatex <filename>

Depending on the TEX source contents there may be more options necessary (for example --src-specials).

In TeXworks according typeset profiles are not existant, though, and would have to be added manually.

The produced DVI can then further converted on different possible ways into PDF format. It will by default not be deleted automatically, so unless you let later run a cleaning routine you will preserve both DVI and PDF files.

Possible conversion ways for DVI to PDF:

  • produce a Postscript file with dvips, then convert this PS file to PDF with ps2pdf
  • direct conversion with dvipdfm or dvipdfmx
Related Question