Re: # in URL cause compiling to hang
I just created a test doc (article class) in LyX 2.0, insert a URL (in a URL inset) containing a hash character (#), and it worked just fine in PDF output. Escaping it with a backslash caused problems. That said, if you replace the hash character with %23 in the URL, you get the same result, and that may avoid whatever caused the error message. Paul
Re: # in URL cause compiling to hang
Thanks - Julio Rojas jcredbe...@gmail.com On Fri, Jul 8, 2011 at 3:11 PM, Guenter Milde wrote: > On 2011-07-07, Richard Heck wrote: > > On 07/07/2011 03:12 AM, Julio Rojas wrote: > >> I had exactly this same problem a couple of days ago and I had to > >> leave the part after the "#" sign out. > > > I think the # has to be escaped somehow...? > > Yes. > > From the Docutils latex writer:: > ># We need to escape #, \, and % if we use the URL in a command. >special_chars = {ord('#'): ur'\#', > ord('%'): ur'\%', > ord('\\'): ur'\\', >} > ># problematic chars double caret and unbalanced braces: >if href.find('^^') != -1 or self.has_unbalanced_braces(href): >self.error( >'External link "%s" not supported by LaTeX.\n' >' (Must not contain "^^" or unbalanced braces.)' % href) > > > Günter > >
Re: # in URL cause compiling to hang
On 2011-07-07, Richard Heck wrote: > On 07/07/2011 03:12 AM, Julio Rojas wrote: >> I had exactly this same problem a couple of days ago and I had to >> leave the part after the "#" sign out. > I think the # has to be escaped somehow...? Yes. >From the Docutils latex writer:: # We need to escape #, \, and % if we use the URL in a command. special_chars = {ord('#'): ur'\#', ord('%'): ur'\%', ord('\\'): ur'\\', } # problematic chars double caret and unbalanced braces: if href.find('^^') != -1 or self.has_unbalanced_braces(href): self.error( 'External link "%s" not supported by LaTeX.\n' ' (Must not contain "^^" or unbalanced braces.)' % href) Günter
Re: # in URL cause compiling to hang
On 07/07/2011 03:12 AM, Julio Rojas wrote: > I had exactly this same problem a couple of days ago and I had to > leave the part after the "#" sign out. > I think the # has to be escaped somehow...? Bummer about the dengue fever! rh
Re: # in URL cause compiling to hang
I had exactly this same problem a couple of days ago and I had to leave the part after the "#" sign out. - Julio Rojas jcredbe...@gmail.com On Thu, Jul 7, 2011 at 8:38 AM, Louis Turk wrote: > Hi everyone, > > > http://www.usc.edu/schools/college/crcc/engagement/resources/texts/muslim/hadith/bukhari/002.sbt.html#001.002.035 > > The # in the above URL causes this error message: > > Illegal parameter number in definition of \Hy@tempa. > > } > > You meant to type ## instead of #, right? > > Or maybe a } was forgotten somewhere earlier, and things > > are all screwed up? I'm going to assume that you meant ##. > > > Is there any way force lyx to use this url? > > > Thanks, > > Lou > > > PS Two months ago, right after posting some questions, I was hospitalized > with dengue fever, and couldn't respond to those how provided answers. I > thank you now! > >
# in URL cause compiling to hang
Hi everyone, http://www.usc.edu/schools/college/crcc/engagement/resources/texts/muslim/hadith/bukhari/002.sbt.html#001.002.035 The # in the above URL causes this error message: Illegal parameter number in definition of \Hy@tempa. } You meant to type ## instead of #, right? Or maybe a } was forgotten somewhere earlier, and things are all screwed up? I'm going to assume that you meant ##. Is there any way force lyx to use this url? Thanks, Lou PS Two months ago, right after posting some questions, I was hospitalized with dengue fever, and couldn't respond to those how provided answers. I thank you now!