ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Cecil Westerhof <cldwesterhof@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Export to xhtml and useurl
Date: Mon, 18 Jul 2011 23:51:08 +0200	[thread overview]
Message-ID: <CAG-LmmA51RsdjXbcAwYfmw3uFSVZ-FFTqJqn3528SdTTQTnD2A@mail.gmail.com> (raw)
In-Reply-To: <4E242A91.7050904@wxs.nl>


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

2011/7/18 Hans Hagen <pragma@wxs.nl>

> On 16-7-2011 12:32, Cecil Westerhof wrote:
>
>> I need to export my document. For this I use:
>>     \setupbackend[export=yes,**xhtml=yes,css=yes]
>>
>> I have update my document with start and stop for chapter, section and
>> subsection, but I have one problem. I have:
>> \useURL
>>   [UUID]
>>   [http://en.wikipedia.org/wiki/**Uuid<http://en.wikipedia.org/wiki/Uuid>
>> ]
>>   []
>>   [universally unique identifier]
>> and when I also have:
>> \from[UUID]
>>
>> I get:
>> system>  end file documentatie.tex at line 3398
>>  )</home/cecil/ConTeXt/tex/**texmf/fonts/opentype/public/**
>> tex-gyre/texgyreheros-**bolditalic.otf>{/home/cecil/**
>> ConTeXt/tex/texmf/fonts/enc/**dvips/lm/lm-mathsy.enc}</home/**
>> cecil/ConTeXt/tex/texmf/fonts/**opentype/public/tex-gyre/**
>> texgyreheros-bold.otf></home/**cecil/ConTeXt/tex/texmf/fonts/**
>> opentype/public/tex-gyre/**texgyreheros-regular.otf></**
>> home/cecil/ConTeXt/tex/texmf/**fonts/type1/public/lm/lmsy10.**pfb>
>> backend>  export>  finalizing
>> ! LuaTeX error ...TeXt/tex/texmf-context/tex/**
>> context/base/back-exp.lua:328:
>> bad argument #2 to 'write' (string expected, got nil).
>>
>
> a real small test file is needed
>

This works:
\setupinteraction[
  color=blue,
  contrastcolor=red,
  focus=standard,
  state=start,
]

%\setupbackend[export=yes,xhtml=yes,css=yes]

\useURL
  [UUID]
  [http://en.wikipedia.org/wiki/Uuid]
  []
  [universally unique identifier]

\starttext

This new id is generated much like an \from[UUID]. The reason for the
change was that in this way a client number could be generated offline
and/or different databases could be merged without the risk that id's
would clash.

\stoptext

But when the \setupbackend is taken out of comment, it goes wrong.

-- 
Cecil Westerhof

[-- Attachment #1.2: Type: text/html, Size: 2496 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 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
___________________________________________________________________________________

  reply	other threads:[~2011-07-18 21:51 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-16 10:32 Cecil Westerhof
2011-07-18 12:44 ` Hans Hagen
2011-07-18 21:51   ` Cecil Westerhof [this message]
2011-07-18 23:27     ` Hans Hagen

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=CAG-LmmA51RsdjXbcAwYfmw3uFSVZ-FFTqJqn3528SdTTQTnD2A@mail.gmail.com \
    --to=cldwesterhof@gmail.com \
    --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).