Argument of \doswitchtotypeface has an extra }
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/
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 -----------------------------------------------------------------
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/
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 -----------------------------------------------------------------
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/
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/
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/
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 -----------------------------------------------------------------
participants (3)
-
Hans Hagen
-
Peter Münster
-
Wolfgang Schuster