emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Ihor Radchenko <yantar92@gmail.com>
To: Luca Ferrari <fluca1978@gmail.com>
Cc: emacs-org list <emacs-orgmode@gnu.org>
Subject: Re: prevent underscores to be translates in subscript when exporting to latex
Date: Sat, 08 Oct 2022 22:13:03 +0800	[thread overview]
Message-ID: <87r0ziflow.fsf@localhost> (raw)
In-Reply-To: <CAKoxK+7EvnVME+on1BC6DuNANdpF_6YtH62YLebiNsTXzZCXMg@mail.gmail.com>

Luca Ferrari <fluca1978@gmail.com> writes:

> Hi all,
> I've a link like
> [[https://foo.com/bar_baz.html][https://foo.com/bar_baz.html]] that,
> once rendered in LaTeX, is converted to a subscript like
> bar\textsubscript{baz}.
> Is there a way to prevent this?

Description part of the link can contain markup, including underscore.
Just as if you write bar_baz in paragraph, =_= is interpreted as
subscript.
As usual, to prevent Org markup from being interpreted, you can use
verbatim environment:

[[https://foo.com/bar_baz.html][=https://foo.com/bar_baz.html=]]

or entity

[[https://foo.com/bar_baz.html][https://foo.com/bar\under{}baz.html]]

or you can drop the description part of the link altogether:

[[https://foo.com/bar_baz.html]]


-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>


  reply	other threads:[~2022-10-08 14:13 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-08 13:58 prevent underscores to be translates in subscript when exporting to latex Luca Ferrari
2022-10-08 14:13 ` Ihor Radchenko [this message]
2022-10-08 14:32   ` Luca Ferrari
2022-10-08 14:43 ` Mark Barton
2022-10-12 12:22   ` Luca Ferrari

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.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87r0ziflow.fsf@localhost \
    --to=yantar92@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=fluca1978@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/org-mode.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).