LaTeX forum ⇒ GeneralTemporary folder and inverse search not working

General information and discussion about TeXnicCenter
eggsterino
Posts: 1
Joined: Tue Dec 01, 2015 1:03 pm

Temporary folder and inverse search not working

Postby eggsterino » Tue Dec 01, 2015 1:34 pm

Hi
I have the following profile:
1. In preprocessor I'm creating a tmp folder under my project folder.
2. All the compiled files (including the pdf file) are complied into the tmp folder.
3. My viewer parameters are:
exe path:
  1. D:\GoogleDrive\Programs\SumatraPDF\SumatraPDF.exe -inverse-search "\"C:\Program Files\TeXnicCenter\TeXnicCenter.exe\" /ddecmd \"[goto('%f','%l')]\""

view project's output is:
  1. "%dm\tmp\%tm.pdf"

forward search os:
  1. [ForwardSearch("%dm\tmp\%tm.pdf","%pc",%l,0,0,1)]


The forward search is working, however the inverse search isn't. the problem is with goto('%f','%l'). It looks for the tex file inside the tmp directory. When I pass the <filename>.tex instead of the '%f' it works but it is not generic. I've tried the following code as well:
  1. [goto('"%n"','%l')]
and I'm not sure why it passes to sumatra
  1. [goto('%n','%l')]
. It was supposed to replace the "%n" with the file name...

Any ideas how to do that?

Return to “General”

Who is online

Users browsing this forum: No registered users and 4 guests