Hi there, I have the following sample: \define[1]\url{\goto{\hyphenatedurl{#1}}[url(#1)]} \starttext \url{http://buscon.rae.es/dpdI/SrvltGUIBusDPD?lema=puntos\%20suspensivos} \stoptext in which I try to escape %, but using the above approach I also get the \ printed. Which is the proper way to do it? (Not replacing %20 with a blank space.) Thanks for your help, Pablo -- http://www.ousia.tk
On Sun, Jan 01, 2012 at 02:26:39PM +0100, Pablo Rodríguez wrote:
Hi there,
I have the following sample:
\define[1]\url{\goto{\hyphenatedurl{#1}}[url(#1)]} \starttext \url{http://buscon.rae.es/dpdI/SrvltGUIBusDPD?lema=puntos\%20suspensivos} \stoptext
in which I try to escape %, but using the above approach I also get the \ printed.
Which is the proper way to do it? (Not replacing %20 with a blank space.)
I use \asciimode which leaves only 3 special characters \ { }, and the rest (including # and %) can be used normally. But then, your \define should be before \asciimode or moved to environment file. %% can be used as comment char. Regards, Khaled
On 01/01/2012 02:46 PM, Khaled Hosny wrote:
On Sun, Jan 01, 2012 at 02:26:39PM +0100, Pablo Rodríguez wrote:
Hi there,
I have the following sample:
\define[1]\url{\goto{\hyphenatedurl{#1}}[url(#1)]} \starttext \url{http://buscon.rae.es/dpdI/SrvltGUIBusDPD?lema=puntos\%20suspensivos} \stoptext
in which I try to escape %, but using the above approach I also get the \ printed.
Which is the proper way to do it? (Not replacing %20 with a blank space.)
I use \asciimode which leaves only 3 special characters \ { }, and the rest (including # and %) can be used normally. But then, your \define should be before \asciimode or moved to environment file. %% can be used as comment char.
Thanks for your reply, Kahled. Typing \asciimode after \starttext does the job. Thank again, Pablo -- http://www.ousia.tk
On Sun, Jan 01 2012, Pablo Rodríguez wrote:
Which is the proper way to do it? (Not replacing %20 with a blank space.)
This works (I don't know, if proper way or not...): \startasciimode \url{http://buscon.rae.es/dpdI/SrvltGUIBusDPD?lema=puntos%20suspensivos} \stopasciimode or \url{http://buscon.rae.es/dpdI/SrvltGUIBusDPD?lema=puntos\letterpercent20suspensivos} -- Peter
On 01/01/2012 02:48 PM, Peter Münster wrote:
On Sun, Jan 01 2012, Pablo Rodríguez wrote:
Which is the proper way to do it? (Not replacing %20 with a blank space.)
This works (I don't know, if proper way or not...):
\startasciimode \url{http://buscon.rae.es/dpdI/SrvltGUIBusDPD?lema=puntos%20suspensivos} \stopasciimode
or
\url{http://buscon.rae.es/dpdI/SrvltGUIBusDPD?lema=puntos\letterpercent20suspensivos}
Thanks for your help, Peter. Pablo -- http://www.ousia.tk
participants (3)
-
Khaled Hosny
-
Pablo Rodríguez
-
pmlists@free.fr