No inverse Search when using \usepath
Hello List, Greetings to all members! This is my first post here... Relatively new in Context, I've loved it since the first minute! I write technical manuals with Context. Some chapters of the manuals are depending on the type of the machine which are described in the manual. I try to use \usepath to load the right texfile from different folders. My variable for searching the correct folder is \machinename. \machinename is set before compiling The folders are: /MakeText/Ang/machineA/techdaten/Ang_techdaten.tex /MakeText/Ang/machineB/techdaten/Ang_techdaten.tex ... /MakeText/Ang/machineX/techdaten/Ang_techdaten.tex Tex example: \usepath[/MakeText/Ang/\machinename/] .... \input /techdaten/Ang_techdaten.tex \input /otherfolder/otherfile.tex \input... I can compile and I get a nice PDF, but the inverse search is not possible. (I use Sumatra and Notepad++) NPP only looks at the path after \input... /techdaten/Ang_techdaten.tex Do any of you know a workaround for this? Is \usepath the suited command? Thank you in advance! Gerhard
On 7/11/2020 5:22 PM, Gerhard Schramm wrote:
Hello List,
Greetings to all members! This is my first post here... Relatively new in Context, I've loved it since the first minute!
I write technical manuals with Context. Some chapters of the manuals are depending on the type of the machine which are described in the manual.
I try to use \usepath to load the right texfile from different folders. My variable for searching the correct folder is \machinename. \machinename is set before compiling
The folders are: /MakeText/Ang/machineA/techdaten/Ang_techdaten.tex /MakeText/Ang/machineB/techdaten/Ang_techdaten.tex ... /MakeText/Ang/machineX/techdaten/Ang_techdaten.tex
You can also do this (thatfile.tex): \starttext \usepath[/foo/\getdocumentargument{machine}/whatever] see what we have: /foo/\getdocumentargument{machine}/whatever \stoptext run as: context thatfile.tex --machine=mymachine or maybe context thatfile.tex --path=mymachine is also sufficient
Tex example:
\usepath[/MakeText/Ang/\machinename/] .... \input /techdaten/Ang_techdaten.tex \input /otherfolder/otherfile.tex \input...
I can compile and I get a nice PDF, but the inverse search is not possible. (I use Sumatra and Notepad++) NPP only looks at the path after \input... /techdaten/Ang_techdaten.tex
Do any of you know a workaround for this? Is \usepath the suited command? What do you mean with 'inverse search'?
Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
Am 11.07.2020 um 18:08 schrieb Hans Hagen
: I can compile and I get a nice PDF, but the inverse search is not possible. (I use Sumatra and Notepad++) NPP only looks at the path after \input... /techdaten/Ang_techdaten.tex Do any of you know a workaround for this? Is \usepath the suited command? What do you mean with 'inverse search'?
He probably means SyncTeX. Hraban
I think so. In fact, I have this doubt, can you use synctex with ConTeXt or do you have something that works like it?
On 7/22/2020 9:03 AM, Aradenatorix Veckhôm Avecælus wrote:
I think so. In fact, I have this doubt, can you use synctex with ConTeXt or do you have something that works like it?
You have to enable it: \setupsynctex[state=start] because it adds quite some overhead. Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
participants (4)
-
Aradenatorix Veckhôm Avecælus
-
Gerhard Schramm
-
Hans Hagen
-
Henning Hraban Ramm