Re: [NTG-context] useexternaldocument with custom file type

2020-04-23 Thread Jan U. Hasecke
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

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] useexternaldocument with custom file type

2020-04-23 Thread 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.

Best, Hraban
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] useexternaldocument with custom file type

2020-04-23 Thread 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.


juh
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] useexternaldocument with custom file type

2020-04-23 Thread Vladimir Lomov
Hello,
** Jan U. Hasecke  [2020-04-23 15:35:54 +0200]:

> 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


signature.asc
Description: PGP signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] useexternaldocument with custom file type

2020-04-23 Thread 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

The PDF Viewer does not support the file type.

TIA
juh
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] useexternaldocument with custom file type

2020-04-23 Thread Vladimir Lomov
Hello,
** Jan U. Hasecke  [2020-04-23 12:21:27 +0200]:

> 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


signature.asc
Description: PGP signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] useexternaldocument with custom file type

2020-04-23 Thread 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?

> https://mailman.ntg.nl/pipermail/ntg-context/2019/095564.html

I must confess that I don't understand this utilitydata-Thread.


juh
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] useexternaldocument with custom file type

2020-04-23 Thread 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.


https://mailman.ntg.nl/pipermail/ntg-context/2019/095564.html

Wolfgang
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] useexternaldocument with custom file type

2020-04-23 Thread Jan U. Hasecke
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
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] \useexternaldocument

2011-02-04 Thread Otared Kavian
Hi all,

How can I open a PDF file from within a presentation?
For example, assuming that the file intermezzo.pdf is present in the same 
directory, I thought I could say this

\starttext
\useexternaldocument[intermezzo.pdf]
As one may see in the example \from[intermezzo.pdf]
\stoptext

But this does not work as I would expect.
Thanks in advance for any help.
Best regards: OK
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] \useexternaldocument

2011-02-04 Thread Hans Hagen

On 4-2-2011 10:09, Otared Kavian wrote:

Hi all,

How can I open a PDF file from within a presentation?
For example, assuming that the file intermezzo.pdf is present in the same 
directory, I thought I could say this

\starttext
\useexternaldocument[intermezzo.pdf]
As one may see in the example \from[intermezzo.pdf]
\stoptext


you can use

[file(whatever)]

in \goto, \button, menus etc

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___