unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: pietru@caramail.com
To: Tassilo Horn <tsdh@gnu.org>
Cc: help-gnu-emacs@gnu.org
Subject: Re: tex-mode prettify-symbols-alist  for ("\\cos" . ?cos)
Date: Sun, 14 Feb 2021 00:51:46 +0100	[thread overview]
Message-ID: <trinity-2ae7eb89-0a9c-44d2-9a11-0f7f5f79c0ff-1613260306552@3c-app-mailcom-bs12> (raw)
In-Reply-To: <87blcnh6uw.fsf@gnu.org>

For delimeters do I need to escape using "\"

("\\lbrace" . ?\{) ("\\rbrace" . ?\}) ("\\lbrack" . ?\[)
("\\rbrack" . ?\]) ("\\langle" . ?\⟨) ("\\rangle" . ?\⟩)
("\\lceil" . ?⌈) ("\\rceil" . ?⌉) ("\\lfloor" . ?⌊)
("\\rfloor" . ?⌋)


> Sent: Sunday, February 14, 2021 at 11:38 AM
> From: "Tassilo Horn" <tsdh@gnu.org>
> To: help-gnu-emacs@gnu.org
> Subject: Re: tex-mode prettify-symbols-alist  for ("\\cos" . ?cos)
>
> pietru@caramail.com writes:
> 
> > I want to prettify "\cos" to be "cos".  Have used ("\\cos" . ?cos)
> > but this gives
> >
> > Invalid read syntax: ?
> 
> That's because ?cos is no character.  ?c would be.  The replacements of
> `prettify-symbols-alist' must be characters (or something being valid
> input for `compose-region's 3rd parameter).
> 
> Bye,
> Tassilo
> 
>



      reply	other threads:[~2021-02-13 23:51 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-13 23:31 tex-mode prettify-symbols-alist for ("\\cos" . ?cos) pietru
2021-02-13 23:38 ` Tassilo Horn
2021-02-13 23:51   ` pietru [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=trinity-2ae7eb89-0a9c-44d2-9a11-0f7f5f79c0ff-1613260306552@3c-app-mailcom-bs12 \
    --to=pietru@caramail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=tsdh@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).