Re: [NTG-context] \useURL not working with '#' and '_' in URL in newest beta

2009-04-22 Thread Drazen Baic
On Wed, Apr 22, 2009 at 8:46 AM, Hans Hagen  wrote:
> Mojca Miklavec wrote:
>>
>> On Tue, Apr 21, 2009 at 18:45, Drazen Baic wrote:
>>>
>>> Hello,
>>>
>>> URLs with '#' or '_' in the URL worked fine with LuaTeX, Version
>>> snapshot-0.37.0-2009033116  and ConTeXt 2009.04.06 21:42
>>> and still work with the newest beta LuaTeX, Version
>>> snapshot-0.39.0-2009041623 and ConTeXt 2009.04.21 16:11 when
>>> compiled with '--xtx'. When compiled with '--lua' I got this error:
>>
>> I don't know if this is related, but when I tried to recompile some
>> mkiv document today, lots of characters have been missing from output.
>> Example:
>>
>> \starttext
>> \startMPcode
>> u := 1cm;
>> draw \sometxt{a\{b\}} shifted(1u,0u); % no braces
>> \stopMPcode
>> \stoptext
>>
>> I remember having problems with at least {, }, #, & and with the usage
>> of the following macro inside metapost:
>>
>> % outside:
>> \def\combine#1{\hbox to .5em{}\hbox to
>> 0pt{\hss\color[red]{\mframed[frame=off]{#1}}\hss}\hbox to
>> 0pt{\hss\color[darkgray]{o}\hss}}
>>
>> % usage inside \sometxt in metapost:
>> \combine{\textcaron}
>>
>> But I had no time to debug.
>
> --lua ? don't you use 'context' ? (as context will call texexec when the
> topline mentiones pdftex/xetex as engine, i now always use it in calls from
> the editor instead of texexec)

thank you for the tip. I was always using texexec --lua in my vim/macvim config.

> if you're in a hurry you can use \nonknuthmode (makes _ ^ in textmode normal
> letters, while \donknuthmode reverts them)
>
> Hans

I'm not in a hurry but thanks again. I was just testing the newest
beta to see if
index creation is working again.

Regards,
Drazen
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] \useURL not working with '#' and '_' in URL in newest beta

2009-04-21 Thread Hans Hagen

Mojca Miklavec wrote:

On Tue, Apr 21, 2009 at 18:45, Drazen Baic wrote:

Hello,

URLs with '#' or '_' in the URL worked fine with LuaTeX, Version
snapshot-0.37.0-2009033116  and ConTeXt 2009.04.06 21:42
and still work with the newest beta LuaTeX, Version
snapshot-0.39.0-2009041623 and ConTeXt 2009.04.21 16:11 when
compiled with '--xtx'. When compiled with '--lua' I got this error:


I don't know if this is related, but when I tried to recompile some
mkiv document today, lots of characters have been missing from output.
Example:

\starttext
\startMPcode
u := 1cm;
draw \sometxt{a\{b\}} shifted(1u,0u); % no braces
\stopMPcode
\stoptext

I remember having problems with at least {, }, #, & and with the usage
of the following macro inside metapost:

% outside:
\def\combine#1{\hbox to .5em{}\hbox to
0pt{\hss\color[red]{\mframed[frame=off]{#1}}\hss}\hbox to
0pt{\hss\color[darkgray]{o}\hss}}

% usage inside \sometxt in metapost:
\combine{\textcaron}

But I had no time to debug.


--lua ? don't you use 'context' ? (as context will call texexec when the 
topline mentiones pdftex/xetex as engine, i now always use it in calls 
from the editor instead of texexec)


if you're in a hurry you can use \nonknuthmode (makes _ ^ in textmode 
normal letters, while \donknuthmode reverts them)


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] \useURL not working with '#' and '_' in URL in newest beta

2009-04-21 Thread Mojca Miklavec
On Tue, Apr 21, 2009 at 18:45, Drazen Baic wrote:
> Hello,
>
> URLs with '#' or '_' in the URL worked fine with LuaTeX, Version
> snapshot-0.37.0-2009033116  and ConTeXt 2009.04.06 21:42
> and still work with the newest beta LuaTeX, Version
> snapshot-0.39.0-2009041623 and ConTeXt 2009.04.21 16:11 when
> compiled with '--xtx'. When compiled with '--lua' I got this error:

I don't know if this is related, but when I tried to recompile some
mkiv document today, lots of characters have been missing from output.
Example:

\starttext
\startMPcode
u := 1cm;
draw \sometxt{a\{b\}} shifted(1u,0u); % no braces
\stopMPcode
\stoptext

I remember having problems with at least {, }, #, & and with the usage
of the following macro inside metapost:

% outside:
\def\combine#1{\hbox to .5em{}\hbox to
0pt{\hss\color[red]{\mframed[frame=off]{#1}}\hss}\hbox to
0pt{\hss\color[darkgray]{o}\hss}}

% usage inside \sometxt in metapost:
\combine{\textcaron}

But I had no time to debug.

Mojca
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] \useURL not working with '#' and '_' in URL in newest beta

2009-04-21 Thread Drazen Baic
Hello,

URLs with '#' or '_' in the URL worked fine with LuaTeX, Version
snapshot-0.37.0-2009033116  and ConTeXt 2009.04.06 21:42
and still work with the newest beta LuaTeX, Version
snapshot-0.39.0-2009041623 and ConTeXt 2009.04.21 16:11 when
compiled with '--xtx'. When compiled with '--lua' I got this error:

! Illegal parameter number in definition of \dodogetargument.

   s
 ...ce.contextgarden.net/core-pos.tex##s
  etpositions
\dodogetargument ...{\douseurl [{setposition}][{#1
  }][{##1}]}\dogetargument [...
l.13 ...textgarden.net/core-pos.tex#setpositions}]


here is a minimal example. It doesn't work no matter if
\setupinteraction is active or not

\setupcolors
  [state=start]
\setupinteraction
  [state=start,color=blue]
\useURL
  [minimals]
  [{http://wiki.contextgarden.net/ConTeXt_Minimals}]
  []
  [\ConTeXt\ Minimals]

\useURL
  [setposition]
  [{http://source.contextgarden.net/core-pos.tex#setpositions}]
  []
  [\tex{setposition}]

\useURL
  [setuppositioning]
  [http://texshow.contextgarden.net]
  [{cmd/en/setuppositioning}]
  [\tex{setuppositioning}]

\starttext
Lookup the source code of \from[setposition]! Or read about the syntax
of \from[setuppositioning].
More Information about \CONTEXT\ Minimals at: \from[minimals]
\stoptext

Regards,
Drazen
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___