From: Hongyi Zhao <hongyi.zhao@gmail.com>
To: Arash Esbati <arash@gnu.org>
Cc: auctex-devel@gnu.org, help-gnu-emacs <help-gnu-emacs@gnu.org>
Subject: Re: A strange auto typesetting problem when using auctex.
Date: Tue, 15 Jun 2021 08:51:30 +0800 [thread overview]
Message-ID: <CAGP6POLhtqgqyqu4ReSSgDjOdT2347vdwEHrWHtWChmUTcxh2g@mail.gmail.com> (raw)
In-Reply-To: <86a6nsb4bf.fsf@gnu.org>
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
prev parent reply other threads:[~2021-06-15 0:51 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-14 3:45 A strange auto typesetting problem when using auctex Hongyi Zhao
2021-06-14 6:12 ` Hongyi Zhao
2021-06-14 11:48 ` Tassilo Horn
2021-06-14 15:43 ` Hongyi Zhao
2021-06-14 19:14 ` Tassilo Horn
2021-06-15 0:48 ` Hongyi Zhao
2021-06-14 20:04 ` Arash Esbati
2021-06-15 0:51 ` Hongyi Zhao [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAGP6POLhtqgqyqu4ReSSgDjOdT2347vdwEHrWHtWChmUTcxh2g@mail.gmail.com \
--to=hongyi.zhao@gmail.com \
--cc=arash@gnu.org \
--cc=auctex-devel@gnu.org \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).