GNU bug report logs - #23102
Wrong usage of underscore in .tex files

Previous Next

Package: emacs;

Reported by: Angelo Graziosi <angelo.graziosi <at> alice.it>

Date: Wed, 23 Mar 2016 23:32:01 UTC

Severity: minor

Fixed in version 29.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Angelo Graziosi <angelo.graziosi <at> alice.it>
To: John Wiegley <jwiegley <at> gmail.com>
Cc: 23102 <at> debbugs.gnu.org
Subject: bug#23102: Wrong usage of underscore in .tex files
Date: Sun, 27 Mar 2016 21:53:33 +0200
[Message part 1 (text/plain, inline)]

Il 27/03/2016 01:40, John Wiegley ha scritto:
>>>>>> Angelo Graziosi <angelo.graziosi <at> alice.it> writes:
>
>> Attached is how Emacs displays the usage of underscore out of mathematics
>> and friends, for example:
>
>> \href{http://www.foo.it/bla_bla.html}{BLA_BLA}
>
> I'm pretty sure that the underscore in BLA_BLA here is incorrect LaTeX.
> Shouldn't it be BLA\_BLA, which does display correct in latex-mode?
>

Yes, it works but it is only a workaround in my opinion: treating an url 
string as in mathematics seems wrong to me.

I found no example suggesting to use \_ in \href{}{} or \url{} commands.

I tried with Atom Editor and its language-latex package, and the above 
example (BLA_BLA...) is displayed as expected from me. See attachment.

Anyway, if you think it is OK to use \_, you can close this bug report.

 Angelo
[atom_latex.png (image/png, attachment)]

This bug report was last modified 3 years and 123 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.