useexternaldocument with custom file type
Hi, can I link to a file with custom file type eg. OpenDocument with \useexternaldocument? This does not work. \useexternaldocument[test][test.ods][A test document] As the PDF viewer is opened first, it does not recognize the file type. juh
Jan U. Hasecke schrieb am 23.04.2020 um 11:54:
Hi,
can I link to a file with custom file type eg. OpenDocument with \useexternaldocument?
This does not work.
\useexternaldocument[test][test.ods][A test document]
As the PDF viewer is opened first, it does not recognize the file type.
The \useexternaldocument is used to access referecens from other ConTeXt documents. https://mailman.ntg.nl/pipermail/ntg-context/2019/095564.html Wolfgang
Hi Wolfgang, thanks for the fast reply. Am 23.04.20 um 12:06 schrieb Wolfgang Schuster:
Jan U. Hasecke schrieb am 23.04.2020 um 11:54:
Hi,
can I link to a file with custom file type eg. OpenDocument with \useexternaldocument?
This does not work.
\useexternaldocument[test][test.ods][A test document]
As the PDF viewer is opened first, it does not recognize the file type.
The \useexternaldocument is used to access referecens from other ConTeXt documents.
Ok. No way to link to other file types from the pdf?
https://mailman.ntg.nl/pipermail/ntg-context/2019/095564.html
I must confess that I don't understand this utilitydata-Thread. juh
Hello,
** Jan U. Hasecke
Hi Wolfgang,
thanks for the fast reply.
Am 23.04.20 um 12:06 schrieb Wolfgang Schuster:
Jan U. Hasecke schrieb am 23.04.2020 um 11:54:
Hi,
can I link to a file with custom file type eg. OpenDocument with \useexternaldocument?
This does not work.
\useexternaldocument[test][test.ods][A test document]
As the PDF viewer is opened first, it does not recognize the file type.
The \useexternaldocument is used to access referecens from other ConTeXt documents.
Ok. No way to link to other file types from the pdf?
May be you after this one https://wiki.contextgarden.net/Command/goto ? Otherwise could you describe what exactly you want to achive?
https://mailman.ntg.nl/pipermail/ntg-context/2019/095564.html
I must confess that I don't understand this utilitydata-Thread.
juh
--- WBR, Vladimir Lomov -- He asked me if I knew what time it was -- I said yes, but not right now. -- Steven Wright
Am 23.04.20 um 14:22 schrieb Vladimir Lomov:
Otherwise could you describe what exactly you want to achive?
This works: \setupinteraction[state=start] \setupcolors[state=start] \starttext \goto{linkname}[file(target.pdf)] \stoptext This does not work: \setupinteraction[state=start] \setupcolors[state=start] \starttext \goto{linkname}[file(target.doc)] \stoptext The PDF Viewer does not support the file type. TIA juh
Hello,
** Jan U. Hasecke
Am 23.04.20 um 14:22 schrieb Vladimir Lomov:
Otherwise could you describe what exactly you want to achive?
This works:
\setupinteraction[state=start] \setupcolors[state=start] \starttext \goto{linkname}[file(target.pdf)] \stoptext
This does not work:
\setupinteraction[state=start] \setupcolors[state=start] \starttext \goto{linkname}[file(target.doc)] \stoptext
What do you mean "work" and "not work"? Do you what to open a file by clicking on text in viewer? What application should be used to open a file? Take a look on page I linked in previous message.
The PDF Viewer does not support the file type.
What "PDF Viewer"? For example, I use different viewers: mupdf, zathura-pdf-mupdf (zathura with mupdf pdf backend), okular, pdf-tools (emacs major mode). Some of application (okular, for example) could preview many file types (ps, pdf, odt), while other can't do that. It is up to application what to do (or actually, PDF backend) on link. Please see the page about '\goto' command, it was written for a reason!
TIA juh
--- WBR, Vladimir Lomov -- Virtue is not left to stand alone. He who practices it will have neighbors. -- Confucius
Am 23.04.2020 um 16:36 schrieb Jan U. Hasecke
: Am 23.04.20 um 16:10 schrieb Vladimir Lomov:
Please see the page about '\goto' command, it was written for a reason!
Ok, with \goto{linkname}[program(target.doc)] it works.
"works" means some PDF Viewers opens the right program.
In the beginning, you could even start programs with program(...), but Adobe recognized soon this might be a security problem. Nowadays, the “best” behaviour is when the viewer asks you if you really want to open such a link but then hands control to the OS. Last time I checked, Adobe Reader even let you open hidden files from arbitrary paths. Several other viewers just do nothing. Best, Hraban
Am 23.04.20 um 19:25 schrieb Henning Hraban Ramm:
Am 23.04.2020 um 16:36 schrieb Jan U. Hasecke
: Am 23.04.20 um 16:10 schrieb Vladimir Lomov:
Please see the page about '\goto' command, it was written for a reason!
Ok, with \goto{linkname}[program(target.doc)] it works.
"works" means some PDF Viewers opens the right program.
In the beginning, you could even start programs with program(...), but Adobe recognized soon this might be a security problem.
Nowadays, the “best” behaviour is when the viewer asks you if you really want to open such a link but then hands control to the OS.
Last time I checked, Adobe Reader even let you open hidden files from arbitrary paths.
Several other viewers just do nothing.
Yes this is not bullet proofed but I need it for internal usage. I think we'll have many okular users. juh
participants (4)
-
Henning Hraban Ramm
-
Jan U. Hasecke
-
Vladimir Lomov
-
Wolfgang Schuster