General ⇒ Error When Trying to Show Output
-
- Posts: 13
- Joined: Tue Oct 19, 2010 11:18 pm
Error When Trying to Show Output
So I have TeXnic Center installed on my computer. I'm trying to display this simple code:
\documentclass{article}
\begin{document}
Work for the love of God.
\end{document}
Yet, every time I press View Output, it gives me this error:
C:\PROGRAM FILES (X86)\MIKTEX2.8(COMPLETE)\MIKTEX\BIN\YAP.EXE
Cannot execute the command.
Is there any obvious fix to this? Have I left out any important details?
Thanks for the help,
Trip
\documentclass{article}
\begin{document}
Work for the love of God.
\end{document}
Yet, every time I press View Output, it gives me this error:
C:\PROGRAM FILES (X86)\MIKTEX2.8(COMPLETE)\MIKTEX\BIN\YAP.EXE
Cannot execute the command.
Is there any obvious fix to this? Have I left out any important details?
Thanks for the help,
Trip
NEW: TikZ book now 40% off at Amazon.com for a short time.
Re: Error When Trying to Show Output
Yap is just a dvi viewer. Most likely a dvi file is being created, but you have no way of viewing it. Try using a Latex => PDF output routine instead.
-
- Posts: 13
- Joined: Tue Oct 19, 2010 11:18 pm
Re: Error When Trying to Show Output
Hmmm... I thought I was... What are the steps I need to take?
I used to have the Adobe problem. And then I reconfigured the wizard and got this instead. Don't know if that helps or not.
I used to have the Adobe problem. And then I reconfigured the wizard and got this instead. Don't know if that helps or not.
Re: Error When Trying to Show Output
I would use PDF output, and use SumatraPDF for viewing the file.
SumatraPDF can be found here:
http://blog.kowalczyk.info/software/sum ... eader.html
Instructions for using it with TeXnicCenter (PDF):
http://www.texniccenter.org/resources/t ... sumatra-en
And see this thread:
http://www.latex-community.org/forum/vi ... =31&t=8717
SumatraPDF can be found here:
http://blog.kowalczyk.info/software/sum ... eader.html
Instructions for using it with TeXnicCenter (PDF):
http://www.texniccenter.org/resources/t ... sumatra-en
And see this thread:
http://www.latex-community.org/forum/vi ... =31&t=8717
-
- Posts: 13
- Joined: Tue Oct 19, 2010 11:18 pm
Re: Error When Trying to Show Output
I installed Sumatra and followed the instructions. But the error I get now is:
[ForwardSearch("%bm.pdf","%Wc"",%|,0,0,1)]
I assume I entered the Forward Search Path incorrectly. Any suggestions?
[ForwardSearch("%bm.pdf","%Wc"",%|,0,0,1)]
I assume I entered the Forward Search Path incorrectly. Any suggestions?
Re: Error When Trying to Show Output
The correct setting for YAP as the viewer if you use Miktex 2.8 would be:
executable path:
C:\PROGRA~1\MIKTEX~1.9\miktex\bin\yap.exe
command line argument:
-1 "%bm.dvi"
For Sumatrapdf it would be:
executable path:
C:\Program Files\SumatraPDF\SumatraPDF.exe -inverse-search "\"C:\Program Files\TeXnicCenter\TeXnicCenter.exe\" /ddecmd \"[goto('%f','%l')]\""
DDE command:
[ForwardSearch("%bm.pdf","%Wc",%l,0,0,1)]
executable path:
C:\PROGRA~1\MIKTEX~1.9\miktex\bin\yap.exe
command line argument:
-1 "%bm.dvi"
For Sumatrapdf it would be:
executable path:
C:\Program Files\SumatraPDF\SumatraPDF.exe -inverse-search "\"C:\Program Files\TeXnicCenter\TeXnicCenter.exe\" /ddecmd \"[goto('%f','%l')]\""
DDE command:
[ForwardSearch("%bm.pdf","%Wc",%l,0,0,1)]
-
- Posts: 13
- Joined: Tue Oct 19, 2010 11:18 pm
Re: Error When Trying to Show Output
*sigh* I still have that error even when I replace my paths with yours...
Thanks for trying though. I appreciate it.
Thanks for trying though. I appreciate it.
Re: Error When Trying to Show Output
From your initial post it looks like you have 64bit windows?
Since sumatra and texniccenter will both be 32 bit you should try:
C:\Program Files (x86)\SumatraPDF\SumatraPDF.exe -inverse-search "\"C:\Program Files (x86)\TeXnicCenter\TeXnicCenter.exe\" /ddecmd \"[goto('%f','%l')]\""
Or something similar.
Since sumatra and texniccenter will both be 32 bit you should try:
C:\Program Files (x86)\SumatraPDF\SumatraPDF.exe -inverse-search "\"C:\Program Files (x86)\TeXnicCenter\TeXnicCenter.exe\" /ddecmd \"[goto('%f','%l')]\""
Or something similar.
Re: Error When Trying to Show Output
Are you sure a dvi file is created? What if you try to open it directly?
-
- Posts: 13
- Joined: Tue Oct 19, 2010 11:18 pm
Error When Trying to Show Output
DVI? I thought Sumatra was a pdf thingy?MartinC wrote:Are you sure a dvi file is created? What if you try to open it directly?
And yes, I make sure to include the 32-bit address in the paths that need them.