ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Argument of \doswitchtotypeface has an extra }
@ 2009-06-09 14:20 Peter Münster
  2009-06-10 14:07 ` Hans Hagen
  0 siblings, 1 reply; 9+ messages in thread
From: Peter Münster @ 2009-06-09 14:20 UTC (permalink / raw)
  To: ConTeXt list

Hello,

Here I get the error:

\starttext
bla\footnote{\useURL[bla][http://bla/]\from[bla]}
\stoptext

I use \useURL inside the footnote, because in my real code, I put \useURL
and \from together in a macro.

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/

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


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

* Re: Argument of \doswitchtotypeface has an extra }
  2009-06-09 14:20 Argument of \doswitchtotypeface has an extra } Peter Münster
@ 2009-06-10 14:07 ` Hans Hagen
  2009-06-11  8:08   ` Peter Münster
  0 siblings, 1 reply; 9+ messages in thread
From: Hans Hagen @ 2009-06-10 14:07 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Peter Münster wrote:
> Hello,
> 
> Here I get the error:
> 
> \starttext
> bla\footnote{\useURL[bla][http://bla/]\from[bla]}
> \stoptext
> 
> I use \useURL inside the footnote, because in my real code, I put \useURL
> and \from together in a macro.

i'll make them unexpandable although normally such commands are not used 
that way it does not hurt



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


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

* Re: Argument of \doswitchtotypeface has an extra }
  2009-06-10 14:07 ` Hans Hagen
@ 2009-06-11  8:08   ` Peter Münster
  2009-06-11  8:31     ` Hans Hagen
  2009-06-11  8:33     ` Wolfgang Schuster
  0 siblings, 2 replies; 9+ messages in thread
From: Peter Münster @ 2009-06-11  8:08 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Wed, 10 Jun 2009, Hans Hagen wrote:

> Peter Münster wrote:
> > Hello,
> > 
> > Here I get the error:
> > 
> > \starttext
> > bla\footnote{\useURL[bla][http://bla/]\from[bla]}
> > \stoptext
> > 
> > I use \useURL inside the footnote, because in my real code, I put \useURL
> > and \from together in a macro.
> 
> i'll make them unexpandable although normally such commands are not used that
> way it does not hurt

Ok.
Or is there perhaps another command (for example "\fromURL{}") that does
just this: "\useURL[dummy][http://my-url/]\from[dummy]"

Perhaps with alternative optional argument:
\fromURL[#1]{#2} = "\useURL[dummy][#2][][#1]\from[dummy]"

Cheers, Peter

P.S: Any news about the problems with \placehead and \lastpagenumber ?

-- 
Contact information: http://pmrb.free.fr/contact/

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

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

* Re: Argument of \doswitchtotypeface has an extra }
  2009-06-11  8:08   ` Peter Münster
@ 2009-06-11  8:31     ` Hans Hagen
  2009-06-11  9:29       ` Peter Münster
  2009-06-11  8:33     ` Wolfgang Schuster
  1 sibling, 1 reply; 9+ messages in thread
From: Hans Hagen @ 2009-06-11  8:31 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Peter Münster wrote:
  \lastpagenumber ?

should work in the beta
> 


-- 

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

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

* Re: Argument of \doswitchtotypeface has an extra }
  2009-06-11  8:08   ` Peter Münster
  2009-06-11  8:31     ` Hans Hagen
@ 2009-06-11  8:33     ` Wolfgang Schuster
  2009-06-11 10:20       ` URLs: interaction, color/style, hyphenation (was: Re: Argument of \doswitchtotypeface has an extra }) Peter Münster
  1 sibling, 1 reply; 9+ messages in thread
From: Wolfgang Schuster @ 2009-06-11  8:33 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: text/html, Size: 730 bytes --]

[-- Attachment #2: Type: text/plain, Size: 487 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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Argument of \doswitchtotypeface has an extra }
  2009-06-11  8:31     ` Hans Hagen
@ 2009-06-11  9:29       ` Peter Münster
  0 siblings, 0 replies; 9+ messages in thread
From: Peter Münster @ 2009-06-11  9:29 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Thu, 11 Jun 2009, Hans Hagen wrote:

> Peter Münster wrote:
>  \lastpagenumber ?
> 
> should work in the beta

Indeed, thanks!
Peter

-- 
Contact information: http://pmrb.free.fr/contact/

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

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

* URLs: interaction, color/style, hyphenation (was: Re: Argument of \doswitchtotypeface has an extra })
  2009-06-11  8:33     ` Wolfgang Schuster
@ 2009-06-11 10:20       ` Peter Münster
  2009-06-15  9:06         ` URLs: interaction, color/style, hyphenation Peter Münster
  0 siblings, 1 reply; 9+ messages in thread
From: Peter Münster @ 2009-06-11 10:20 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Thu, 11 Jun 2009, Wolfgang Schuster wrote:

