Hongyi Zhao <[email protected]> writes:

> Then I try to test auctex with the following LaTeX sample file:
>
> %% LaTeX sample file
> \documentclass{paper}
> \usepackage{hyperref}
> \begin{document}
> See
> \href{http://www.fulviofrisone.com/attachments/article/480/Ballentine%20L.%20Quantum%20mechanics%20-%20a%20modern%20development%20(1998)(T)(673s).pdf}{page
> 98}
> \end{document}
> %% LaTeX sample file ends here
>
> When I put the point after the `{page 98}' and hit RET, the LaTeX file
> will be automatically completed into the following:
>
> %% LaTeX sample file
> \documentclass{paper}
> \usepackage{hyperref}
> \begin{document}
> See
> \href{http://www.fulviofrisone.com/attachments/article/480/Ballentine%20L.%20Quantum%20mechanics%20-%20a%20modern%20development%20(1998)(T)(673s).pdf}{page
>   % 98}
>
> \end{document}
> %% LaTeX sample file ends here
>
> As you can see, the auto-completed typesetting result is wrong due to
> the leading `%' before ` 98}'.

I can't reproduce what you describe.

Besides that, my simple approach would be to replace %20 with 'space' in
your file, i.e.:

    \href{http://www.fulviofrisone.com/attachments/article/480/Ballentine
      L. Quantum mechanics - a modern development
      (1998)(T)(673s).pdf}{page 98}

This gives AUCTeX enough possibilties for better filling and the link
should also work in your pdf viewer.

Best, Arash

Reply via email to