I am converting a dvi file to a pdf, but in that process my figures are misplaced. I used \FloatBarrier command to fix the figures in dvi, but facing the same problems in pdf. Can any one help?

  • 1
    Try to convert to ps first. – Sigur Dec 16 '13 at 13:20
  • 4
    Exactly how are you coing from dvi to pdf? I know of at least two methods, so more detals would be helpful. And why don't you just work exclusively in PDF? – daleif Dec 16 '13 at 13:28
  • 1
    You need to take care that the paper format is not changed in conversion. E.g. if you use A4 paper size. The default is letter and in the conversion dvi->ps->pdf this might get mixed. See here for details: tex.stackexchange.com/questions/21769/… – Martin H Dec 16 '13 at 13:30
  • What is your OS? On linux, you could try dvips your_file.dvi and then ps2pdf your_file.ps in the terminal. – ppr Dec 16 '13 at 16:24
  • 1
    The pagination shouldn't be changing when converting from .dvi to .pdf --- the problem instead should be that the figures are showing up in the wrong place, which is a different problem. See this: tex.stackexchange.com/questions/2275/… – WillAdams Dec 16 '13 at 16:58

There's a utility called dvipdfm that can do this. It probably came with your TeX distribution. Try this at the command line:

dvipdfm myfile.dvi

This should create a file called myfile.pdf. If you run into trouble, the documentation can be found in http://gaspra.kettering.edu/dvipdfm/.

  • 1
    The documentation can also be found within the TeX distributions. And I would prefer dvipdfmx. Not to forget the way DVI —> PS —> PDF with first dvips and then ps2pdf. – Speravir Mar 15 '14 at 2:18

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