hi, i am using texniccenter and miktex with yap for dvi viewing on a windows pc. when i try to build Latex=> DVI and view (or just view) I get the following message.
MiKTeX Problem Report
Message: Windows API error 2: The system cannot find the file specified.
note: yap is located in the Miktex 2.7\miktex\bin subfolder
If I have already started yap, the display updates in spite of the message, but if yap is not started nothing happens. This always worked perfectly out of the box with miktex 2.6 and the earlier texnic center, but now does not on my new compute3r with the newer versions. Can anyone help?
Here's the entire output message.
MiKTeX Problem Report
Message: Windows API error 2: The system cannot find the file specified.
Data: C:\Documents.dvi
Source: C:\work3\miktex-2.7\Libraries\MiKTeX\Core\win\winFile.cpp
Line: 494
MiKTeX: 2.7
OS: Microsoft Windows XP Professional Service Pack 3 (Build 2600)
SystemAdmin: yes
PowerUser: no
SharedSetup: yes
BinDir: C:\Program Files\MiKTeX 2.7\miktex\bin
Root0: C:\Documents and Settings\Bruce\Application Data\MiKTeX\2.7
Root1: C:\Documents and Settings\Bruce\Local Settings\Application Data\MiKTeX\2.7
Root2: C:\Documents and Settings\All Users\Application Data\MiKTeX\2.7
Root3: C:\Program Files\MiKTeX 2.7
Install: C:\Program Files\MiKTeX 2.7
UserConfig: C:\Documents and Settings\Bruce\Application Data\MiKTeX\2.7
UserData: C:\Documents and Settings\Bruce\Local Settings\Application Data\MiKTeX\2.7
CommonConfig: C:\Documents and Settings\All Users\Application Data\MiKTeX\2.7
CommonData: C:\Documents and Settings\All Users\Application Data\MiKTeX\2.7
General ⇒ How to set path to dvi viewer in texnic center
-
- Posts: 4
- Joined: Sun Jun 15, 2008 9:12 pm
- Stefan Kottwitz
- Site Admin
- Posts: 10290
- Joined: Mon Mar 10, 2008 9:44 pm
Re: How to set path to dvi viewer in texnic center
Hi,
could you post your logfile as attachment? Maybe we would find the reason by examing the log.
Perhaps no dvi file was created because of an error or a pdftex option.
Stefan
could you post your logfile as attachment? Maybe we would find the reason by examing the log.
Perhaps no dvi file was created because of an error or a pdftex option.
Stefan
LaTeX.org admin
-
- Posts: 4
- Joined: Sun Jun 15, 2008 9:12 pm
Re: How to set path to dvi viewer in texnic center
Here is the log file.
the dvi file created by the latex is there, but when i invoke it with the control-shift-f5 or the icon i get that cryptic message.
does texsniccenter recognize directories with spaces, like Miktex 2.7? the old miktex did not have that space.
thanks a lot.
bruce
the dvi file created by the latex is there, but when i invoke it with the control-shift-f5 or the icon i get that cryptic message.
does texsniccenter recognize directories with spaces, like Miktex 2.7? the old miktex did not have that space.
thanks a lot.
bruce
- Attachments
-
- InventoryGames23a.log
- (17.17 KiB) Downloaded 480 times
- localghost
- Site Moderator
- Posts: 9201
- Joined: Fri Feb 02, 2007 12:06 pm
How to set path to dvi viewer in texnic center
Studying the log file, noticed a section with some error messages.
You can't compile your source code with latex when using graphics files in JPG format. latex only accepts EPS format. So, first try to compile with pdflatex and see what happens.
Best regards and welcome to the board
Thorsten¹
Code: Select all
[15]! LaTeX Error: Cannot determine size of graphic in holdingcost4item.jpg (no BoundingBox).See the LaTeX manual or LaTeX Companion for explanation.Type H <return> for immediate help....l.1153 }Try typing <return> to proceed.If that doesn't work, type X <return> to quit.File: holdingcost4item.jpg Graphic file (type eps)<holdingcost4item.jpg>! LaTeX Error: Cannot determine size of graphic in holdingcost8item.jpg (no BoundingBox).See the LaTeX manual or LaTeX Companion for explanation.Type H <return> for immediate help....l.1158 }Try typing <return> to proceed.If that doesn't work, type X <return> to quit.File: holdingcost8item.jpg Graphic file (type eps)<holdingcost8item.jpg>! LaTeX Error: Cannot determine size of graphic in individual4item.jpg (no BoundingBox).See the LaTeX manual or LaTeX Companion for explanation.Type H <return> for immediate help....l.1182 }\subfigure[8 products]{
Blank spaces have to be avoided in the complete path and the name of a graphics file. the path to the MiKTeX executables is not affected.just_bruce wrote:[...] does texsniccenter recognize directories with spaces, like Miktex 2.7? the old miktex did not have that space. [...]
Best regards and welcome to the board
Thorsten¹
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
Board Rules
Avoidable Mistakes[/size]
¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
-
- Posts: 4
- Joined: Sun Jun 15, 2008 9:12 pm
Re: How to set path to dvi viewer in texnic center
yes, i know how to fix the graphics. it builds and views correctly in pdf. (of course no source specials). i have it set up so i can compile in both dvi and jpg, (2 authors with different tastes) but the figs dont come thru on dvi the right size. but i need to be able to pop back to the source.
The question is, what is the correct syntax in texniccenter for using miktex yap as dvi viewer. I have the correct program location and i think the correct command line but i get the message
Windows API error 2: The system cannot find the file specified.
C:\Documents.dvi
even tho the dvi file is where the tex source is, the yap is in the right place, and i can display the file correctly with yap by running it myself first. even the source specials work after that, once i start yap by hand. in the older texnic center the view button (and build-view) started up yap with the correct file, and source specials. so it is just the inconvenience of starting it.
great forum for this old latex user.
bruce
The question is, what is the correct syntax in texniccenter for using miktex yap as dvi viewer. I have the correct program location and i think the correct command line but i get the message
Windows API error 2: The system cannot find the file specified.
C:\Documents.dvi
even tho the dvi file is where the tex source is, the yap is in the right place, and i can display the file correctly with yap by running it myself first. even the source specials work after that, once i start yap by hand. in the older texnic center the view button (and build-view) started up yap with the correct file, and source specials. so it is just the inconvenience of starting it.
great forum for this old latex user.
bruce