ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Andreas Harder <aharder@uni-koblenz.de>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Links in exported XHTML file
Date: Tue, 25 Oct 2011 11:16:21 +0200	[thread overview]
Message-ID: <7B85C181-B4AC-46AB-BBF8-8CB2E5C88033@uni-koblenz.de> (raw)
In-Reply-To: <4EA5E497.9060201@wxs.nl>


On 25.10.2011, at 00:20, Hans Hagen wrote:

> On 24-10-2011 23:22, Andreas Harder wrote:
>> 
>> On 24.10.2011, at 15:01, Hans Hagen wrote:
>> 
>>> On 21-10-2011 11:27, Andreas Harder wrote:
>>>> \setupinteraction[state=start]
>>>> 
>>>> \setupbackend[export=yes,xhtml=yes,css=export-example.css]
>>>> 
>>>> \starttext
>>>>   \useURL[google][http://www.google.com/][][Google] \from[google]
>>>>   \textreference[txt:ref]{some text} \in[txt:ref] % OK
>>>>   \goto{Google}[url(http://www.google.com/)]
>>>> \stoptext
>>> 
>>> in next beta
>> 
>> Thanks Hans, but now the text reference is *not* wrapped in xhml:a-tags.
> 
>              at.href = "#" .. gsub(at.location,":","_")
> 
> =>
> 
>                href = "#" .. gsub(at.location,":","_")

Thanks again, but here is another one … sorry for complaining

\setupinteraction[state=start]
\setupbackend[export=yes,xhtml=yes,css=export-example.css]

\starttext
  \goto{Pragma (url)}[url(http://www.pragma-ade.com/)] % OK
  \goto{PDF (file)}[file(http://www.pragma-ade.com/general/manuals/ms-cb-en.pdf)] 
  \goto{PDF (fileorurl)}[fileorurl(http://www.pragma-ade.com/general/manuals/ms-cb-en.pdf)]
\stoptext

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


      parent reply	other threads:[~2011-10-25  9:16 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-21  9:27 Andreas Harder
2011-10-24 13:01 ` Hans Hagen
     [not found]   ` <5BC53C41-293F-4501-8465-82CF39F11C8A@uni-koblenz.de>
     [not found]     ` <4EA5E497.9060201@wxs.nl>
2011-10-25  9:16       ` Andreas Harder [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7B85C181-B4AC-46AB-BBF8-8CB2E5C88033@uni-koblenz.de \
    --to=aharder@uni-koblenz.de \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).