MiKTeX and proTeXt ⇒ Problem with DVI output
Problem with DVI output
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
Re: Problem with DVI output
You probably have TeXlive installed too. Does it work if MiKTeX doesn't?
Does the log file show any errors or missing fonts or anything?
Is it possible the problem is only with your DVI viewer, or the fonts it uses? (Remember DVIs don't have the fonts embedded the way PDFs do.) What are you using the view the DVIs? Evince?
Re: Problem with DVI output
I checked the log file and I noticed the following message:
LaTeX Font Info: Font shape `OT1/ptm/bx/n' in size <6> not available
(Font) Font shape `OT1/ptm/b/n' tried instead on input line 1095.
which is repeated for Italic and different font sizes. Maybe this font is missing, but I couldn't find out how to install it and still I cannot understand how is that possible that till dec 21, it could show the fonts properly and now it's unable to do it!
Thanks in advance for your reply.
Problem with DVI output
OK, I've very confused. MikTeX is a LaTeX distribution for Windows. To my knowledge (and my best efforts at searching packages.ubuntu.com) There are no MikTeX packages in Ubuntu's package repositories. The only part of MikTeX that has been ported to Linux is the "MikTeX tools", which provides nothing but an alternative to the pdftex binary which auto-installs packages on the fly. I assumed you were talking about that. I'm not very familiar with it, but as far as I know it cannot be used without another LaTeX distribution installed to provide the base LaTeX packages. Every Linux distribution I'm aware of has TeXlive in its package repositories instead. But neither TeXlive nor MikTeX have a current version number anywhere near 1.9.9, nor have they for years. Please check what software you're actually talking about. Running "latex -v" from a terminal should tell you what version of latex you're using.vsb1357 wrote:I'm using Miktex 1.9.9 and I just use the 'Latex' and 'pdfLatex' options from the toolbar to compile the same tex file and dvi (viewed with Document Viewer 2.30.3) seems incomprehensible but pdf file is OK. I used Ubuntu's Synaptic Packet manager to install Miktex so I do not know if I have Texlive too (but I guess most probably not).
I checked the log file and I noticed the following message:
LaTeX Font Info: Font shape `OT1/ptm/bx/n' in size <6> not available
(Font) Font shape `OT1/ptm/b/n' tried instead on input line 1095.
And what toolbar are you talking about? MikTeX is not an editor and does not have toolbars. What editor are you actually using?
The warning messages you gave have to do with the Times font. Are you using a package that calls a Times font? See if things are better if you remove it.
But could you try with a new document and see if you have the same problem. Just create a minimal sample document. If you still have that problem, upload it, the resulting of compiling it, and your log file as attachments here.
"Document Viewer" and "evince" are the same thing. Try viewing the dvi with xdvi and see if it looks better there.
P.S. Do you perhaps mean "Texmaker" (an editor, the installation of which would pull in TeXlive as a dependency)? I think that might be close to version 1.9.9 in the Ubuntu repos?
P.P.S. OK, I tried some dvi's with the Times font in evince, and evince does seem to have trouble with dvi files that don't use the Computer Modern fonts. But the dvi's look fine in xdvi and also work fine to convert to ps or pdf and look fine even in evince when they do. If that's your issue, I wouldn't worry about it.
Re: Problem with DVI output
I use IEEETran document class. While I was trying to make a new test file, I understood that if I change the document class to 'article' and don't use any package, then dvi file is OK, but if I use 'times' package (as used by default in IEEE Transactions template) then again the dvi output is corrupt. But the bad thing is that when I use \documentclass[12pt,draft,onecolumn]{IEEEtran} then even when I do not use any packages, then the dvi output is still corrupt.
I have attached the sample tex file with dvi, pdf, log and also IEEETran package, in case you don't have it and want to compile the file.
Thanks again for the help.
P.S. I couldn't attach the IEEEtran files cause they were bigger then 256K, but here is a link: http://www.ctan.org/tex-archive/macros/ ... /IEEEtran/
- Attachments
-
- test1.zip
- Test1 tex and its outputs compiled with Texmaker under Ubuntu
- (34.04 KiB) Downloaded 279 times
Problem with DVI output
Texmaker does not compile things. It is just an editor. It calls LaTeX and LaTeX compiles.Test1 tex and its outputs compiled with Texmaker under Ubuntu
Anyway, there is nothing wrong with that .dvi file. The problem is just your viewer. It appears to be a known issue with evince ("Document Viewer") (see also here).
Try viewing it with xdvi, or simply converting it to PDF or PS first, instead.
(Really, very few people use dvi as anything but an intermediate format these days, so this probably isn't high on the evince bug priority list.)
(By the way, there is some obsolete code in your sample. See l2tabu. That's not the cause of your problems, though.)
Re: Problem with DVI output
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Problem with DVI output
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10