ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* howto make hyperrefs? (url/mail)
@ 2010-12-03 18:56 Jonas Stein
  2010-12-03 19:32 ` Philipp Gesang
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Jonas Stein @ 2010-12-03 18:56 UTC (permalink / raw)
  To: ntg-context

i saw it once in the documentation but i dont find
it again now.

How can i make a mailaddress clickable in the pdf file?

Kind regards,

-- 
Jonas Stein <news@jonasstein.de>

___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: howto make hyperrefs? (url/mail)
  2010-12-03 18:56 howto make hyperrefs? (url/mail) Jonas Stein
@ 2010-12-03 19:32 ` Philipp Gesang
  2010-12-03 19:52   ` Jonas Stein
  2010-12-03 19:42 ` Jaroslav Hajtmar
  2010-12-04 14:46 ` Wolfgang Schuster
  2 siblings, 1 reply; 6+ messages in thread
From: Philipp Gesang @ 2010-12-03 19:32 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1663 bytes --]

Hi Jonas,


in context the hyperlink stuff is called “interaction”.

On 2010-12-03 <19:56:50>, Jonas Stein wrote:
> i saw it once in the documentation but i dont find
> it again now.

* http://wiki.contextgarden.net/url
* http://wiki.contextgarden.net/Interaction
 
> How can i make a mailaddress clickable in the pdf file?

The following should call a gui mua from your pdf reader but as I
am not using one i couldn’t test if things like setting the
subject &c. will work as well.

···8<····························································

\setupinteraction[state=start]
\useurl [mymail] [mailto:chairman@example.com] [] [beloved boss]

\starttext
Send your spam to the \from[mymail]!
\stoptext

···8<····························································

Hope this helps, Philipp


> 
> Kind regards,
> 
> -- 
> Jonas Stein <news@jonasstein.de>
> 
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________

-- 
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments

[-- Attachment #1.2: Type: application/pgp-signature, Size: 198 bytes --]

[-- Attachment #2: Type: text/plain, Size: 486 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: howto make hyperrefs? (url/mail)
  2010-12-03 18:56 howto make hyperrefs? (url/mail) Jonas Stein
  2010-12-03 19:32 ` Philipp Gesang
@ 2010-12-03 19:42 ` Jaroslav Hajtmar
  2010-12-04  1:47   ` Jonas Stein
  2010-12-04 14:46 ` Wolfgang Schuster
  2 siblings, 1 reply; 6+ messages in thread
From: Jaroslav Hajtmar @ 2010-12-03 19:42 UTC (permalink / raw)
  To: ntg-context

Hello Jonas,
here are any link examples:

\def\href#1#2{\useURL[#2][{#2}][][{#1}]\goto{\url[#2]}[url(#1)]}
\def\ahref#1{\color[linkcolor]{\ttx \href{#1}{<#1>}}}
\def\fullahref#1{\color[linkcolor]{\ttx \href{#1}{http://#1}}}
\def\mailto#1{\useURL[#1][mailto:#1][][#1]\from[{#1}]}
\def\MailTo#1#2{\useURL[#1][mailto:#1][][#2]\from[{#1}]}
\def\ctm{\href{http://meeting.contextgarden.net/2010/programme.shtml}{4CM}}
\def\te{\href{http://pavel.striz.cz/texperience/}{3TE}}

Jaroslav





Dne 3.12.2010 19:56, Jonas Stein napsal(a):
> i saw it once in the documentation but i dont find
> it again now.
>
> How can i make a mailaddress clickable in the pdf file?
>
> Kind regards,
>
>    

___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: howto make hyperrefs? (url/mail)
  2010-12-03 19:32 ` Philipp Gesang
@ 2010-12-03 19:52   ` Jonas Stein
  0 siblings, 0 replies; 6+ messages in thread
From: Jonas Stein @ 2010-12-03 19:52 UTC (permalink / raw)
  To: ntg-context

> \setupinteraction[state=3Dstart]
> \useurl [mymail] [mailto:chairman@example.com] [] [beloved boss]
>
> \starttext
> Send your spam to the \from[mymail]!
> \stoptext
> Hope this helps, Philipp

Yes, it works fine. 
I added it into the wiki with some words that can be found 
if one uses the search engine.

http://wiki.contextgarden.net/url#E-Mail_mailto

kind regards,

-- 
Jonas Stein <news@jonasstein.de>

___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: howto make hyperrefs? (url/mail)
  2010-12-03 19:42 ` Jaroslav Hajtmar
@ 2010-12-04  1:47   ` Jonas Stein
  0 siblings, 0 replies; 6+ messages in thread
From: Jonas Stein @ 2010-12-04  1:47 UTC (permalink / raw)
  To: ntg-context


Hi Jaroslav,

> \def\href#1#2{\useURL[#2][{#2}][][{#1}]\goto{\url[#2]}[url(#1)]}
> \def\ahref#1{\color[linkcolor]{\ttx \href{#1}{<#1>}}}
> \def\fullahref#1{\color[linkcolor]{\ttx \href{#1}{http://#1}}}
> \def\mailto#1{\useURL[#1][mailto:#1][][#1]\from[{#1}]}
> \def\MailTo#1#2{\useURL[#1][mailto:#1][][#2]\from[{#1}]}
> \def\ctm{\href{http://meeting.contextgarden.net/2010/programme.shtml}{4CM}}
> \def\te{\href{http://pavel.striz.cz/texperience/}{3TE}}

These are handy snippets. Thank you.

-- 
Jonas Stein <news@jonasstein.de>

___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: howto make hyperrefs? (url/mail)
  2010-12-03 18:56 howto make hyperrefs? (url/mail) Jonas Stein
  2010-12-03 19:32 ` Philipp Gesang
  2010-12-03 19:42 ` Jaroslav Hajtmar
@ 2010-12-04 14:46 ` Wolfgang Schuster
  2 siblings, 0 replies; 6+ messages in thread
From: Wolfgang Schuster @ 2010-12-04 14:46 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 03.12.2010 um 19:56 schrieb Jonas Stein:

> i saw it once in the documentation but i dont find
> it again now.
> 
> How can i make a mailaddress clickable in the pdf file?

\setupinteraction[state=start]
\starttext
\goto{Email}[url(mailto:max@mustermann.de)]
\stoptext

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-12-04 14:46 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-03 18:56 howto make hyperrefs? (url/mail) Jonas Stein
2010-12-03 19:32 ` Philipp Gesang
2010-12-03 19:52   ` Jonas Stein
2010-12-03 19:42 ` Jaroslav Hajtmar
2010-12-04  1:47   ` Jonas Stein
2010-12-04 14:46 ` Wolfgang Schuster

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).