all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Kangas <stefan@marxist.se>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: 25594@debbugs.gnu.org, Tyler Smith <tyler@plantarum.ca>
Subject: bug#25594: 25.1.91; TeX input method is missing \sqrt macro
Date: Mon, 20 Jan 2020 21:14:40 +0100	[thread overview]
Message-ID: <87iml5rikv.fsf@marxist.se> (raw)
In-Reply-To: <87d0hwlv20.fsf@mouse.gnus.org> (Lars Ingebrigtsen's message of "Fri, 26 Jul 2019 16:39:03 +0200")

Lars Ingebrigtsen <larsi@gnus.org> writes:

> Tyler Smith <tyler@plantarum.ca> writes:
>
>> The TeX input method does not provide a translation for the \sqrt macro.
>> The appropriate symbol, unicode Square Root, is available, and can be
>> inserted using the obscure name \surd.
>>
>> Perhaps that's a well-known word to some, but for regular TeX users, it
>> would be very helpful to have the following rule added to the
>> (latin-ltx--define-rules ...) form in lisp/leim/quail/latin-ltx.el:
>>
>>  ("\\sqrt" ?√)
>
> (I'm going through older Emacs bug reports that have received no
> response.)
>
> That seems a reasonable thing to add, and it's in patch form below.  But
> what makes me hesitate to add it is that there's a commented-out
> "\\sqrt[3]" in the file...  Does this mean that this should be
> "\\sqrt[2]"?  Why is it commented out in the first place?  Don't
> latin-ltx people like squares?  And roots?
>
> So if anybody else who uses this input method could weigh in here, that
> would be nice.

No one has commented within 25 weeks.

AFAIK, TeX has the \sqrt command for a basic square root, and \sqrt[3]
for the cubic root.  That suggests that the proposal is fine (we can
leave the sqrt[3] commented out as is for now IMHO).

Best regards,
Stefan Kangas

>
> diff --git a/lisp/leim/quail/latin-ltx.el b/lisp/leim/quail/latin-ltx.el
> index 93b1250a35..aed34d1265 100644
> --- a/lisp/leim/quail/latin-ltx.el
> +++ b/lisp/leim/quail/latin-ltx.el
> @@ -703,6 +703,7 @@
>   ("\\ldq" ?\“)
>   ("\\rdq" ?\”)
>   ("\\defs" ?≙)				; per fuzz/zed
> + ("\\sqrt" ?√)
>   ;; ("\\sqrt[3]" ?∛)
>   ("\\llbracket" ?\〚) 			; stmaryrd
>   ("\\rrbracket" ?\〛)





  reply	other threads:[~2020-01-20 20:14 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-31 22:36 bug#25594: 25.1.91; TeX input method is missing \sqrt macro Tyler Smith
2019-07-26 14:39 ` Lars Ingebrigtsen
2020-01-20 20:14   ` Stefan Kangas [this message]
2020-01-20 20:39     ` Tyler Smith
2020-01-20 23:19       ` James Cloos
2020-01-20 23:58       ` Stefan Kangas
2020-01-22 13:51         ` Lars Ingebrigtsen
2020-01-22 14:07           ` Stefan Kangas
2020-01-22 14:16             ` Lars Ingebrigtsen
2020-01-22 15:43 ` Mattias Engdegård
2020-01-22 15:47   ` 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

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

  git send-email \
    --in-reply-to=87iml5rikv.fsf@marxist.se \
    --to=stefan@marxist.se \
    --cc=25594@debbugs.gnu.org \
    --cc=larsi@gnus.org \
    --cc=tyler@plantarum.ca \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.