From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Hans Lonsdale Newsgroups: gmane.emacs.help Subject: Re: Latex superscripts, subscripts and curly braces Date: Tue, 3 Jan 2023 15:17:43 +0100 (CET) Message-ID: <541670412.954007.1672755463023@ichabod.co-bxl> References: <1340099776.589320.1672406590250@fidget.co-bxl> <87358vcn0n.fsf@dataswamp.org> <1726631081.724336.1672526469788@ichabod.co-bxl> <97a562b5-6b9e-934f-36e4-5ce3773b4a1a@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32073"; mail-complaints-to="usenet@ciao.gmane.io" To: Thibaut Verron , Emanuel Berg , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jan 03 18:40:06 2023 Return-path: Envelope-to: geh-help-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 1pClGg-00085Z-BE for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 03 Jan 2023 18:40:06 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pClGF-0003dM-Rm; Tue, 03 Jan 2023 12:39:39 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pClGD-0003cw-UB for help-gnu-emacs@gnu.org; Tue, 03 Jan 2023 12:39:37 -0500 Original-Received: from wilbur.contactoffice.com ([212.3.242.68]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pClGC-00076d-0R for help-gnu-emacs@gnu.org; Tue, 03 Jan 2023 12:39:37 -0500 Original-Received: from hologram (hologram.co-bxl [10.2.0.17]) by wilbur.contactoffice.com (Postfix) with ESMTP id 811791761; Tue, 3 Jan 2023 18:39:32 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1672767572; s=20210208-e7xh; d=mailfence.com; i=hanslonsdale@mailfence.com; h=Date:From:To:Message-ID:In-Reply-To:References:Subject:MIME-Version:Content-Type:Content-Transfer-Encoding; l=2127; bh=INv4McKIKIVy6a2nmB4xpSKGsZLy+i2W43Srv491IQg=; b=cSv+aktirGUCTqOIVrcWOaImPXvBD/jecBCNLUU/7frBrkYdPRn6duIzMdMRZexg XW/z+05hTUJvxq6fFXi4clEk7jaLeT6sVf/c2Zu8Goaq0CjHjWPyATq1jVApVmVOENp 7pnjWNRGN+NxnXCL4R3GvJRSk/LSpREMo/O1P7zkjy2VquBa3yqPZvbbhOPh/lK07cC SuwpHccdECmzR3JS41RdM/p3KSDw2mv3C7MS6ij3sqR1xUNfN8pL+VK9vTIQSAG92Jy cX97H2IjnexaS6VJBQA9HyfSqJqmqbHlNj4I/sKYRMhi6LP5CbBg5P0b0FM/I4OPrUq pOqkw5jqLw== In-Reply-To: <97a562b5-6b9e-934f-36e4-5ce3773b4a1a@gmail.com> X-Mailer: ContactOffice Mail X-ContactOffice-Account: com:377787701 Received-SPF: pass client-ip=212.3.242.68; envelope-from=hanslonsdale@mailfence.com; helo=wilbur.contactoffice.com X-Spam_score_int: -11 X-Spam_score: -1.2 X-Spam_bar: - X-Spam_report: (-1.2 / 5.0 requ) BAYES_00=-1.9, DATE_IN_PAST_03_06=1.592, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:142112 Archived-At: > ---------------------------------------- > From: Thibaut Verron > Sent: Tue Jan 03 15:09:24 CET 2023 > To: Hans Lonsdale , Emanuel Berg , > Subject: Re: Latex superscripts, subscripts and curly braces > > > From: Emanuel Berg > >> Sent: Sat Dec 31 21:54:16 CET 2022 > >> To: > >> Subject: Re: Latex superscripts, subscripts and curly braces > >> > >> > >> Hans Lonsdale wrote: > >> > >>> I am using latex-mode, which is able to shift superscripts > >>> upwards, and subscripts downwards, using a smaller font. > >>> For simple cases the shifting works well. > >> Are we talking when you edit the source? > > Perhaps there can be two levels, one showing _^ {} and a setting to show things without them. > > Hi, > > org-mode can do it with (setq org-pretty-entities t) and (setq > org-pretty-entities-include-sub-superscripts). > > I cannot find any setting to do the same thing with latex buffers, but > it should certainly be possible to at least reproduce org's implementation. My intention is to also have that in tex-mode and latex-mode as well. > For that it's worth, I usually *disable* such things, because they make > it very awkward to edit subscripts and superscripts. The effect is that > the ^ _ and the braces are hidden, but they can still be input and > deleted, and in my experience it's very easy to end up in broken > configurations with that. My intention is to have a key binding to change the visualisation. I usually make changes to the code rather than to the prettified version. > Instead, I use a proportional font, which makes the braces thin enough > to not be annoying. And the scripts are only shifted up or down without > changing their size -- that may come from my theme, I can't find > anything in my config for that. All together, even long scripts are very > easy to visualize and edit. > > Best wishes, > > Thibaut > -- Sent with https://mailfence.com Secure and private email