> Am 11.06.2009 um 10:08 schrieb Peter Münster:
> 
>       Or is there perhaps another command (for example "\fromURL{}")
>       that does
> 
>       just this: "\useURL[dummy][http://my-url/]\from[dummy]"
> 
> 
>       Perhaps with alternative optional argument:
> 
>       \fromURL[#1]{#2} = "\useURL[dummy][#2][][#1]\from[dummy]"
> 
> 
> Hans gave *you* a while ago this solution: \goto{...}[url(...)]

Indeed, I suppose you mean
http://archive.contextgarden.net/message/20090504.084528.4e8ad6f9.en.html

I did not need this solution, because

1.) my little helper-macro
   \def\gotoURL{\dosingleempty\dogotoURL}
   \def\dogotoURL[#1]#2{\iffirstargument\useURL[dummyRefUseURL][#2][][#1]\else
     \useURL[dummyRefUseURL][#2]\fi\from[dummyRefUseURL]}
   worked just fine

2.) \goto{...}[url(...)] does not break URLs

But now I see, that even \from[...] does not breaks URLs neither...

It seems, the only way to get hyphenated url is without interaction.

Here a general test-file with all possibilities to print URLs, that I'm
aware of:

\setupinteraction[state=start]
\useURL[myURL][http://url.com/index.html]
\starttext
\hsize1pt
% hyphen introduced in url, no special color/style:
\from[myURL]
% same as \from, but \tt style:
\url[myURL]
% hyphenated without hyphens but no color/style/interaction:
\hyphenatedurl{http://url.com/index.html}
% interaction and color, but not hyphenated:
\goto{http://url.com/index.html}[url(http://url.com/index.html)]
\stoptext

The best would be, to have a command that:
- makes interactive links like \from[]
- uses \tt style like \url[]
- breaks URLs like \hyphenatedurl{}
- uses color like \goto{}[]

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/

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

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

* Re: URLs: interaction, color/style, hyphenation
  2009-06-11 10:20       ` URLs: interaction, color/style, hyphenation (was: Re: Argument of \doswitchtotypeface has an extra }) Peter Münster
@ 2009-06-15  9:06         ` Peter Münster
  2009-06-15  9:35           ` Hans Hagen
  0 siblings, 1 reply; 9+ messages in thread
From: Peter Münster @ 2009-06-15  9:06 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Thu, 11 Jun 2009, Peter Münster wrote:

> Here a general test-file with all possibilities to print URLs, that I'm
> aware of:
> 
> \setupinteraction[state=start]
> \useURL[myURL][http://url.com/index.html]
> \starttext
> \hsize1pt
> % hyphen introduced in url, no special color/style:
> \from[myURL]
> % same as \from, but \tt style:
> \url[myURL]
> % hyphenated without hyphens but no color/style/interaction:
> \hyphenatedurl{http://url.com/index.html}
> % interaction and color, but not hyphenated:
> \goto{http://url.com/index.html}[url(http://url.com/index.html)]
> \stoptext
> 
> The best would be, to have a command that:
> - makes interactive links like \from[]
> - uses \tt style like \url[]
> - breaks URLs like \hyphenatedurl{}
> - uses color like \goto{}[]

Just a hint: the \from command of version 2009.01.18 MKIV worked very well:
- there was color
- tt-style
- interaction was ok
- hyphenation as with \hyphenatedurl was also ok
- possibility to add number-signs in url with "\#"

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/

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

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

* Re: URLs: interaction, color/style, hyphenation
  2009-06-15  9:06         ` URLs: interaction, color/style, hyphenation Peter Münster
@ 2009-06-15  9:35           ` Hans Hagen
  0 siblings, 0 replies; 9+ messages in thread
From: Hans Hagen @ 2009-06-15  9:35 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Peter Münster wrote:
> On Thu, 11 Jun 2009, Peter Münster wrote:
> 
>> Here a general test-file with all possibilities to print URLs, that I'm
>> aware of:
>>
>> \setupinteraction[state=start]
>> \useURL[myURL][http://url.com/index.html]
>> \starttext
>> \hsize1pt
>> % hyphen introduced in url, no special color/style:
>> \from[myURL]
>> % same as \from, but \tt style:
>> \url[myURL]
>> % hyphenated without hyphens but no color/style/interaction:
>> \hyphenatedurl{http://url.com/index.html}
>> % interaction and color, but not hyphenated:
>> \goto{http://url.com/index.html}[url(http://url.com/index.html)]
>> \stoptext
>>
>> The best would be, to have a command that:
>> - makes interactive links like \from[]
>> - uses \tt style like \url[]
>> - breaks URLs like \hyphenatedurl{}
>> - uses color like \goto{}[]
> 
> Just a hint: the \from command of version 2009.01.18 MKIV worked very well:
> - there was color
> - tt-style
> - interaction was ok
> - hyphenation as with \hyphenatedurl was also ok
> - possibility to add number-signs in url with "\#"

all referencing code has been rewritten so as with structure it will 
take some time for it to reach the desired state; i'm currently 
rewriting all backend code

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

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

end of thread, other threads:[~2009-06-15  9:35 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-09 14:20 Argument of \doswitchtotypeface has an extra } Peter Münster
2009-06-10 14:07 ` Hans Hagen
2009-06-11  8:08   ` Peter Münster
2009-06-11  8:31     ` Hans Hagen
2009-06-11  9:29       ` Peter Münster
2009-06-11  8:33     ` Wolfgang Schuster
2009-06-11 10:20       ` URLs: interaction, color/style, hyphenation (was: Re: Argument of \doswitchtotypeface has an extra }) Peter Münster
2009-06-15  9:06         ` URLs: interaction, color/style, hyphenation Peter Münster
2009-06-15  9:35           ` Hans Hagen

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).