unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Angelo Graziosi <angelo.graziosi@alice.it>
To: John Wiegley <jwiegley@gmail.com>
Cc: 23102@debbugs.gnu.org
Subject: bug#23102: Wrong usage of underscore in .tex files
Date: Sun, 27 Mar 2016 21:53:33 +0200	[thread overview]
Message-ID: <56F83A3D.5050404@alice.it> (raw)
In-Reply-To: <m2bn60oir3.fsf@newartisans.com>

[-- Attachment #1: Type: text/plain, Size: 834 bytes --]



Il 27/03/2016 01:40, John Wiegley ha scritto:
>>>>>> Angelo Graziosi <angelo.graziosi@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

[-- Attachment #2: atom_latex.png --]
[-- Type: image/png, Size: 6875 bytes --]

  reply	other threads:[~2016-03-27 19:53 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-23 23:30 bug#23102: Wrong usage of underscore in .tex files Angelo Graziosi
2016-03-27  0:40 ` John Wiegley
2016-03-27 19:53   ` Angelo Graziosi [this message]
2016-03-28  9:46     ` Tassilo Horn
2016-03-29  8:44       ` Angelo Graziosi
2016-03-29  6:52     ` John Wiegley
2016-03-29  8:42       ` Angelo Graziosi
2022-01-24 11:39 ` Lars Ingebrigtsen

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=56F83A3D.5050404@alice.it \
    --to=angelo.graziosi@alice.it \
    --cc=23102@debbugs.gnu.org \
    --cc=jwiegley@gmail.com \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).