GeneralError When Trying to Show Output

General information and discussion about TeXnicCenter
A Tripolation
Posts: 13
Joined: Tue Oct 19, 2010 11:18 pm

Error When Trying to Show Output

Post by A Tripolation »

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

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Re: Error When Trying to Show Output

Post by frabjous »

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.
A Tripolation
Posts: 13
Joined: Tue Oct 19, 2010 11:18 pm

Re: Error When Trying to Show Output

Post by A Tripolation »

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.
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Re: Error When Trying to Show Output

Post by frabjous »

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
A Tripolation
Posts: 13
Joined: Tue Oct 19, 2010 11:18 pm

Re: Error When Trying to Show Output

Post by A Tripolation »

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?
MartinC
Posts: 153
Joined: Wed Jan 17, 2007 10:09 pm

Re: Error When Trying to Show Output

Post by MartinC »

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)]
A Tripolation
Posts: 13
Joined: Tue Oct 19, 2010 11:18 pm

Re: Error When Trying to Show Output

Post by A Tripolation »

*sigh* I still have that error even when I replace my paths with yours...

Thanks for trying though. I appreciate it.
vaalsta
Posts: 9
Joined: Tue Jul 20, 2010 9:59 am

Re: Error When Trying to Show Output

Post by vaalsta »

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.
MartinC
Posts: 153
Joined: Wed Jan 17, 2007 10:09 pm

Re: Error When Trying to Show Output

Post by MartinC »

Are you sure a dvi file is created? What if you try to open it directly?
A Tripolation
Posts: 13
Joined: Tue Oct 19, 2010 11:18 pm

Error When Trying to Show Output

Post by A Tripolation »

MartinC wrote:Are you sure a dvi file is created? What if you try to open it directly?
DVI? I thought Sumatra was a pdf thingy?

And yes, I make sure to include the 32-bit address in the paths that need them.
Post Reply