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.

  • 1
    latex myfile will produce myfile.dvi. run the command from whichever directory myfile.tex resides. pdflatex does not produce a dvi file
    – cmhughes
    Feb 28 '14 at 19:34
  • If you want to use the LuaTeX engine, you can run dvilualatex myfile Feb 28 '14 at 19:37
  • why do you want a dvi file? Feb 28 '14 at 20:23
  • @DavidCarlisle pstricks for example only works through the dvi->ps route
    – Markus
    Feb 28 '14 at 20:57
  • @Markus yes but that's why I asked eg for that it is probably better tested to use xetex than dviluatex Feb 28 '14 at 21:00

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

While it is possible to go .tex --> .dvi --> .pdf, modern tools (pdflatex and its ilk) generate PDF directly. And there are several (not so) subtle differences between regular latex and the newer tools. So be careful.

What do you want the DVI file for in the first place?

  • To your re-question: See edited question of OP: “I read that one can convert the dvi file to image file types like jpeg etc …”. See also my comment below question.
    – Speravir
    Mar 4 '14 at 2:13
  • OK, but a PDF can also be converted to a plethora of formats using ghostscript, and probably also using Adobe's tools (at the end of the day, somewhere PDF is translated into a raster format at least for printing or display).
    – vonbrand
    Mar 4 '14 at 2:28
  • Yes, I was writing this in my comment below OP’s question …
    – Speravir
    Mar 4 '14 at 3:39
  • Texstudio is too slow for a 400-page book. I was told that making a DVI is faster than PDF, so I want to preview a DVI instead. How do I do that in Texstudio. Now it is previewing a PDF.
    – Echeban
    Feb 21 '21 at 14:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.