[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: A strange auto typesetting problem when using auctex.
From: |
Arash Esbati |
Subject: |
Re: A strange auto typesetting problem when using auctex. |
Date: |
Mon, 14 Jun 2021 22:04:52 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 |
Hongyi Zhao <hongyi.zhao@gmail.com> 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