LaTeX forum ⇒ Texmaker and TeXstudioYAP Reverse Search opens new Instance on portable MiKTeX

Information and discussion about Texmaker, an integrated LaTeX environment for several platforms, and the related TeXstudio
subhash
Posts: 5
Joined: Sat Sep 22, 2012 11:18 am

YAP Reverse Search opens new Instance on portable MiKTeX

Postby subhash » Sat Sep 22, 2012 11:47 am

I want to do forwards and reverse search using TeXmaker and YAP as DVI viewer.

I am executing LaTeX with these parameters.
  1. latex --src -interaction=nonstopmode %.tex %0 "%N%T"

Then opening DVI in Yap with these.
  1. yap.exe -1 -s @%.tex %.dvi


Now when I am double clicking on DVI view in Yap to revere search the line in .tex file (YAP reverse search is configured with TeXmaker with arguments "%f" -line %l). TeXmaker should go to the reverse searched line in already opened .tex file, instead of doing so, TeXmaker is opening a new instance of the same file.

Please suggest me what should be done to fix this. I know TeXmaker does not allow multiple instances, but somehow it is haopending so.

I am using TeXmaker 3.5 with MiKTeX 2.9 portable on Windows. (Note: MiKTeX path variables are all properly set in environment, it should not be any problem because of portable MiKTeX.)

I have tried to contact over TeXmaker issue tracker, but surprisingly TeXmaker authors(s) are deleting the post without even going through properly, only stating that "Texmaker create only one instance".
Last edited by subhash on Sun Sep 23, 2012 12:48 pm, edited 1 time in total.

Tags:

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

Postby localghost » Sat Sep 22, 2012 12:01 pm

Is there any good reason why you want to use this in YAP instead of an equivalent feature of TeXmaker's internal PDF viewer via SyncTeX. The DVI format is only an intermediate file format and not supposed to be viewed.


Best regards and welcome to the board
Thorsten
LaTeX Community Moderator
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes


¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1

subhash
Posts: 5
Joined: Sat Sep 22, 2012 11:18 am

Postby subhash » Sat Sep 22, 2012 12:09 pm

Firstly I have to include .eps and .ps file images in latex, Pdflatex fail to do so. Secondly DVI view using YAP is very fast, it almost renders instantly. While writing articles using multiple images (.eps and .ps) it becomes considerable fast to use dvi view. I only use DVI view while writing Tex and fast rendering, after finalizing anyways I have to create PDF.

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

Postby localghost » Sat Sep 22, 2012 12:18 pm

subhash wrote:Firstly I have to include .eps and .ps file images in latex, Pdflatex fail to do so. […]

The Perl script epstopdf converts (E)PS files easily to PDF. There is the epstopdf package which does this "on the fly" (by calling the script in the background). A free Perl interpreter for Windows is Strawberry Perl. It will also need Ghostscript installed, which is responsible for the actual conversion.
subhash wrote:[…] Secondly DVI view using YAP is very fast, it almost renders instantly. […]

SyncTeX is equally fast.
LaTeX Community Moderator
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes


¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1

subhash
Posts: 5
Joined: Sat Sep 22, 2012 11:18 am

Postby subhash » Sat Sep 22, 2012 1:09 pm

Thanks for the reply again.

I'm aware of the epstopdf package and it can be used to convert EPS to PDF on the fly during compilation. There are few problems with this approach.

  1. Although EPS file works, PS graphics files are not by default converted to PDF on the fly (at least I couldn't figure out. If you can help me in this then it will be great), which I see that I had to manually change extension PS to EPS before compilation.

  2. Suppose I have figure "image.eps", while using \includegraphics{image} it will convert to "image-eps-converted-to.pdf" on the fly, from next compilation it will take the file "fig-eps-converted-to.pdf", this saves compilation time without re-converting EPS to PDF, but the problem is that, if I modify the "image.eps" file, it will still load the old "fig-eps-converted-to.pdf". To reload the new "image.eps" file I have to manually delete the "fig-eps-converted-to.pdf" file. If I force to convert EPS to PDF at each compilation, then it will be slow. This is where I am preferring DVI view over PDF while doing repeated compilation during writing Tex and my images are PES or PS. Otherwise I too prefer PDFLaTeX in every sense.

subhash
Posts: 5
Joined: Sat Sep 22, 2012 11:18 am

Postby subhash » Sun Sep 23, 2012 5:19 pm

Can please anybody help me with my original question?? Lets take it, I need to use DVI view in Yap and then how to resolve the 2nd instance problem of Texmaker.

subhash wrote:I want to do forwards and reverse search using TeXmaker and YAP as DVI viewer.

I am executing LaTeX with these parameters.
  1. latex --src -interaction=nonstopmode %.tex %0 "%N%T"

Then opening DVI in Yap with these.
  1. yap.exe -1 -s @%.tex %.dvi


Now when I am double clicking on DVI view in Yap to revere search the line in .tex file (YAP reverse search is configured with TeXmaker with arguments "%f" -line %l). TeXmaker should go to the reverse searched line in already opened .tex file, instead of doing so, TeXmaker is opening a new instance of the same file.

Please suggest me what should be done to fix this. I know TeXmaker does not allow multiple instances, but somehow it is haopending so.

I am using TeXmaker 3.5 with MiKTeX 2.9 portable on Windows. (Note: MiKTeX path variables are all properly set in environment, it should not be any problem because of portable MiKTeX.)

I have tried to contact over TeXmaker issue tracker, but surprisingly TeXmaker authors(s) are deleting the post without even going through properly, only stating that "Texmaker create only one instance".

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

Postby localghost » Sun Sep 23, 2012 6:46 pm

I'd still favour to use PDFLaTeX. So, what about producing your images directly as PDF? Does the software you are using to generate them support export to this format?
LaTeX Community Moderator
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes


¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1

benibela
Posts: 97
Joined: Thu Aug 09, 2007 8:13 pm

Postby benibela » Thu Sep 27, 2012 5:11 pm

Well, here is the problem with YAP:

  1. Texmaker creates a file in the default temp directory to mark it as running

  2. YAP is started and changes the default temp directory to the MikTeX temp directory

  3. Texmaker is started and checks the temp directory for the marking file. But can't find it, since the file is in the system temp directory and it is now checking the MiKTeX temp directory.

subhash
Posts: 5
Joined: Sat Sep 22, 2012 11:18 am

Postby subhash » Sun Oct 14, 2012 11:32 am

Thanks a lot for your reply. Now I fixed it. What I did I changed the tmp directories of texmaker to miktex tmp directory. I start texmaker via a .cmd file and changed the temp paths set in environment to the miktex temp directory. Now it is working fine as required. Thanks again.


Return to “Texmaker and TeXstudio”

Who is online

Users browsing this forum: No registered users and 2 guests