\goto a file in the parent directory
![](https://secure.gravatar.com/avatar/84580472fabd1d33df4d9af94487520b.jpg?s=120&d=mm&r=g)
Hello, Assume that 'target.pdf' is in the current directory, the parent directory and in the 'subdir' directory. \setupinteraction[state=start] \starttext \goto{GOTO}[target::] % Works \goto{GOTO}[subdir/target::] % Works \goto{GOTO}[../target::] % Doesn't work \stoptext Any help is welcome. -- Denis.
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
Denis Pinsard wrote:
Hello,
Assume that 'target.pdf' is in the current directory, the parent directory and in the 'subdir' directory.
\setupinteraction[state=start] \starttext \goto{GOTO}[target::] % Works \goto{GOTO}[subdir/target::] % Works \goto{GOTO}[../target::] % Doesn't work \stoptext
Any help is welcome.
does \goto{GOTO}[file(../target)] work? ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/84580472fabd1d33df4d9af94487520b.jpg?s=120&d=mm&r=g)
Le Sat, 04 Jun 2005 13:44:51 +0200, Hans Hagen
Denis Pinsard wrote:
Hello, Assume that 'target.pdf' is in the current directory, the parent directory and in the 'subdir' directory. \setupinteraction[state=start] \starttext \goto{GOTO}[target::] % Works \goto{GOTO}[subdir/target::] % Works \goto{GOTO}[../target::] % Doesn't work \stoptext Any help is welcome.
does
\goto{GOTO}[file(../target)]
work?
No, the file is not found. -- Denis.
![](https://secure.gravatar.com/avatar/a73b0509a7928d5655f19d439cc955ff.jpg?s=120&d=mm&r=g)
Denis Pinsard wrote:
Le Sat, 04 Jun 2005 13:44:51 +0200, Hans Hagen
a �crit: Denis Pinsard wrote:
Hello, Assume that 'target.pdf' is in the current directory, the parent directory and in the 'subdir' directory. \setupinteraction[state=start] \starttext \goto{GOTO}[target::] % Works \goto{GOTO}[subdir/target::] % Works \goto{GOTO}[../target::] % Doesn't work \stoptext Any help is welcome.
does
\goto{GOTO}[file(../target)]
work?
No, the file is not found.
In texmf.cnf, there is an item "openout_any = a", which enables ConTeXt to open parent paths. Maybe this can help, I'm not sure.
participants (3)
-
Denis Pinsard
-
Hans Hagen
-
Xiao Jianfeng