Texmaker and TeXstudioreverse search with texmaker

Information and discussion about Texmaker, an integrated LaTeX environment for several platforms, and the related TeXstudio
pluton
Posts: 7
Joined: Wed Apr 23, 2008 5:25 pm

reverse search with texmaker

Post by pluton »

Hi alla,

I'm trying to set up the reverse search tool from dvi to the tex source in texmaker
but it does not work (it works well with WinEdt). Any hints?
Thank you,

otherwise, I'm trying to set up texmaker such that when I compile a tex document (F2)
and then open the dvi file (F3), the viewer does not open a new document but up-date
the one which is already opened. In my options- configure texmake, I have :

latex -interaction=nonstopmode %.tex %0 "%N%T"

that i copied from my WinEdt workspace. Whare do I have to look at ?
I'm using TexMaket because WinEdt is not able to handle cyrillic? What about Texniccenter??

Thank you,

Pluton

Recommended reading 2024:

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

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

pluton
Posts: 7
Joined: Wed Apr 23, 2008 5:25 pm

Re: reverse search with texmaker

Post by pluton »

I forgot to mention that for the dvi viewer, here is the command line which is used in texmaker :

"C:/LaTeX/MiKTeX27/Miktex/bin/yap.exe" %.dvi

I have to modify it, I think but I do not know how.

Thank you,

Pluton
User avatar
T3.
Posts: 208
Joined: Fri Mar 14, 2008 12:58 pm

Re: reverse search with texmaker

Post by T3. »

Hi,

To make yap reuse already open window, you need to call it with -1 switch. Copying configuration from WinEdt will likely fail - TeXmaker uses its own substitution syntax - '%' for file name without extension and '@' for line number.

Cheers,

Tomek
pluton
Posts: 7
Joined: Wed Apr 23, 2008 5:25 pm

Re: reverse search with texmaker

Post by pluton »

ok, great!! What about reverse search ? does it work with TexMaker ?

Thanks
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

reverse search with texmaker

Post by localghost »

Supplement the list of command line arguments for your compiler.

Code: Select all

latex --src -interaction=nonstopmode %.tex %0 "%N%T"
Without this additional argument the compiler doesn't write any source specials into the DVI file.


Best regards
Thorsten¹
pluton
Posts: 7
Joined: Wed Apr 23, 2008 5:25 pm

Re: reverse search with texmaker

Post by pluton »

the --src option almost works but instead of going back to the open latex source,
it opens a new instance of TexMaker with an empty file. Am I forgetting something ?

Thank you,

M.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Re: reverse search with texmaker

Post by localghost »

Could be an issue of YaP. Start it and check the settings (View -> Options -> Inverse DVI Search).


Best regards
Thorsten¹
pluton
Posts: 7
Joined: Wed Apr 23, 2008 5:25 pm

Re: reverse search with texmaker

Post by pluton »

but it works well with WinEdt and TexnicCenter. I copied the same command lines (which may be
uncorrect) :

"C:\Program Files\Texmaker\texmaker.exe" " "[Open(|%f|);SelPar(%l,8)]"

The thing is that the inverse search is automatically detected for WinEdt and TexnicCenter
and not for TexMaker and that may be the origin of the problem, dont you think ?

Thank you,
User avatar
T3.
Posts: 208
Joined: Fri Mar 14, 2008 12:58 pm

reverse search with texmaker

Post by T3. »

pluton wrote:but it works well with WinEdt and TexnicCenter. I copied the same command lines (which may be uncorrect)
You can bet it's incorrect. You need to use command switches that are for TeXmaker and not some other editor. Have you looked in the user's manual? It gives the following command line for yap as an example (forward search):

Code: Select all

\"C:/Program Files/MiKTeX 2.5/miktex/bin/yap.exe\" -1 -s @%.tex %.dvi
As for reverve search the following description is given:

Code: Select all

texmaker file [-master] [-line xx]
With the "-master" option, the document will be automatically defined as a "master" document.
With the "-line xx" option, Texmaker will ask you if you want to jump to the xx line after loading the document.
I don't see any option for single instance, so it seems that every time a new window will be opened.

Cheers,

Tomek
pluton
Posts: 7
Joined: Wed Apr 23, 2008 5:25 pm

reverse search with texmaker

Post by pluton »

yep thank you.

Code: Select all

texmaker file [-master] [-line xx]
With the "-master" option, the document will be automatically defined as a "master" document.
With the "-line xx" option, Texmaker will ask you if you want to jump to the xx line after loading the document.
the thing is that I do not understand what they call : Synopsis of the texmaker command

where do i add the mentionned parameters [-master] [-line xx] ???

Thank you,

Pluton
Post Reply