GeneralTemporary folder and inverse search not working

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

Temporary folder and inverse search not working

Post by eggsterino »

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:

Code: Select all

D:\GoogleDrive\Programs\SumatraPDF\SumatraPDF.exe -inverse-search "\"C:\Program Files\TeXnicCenter\TeXnicCenter.exe\" /ddecmd \"[goto('%f','%l')]\""
view project's output is:

Code: Select all

"%dm\tmp\%tm.pdf"
forward search os:

Code: Select all

[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:

Code: Select all

[goto('"%n"','%l')]
and I'm not sure why it passes to sumatra

Code: Select all

[goto('%n','%l')]
. It was supposed to replace the "%n" with the file name...

Any ideas how to do that?

Recommended reading 2024:

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

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

Post Reply