GeneralTeXnicCenter creates corrupt dvi-file?

General information and discussion about TeXnicCenter
Post Reply
atler
Posts: 9
Joined: Thu Jul 05, 2007 10:40 am

TeXnicCenter creates corrupt dvi-file?

Post by atler »

Hi,

I have the following problem:

When I run Build Output with my LaTeX=>DVI profile I get no error messages, and a new dvi file is generated, so everything seems normal so far. However, when I try to open the dvi file only a blank page is shown by Yap. When I try to shut down Yap I get the message "This program does not respond". This occurs even if I try to open the dvi file manually instead of choosing "Build and view output".

There is no problem with opening other DVI files. My Yap version is 2.5.2466

Any help is much appreciated.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
localghost
Site Moderator
Posts: 9201
Joined: Fri Feb 02, 2007 12:06 pm

TeXnicCenter creates corrupt dvi-file?

Post by localghost »

That's not a problem related to TeXnicCenter. First of all, try to convert the DVI file to PS or use the build profile "LaTeX => PS" and take a look a the result.

I guess that there is an error in your source code, even if the compiler doesn't detect any in the command syntax. This error leads to a corrupt file. You could post the source code (if not too long) here or reduce it to a minimum working example.
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes[/size]

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
atler
Posts: 9
Joined: Thu Jul 05, 2007 10:40 am

Re: TeXnicCenter creates corrupt dvi-file?

Post by atler »

Thanks for your answer, localghost. It seems you are right about the source code - the problem disappears when I remove the following piece of code:

\begin{figure}
\begin{center}
\includegraphics[width=1\textwidth]
{myFigure.eps}
\end{center}
\end{figure}

With this code included I get the error message "DDE connection could not be established. Data:16394". There is no problem with opening myFigure.eps directly in Ghostview.

Using the build profile "LaTeX=>PS" works well even when the above code is included.
atler
Posts: 9
Joined: Thu Jul 05, 2007 10:40 am

Re: TeXnicCenter creates corrupt dvi-file?

Post by atler »

I have now done some more testing to find the problem.

On the computer where the problem occurs (computer A) I have GSview version 4.8. It is unregistered, which means that a nag-window pops up every time I open GSview.

On a different computer (computer B) I have GSview version 2.1, and there is no nag window.

The dvi file created on computer A can not be viewed on computer A; when I scroll to the place where the figure should go only a blank page is shown, and from that moment Yap does not respond.

If I copy the dvi file generated on computer A to computer B then there is no problem with viewing the file.

To me it seems likely that the problem is due to the nag window occuring with GSview version 4.8. Could this be correct? I want to be fairly certain before I decide to register (and pay) for GSview.
User avatar
pumpkinegan
Posts: 91
Joined: Thu May 03, 2007 10:29 pm

Re: TeXnicCenter creates corrupt dvi-file?

Post by pumpkinegan »

I would be suspicious of the eps file. How or when was it created? If you open it with a notepad what is the first line? It may be outdated.
atler
Posts: 9
Joined: Thu Jul 05, 2007 10:40 am

Re: TeXnicCenter creates corrupt dvi-file?

Post by atler »

Thanks for your suggestion, pumpkinegan.

To check your suggestion I just created a new eps file with Adobe Acrobat Professional. With this new file there were no problems :)

However, I do not understand why it worked. Before my initial posting here I tried two different (old) eps files, and both gave the same problem. The initial segment of the files is as follows:

New file, with which it works:

%!PS-Adobe-3.0 EPSF-3.0
%%Title: (Visio-myFigure.vsd)
%%Version: 1 4
%%Creator: Adobe Acrobat 7.0
%%CreationDate: 16:17:58 08/16/07

Old file #1, with which the problem occurs (Old file #2 is similar):

%!PS-Adobe-3.0 EPSF-3.0
%%Title: (Visio-compositionTrouble.vsd)
%%Version: 1 4
%%Creator: Adobe Acrobat 7.0
%%CreationDate: 16:17:49 09/07/06

It seems strange to me that one of these is outdated but not the other. However, it’s good to see that at least it works with a fresh eps file. I guess I will have to make new eps-files for all my documents :( .
Post Reply