[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: A strange auto typesetting problem when using auctex.
From: |
Hongyi Zhao |
Subject: |
Re: A strange auto typesetting problem when using auctex. |
Date: |
Tue, 15 Jun 2021 08:51:30 +0800 |
On Tue, Jun 15, 2021 at 4:11 AM Arash Esbati <arash@gnu.org> wrote:
>
> 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.
See the analysis by Tassilo.
>
> 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.
I don't think this is good manner for dealing with URL, as in such
way, it will not be recognized by other applications, so the direct
click and open will be unavailable.
>
> Best, Arash
--
Assoc. Prof. Hongyi Zhao <hongyi.zhao@gmail.com>
Theory and Simulation of Materials
Hebei Vocational University of Technology and Engineering
NO. 552 North Gangtie Road, Xingtai, China