LaTeX forum ⇒ Feature Suggestionsreal-time Preview window...

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

real-time Preview window...

Postby Soroush » Thu Mar 22, 2007 6:14 pm

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 Smile

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

Postby craigim » Mon Apr 02, 2007 10:19 pm

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:

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



  1. Forward Search
  2. >Command line argument
  3. 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:

  1. "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

Postby Soroush » Tue Apr 03, 2007 4:46 pm

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

Postby craigim » Wed Apr 04, 2007 11:35 am

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

Postby Soroush » Wed Apr 04, 2007 3:14 pm

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.


Return to “Feature Suggestions”

Who is online

Users browsing this forum: No registered users and 0 guests