From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#25594: 25.1.91; TeX input method is missing \sqrt macro Date: Mon, 20 Jan 2020 21:14:40 +0100 Message-ID: <87iml5rikv.fsf@marxist.se> References: <1485902188.2097642.866051648.4BFB3785@webmail.messagingengine.com> <87d0hwlv20.fsf@mouse.gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="82276"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 25594@debbugs.gnu.org, Tyler Smith To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jan 20 21:15:20 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1itdS9-000L4I-FI for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 20 Jan 2020 21:15:17 +0100 Original-Received: from localhost ([::1]:43750 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1itdS8-0003H9-CZ for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 20 Jan 2020 15:15:16 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40883) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1itdRy-0003Gl-1D for bug-gnu-emacs@gnu.org; Mon, 20 Jan 2020 15:15:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1itdRu-0007X6-EM for bug-gnu-emacs@gnu.org; Mon, 20 Jan 2020 15:15:05 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40162) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1itdRu-0007Wc-6a for bug-gnu-emacs@gnu.org; Mon, 20 Jan 2020 15:15:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1itdRu-0002EH-1O for bug-gnu-emacs@gnu.org; Mon, 20 Jan 2020 15:15:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 20 Jan 2020 20:15:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25594 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 25594-submit@debbugs.gnu.org id=B25594.15795512958538 (code B ref 25594); Mon, 20 Jan 2020 20:15:01 +0000 Original-Received: (at 25594) by debbugs.gnu.org; 20 Jan 2020 20:14:55 +0000 Original-Received: from localhost ([127.0.0.1]:46135 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1itdRj-0002Dc-V3 for submit@debbugs.gnu.org; Mon, 20 Jan 2020 15:14:55 -0500 Original-Received: from ted.gofardesign.uk ([67.225.143.91]:43010) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1itdRg-0002DK-4u for 25594@debbugs.gnu.org; Mon, 20 Jan 2020 15:14:51 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=marxist.se; s=default; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID: Date:References:In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=e6x/QQuM7RcSoAYp91+uEi3z1vhTzewQSeMCNgEtGdI=; b=PmvGMEnn+etOR6/6v1Nl6Be+QM xLeQRVPH37YxQ8TO97PgKNKGYS0GDfmIWDSm7jDsedz+xJVzwWdJUdDlSFcT1Fa83NV1xPAtuwwzI PuW3kRlw0H8Wkm58/rFGR8JaSB/KzfmNpWmHgC9ee4ObVd1AzBVjFAf1uV7l7NLZLBDD4Yph3cplH MYLvG35oUtBHj9yVKBo4T5sHRX0nmgS1M6whkHwBpXOiPu5+XqI6+y5HTaXUJzfxCTg63HfINCDEH pnv4+9WCNGlMIbWrBeHXX1aypn+sbbcT065CGIRiaF3Glnzn2diL/0BkpjTHpBjSzulFrh5yraYuI ntiaWYMg==; Original-Received: from h-70-69.a785.priv.bahnhof.se ([155.4.70.69]:54902 helo=localhost) by ted.gofardesign.uk with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92) (envelope-from ) id 1itdRa-000Abe-1W; Mon, 20 Jan 2020 15:14:42 -0500 In-Reply-To: <87d0hwlv20.fsf@mouse.gnus.org> (Lars Ingebrigtsen's message of "Fri, 26 Jul 2019 16:39:03 +0200") X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - ted.gofardesign.uk X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - marxist.se X-Get-Message-Sender-Via: ted.gofardesign.uk: authenticated_id: stefan@marxist.se X-Authenticated-Sender: ted.gofardesign.uk: stefan@marxist.se X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:174955 Archived-At: Lars Ingebrigtsen writes: > Tyler Smith 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" ?=E2=88=9A) > > (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" ?\=E2=80=9C) > ("\\rdq" ?\=E2=80=9D) > ("\\defs" ?=E2=89=99) ; per fuzz/zed > + ("\\sqrt" ?=E2=88=9A) > ;; ("\\sqrt[3]" ?=E2=88=9B) > ("\\llbracket" ?\=E3=80=9A) ; stmaryrd > ("\\rrbracket" ?\=E3=80=9B)