Feature Suggestionsreal-time Preview window...

Suggestions and discussions for new TeXnicCenter features
Post Reply
Soroush
Posts: 21
Joined: Thu Feb 01, 2007 5:33 pm

real-time Preview window...

Post by Soroush »

Hi all and TeXnicCenter developers;
I think it would be nice to have a real-time preview window of what is being typed. I occasionally find that I forget my line of thought, just because I'm distracted by \this and \that! So I have to compile and view in Yap (where the inverse search doesn't work for some reason), then come back and try to see what it was that I wanted to write.

Is it just me or do you find yourself compiling all the time to see what it was you were writing?

Thanks :)

Recommended reading 2024:

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

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

craigim
Posts: 28
Joined: Sun Jan 14, 2007 6:19 pm

real-time Preview window...

Post by craigim »

There are other WYSIWYG editors out there. I just reflexively hit Ctrl-F5 whenever I need to see the pretty version.

As for reverse search, you've got to have both YAP and TNC configured. In my LaTeX=>DVI profile, under the viewer tab, under Forward search i've got:

Code: Select all

View project's output
>Command line argument
Command: -1 "%bm.dvi"

Code: Select all

Forward Search
>Command line argument
Command: -1 -s %l"%Wc" "%bm.dvi"
In YAP, under View|Options, on the Inverse DVI Search tab TeXnicCenter is autodetected. If yours isn't, the command line that it gives is:

Code: Select all

"C:\Program Files\TeXnicCenter\TEXCNTR.EXE" /ddecmd "[goto('%f', '%l')]"
Hope this helps for the reverse search.

As for the autoviewer, I vote for the status quo.
Soroush
Posts: 21
Joined: Thu Feb 01, 2007 5:33 pm

Re: real-time Preview window...

Post by Soroush »

Thank you for your comment craigim!
I went through both YAP and TeXnicCenter and made sure that I have the same commands as you. (copy+pasted them just to be sure!) The only difference between the two is the path to TeXnicCenter is different on my machine. (C:\Program Files\Latex\TeXnicCenter\TEXCNTR.EXE)
Forward search works as before, but inverse search still doesn't. When I double click a point in the DVI file, nothing happens. However, I have these two observations:
1. If TeXnicCenter is closed, and I double click a point in YAP, it will open TeXnicCenter, but won't go the point in the file.
2. If I click a point outside of the file (the gray areas on either side of the dvi file), it will give me an error (as expected).

So I'm very surprised by this behaviour! Any suggestions? Do I have to install anything extra so that the 'ddecmd' part of the command works?

Thank you.
craigim
Posts: 28
Joined: Sun Jan 14, 2007 6:19 pm

real-time Preview window...

Post by craigim »

Hmmm... as I said, that command line was the one that was auto-entered in YAP, so I'm really not sure what it actually means, although I can make some educated guesses. The first part obviously specifies where your copy of TNC resides on your hard drive. The /ddecmd flag tells TNC that it's about to receive a dynamic data exchange command, that command being goto(filename, line number). If you search for 'dde' in the TNC helpfile, all of the avaliable dde commands are listed, so you might explore that.

Did you copy and paste the line into the 'command line' box, or did you open the 'new...' dialog and enter the separate bits there? I cannot guarantee that I got all the quotation marks and such when I copied and pasted, so you should also try (if you haven't already) putting the individual bits in and letting YAP build the proper commandline.

good luck!
Soroush
Posts: 21
Joined: Thu Feb 01, 2007 5:33 pm

real-time Preview window...

Post by Soroush »

Craigim,
I tried your suggestions and made sure everything is correct. I also tried to access the DDE commands manually, which I've written about in this post.
Post Reply