From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Thibaut Verron Newsgroups: gmane.emacs.help Subject: Re: Latex superscripts, subscripts and curly braces Date: Tue, 3 Jan 2023 15:09:24 +0100 Message-ID: <97a562b5-6b9e-934f-36e4-5ce3773b4a1a@gmail.com> References: <1340099776.589320.1672406590250@fidget.co-bxl> <87358vcn0n.fsf@dataswamp.org> <1726631081.724336.1672526469788@ichabod.co-bxl> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28230"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 To: Hans Lonsdale , 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 15:10:02 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 1pChzO-000771-QE for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 03 Jan 2023 15:10:02 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pChyx-0002AU-Do; Tue, 03 Jan 2023 09:09:35 -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 1pChyu-0002AE-G8 for help-gnu-emacs@gnu.org; Tue, 03 Jan 2023 09:09:32 -0500 Original-Received: from mail-ej1-x630.google.com ([2a00:1450:4864:20::630]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pChys-0003yW-Rp for help-gnu-emacs@gnu.org; Tue, 03 Jan 2023 09:09:32 -0500 Original-Received: by mail-ej1-x630.google.com with SMTP id jo4so73908316ejb.7 for ; Tue, 03 Jan 2023 06:09:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=yqcjKZTMH73emGeQrGKcs0NkELLyO6oQN+CwNyqlLCU=; b=ZRH0pbvMZGI0EBgul4GuTcjE7hRyUAUEogHHhplJVDqechhL0ghf8vuvaZq8z3ERNe B2p1XvImO9LsvMLvcwQilOCL2y0Byzpu57S+npAEAYA9s67bMxLtPV6JxwMdKzvZnQ2s MKSXOqgo0zrqFF1q64/5ncLMt7rbMUZm7phlFOFE97jhXcKGw5gDh5qt3hP13rZ4VD+G FKZ/vurHlSjIHaMKWBpRdPn0ZP4PpT5hYg2NVyyjGlAMHsO0TN2iy0vH2LAYkwihnFfc AB6MkvN1leG9uDLmwyddXD92UKMmWGUl7vvkBmu53oMF6ptqcn2v1lLZR+NvnyvroCxB DLKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=yqcjKZTMH73emGeQrGKcs0NkELLyO6oQN+CwNyqlLCU=; b=EWx/pd3nNHkRjDQpaVP+qpDu4A2GDVjtf1kT28h2G/p7lctqziysAC7WsBZI1KZKV+ iA3gyhDOhbI4azI84Jr3bax46MXsEf0jeGGV2b4ZZeuvwItRdQZU7rH0ux2EISFATWIs R3raaIeEpws1EIIZS5OFLkhWcnoICUip3xB1CDtnLFQ5COXNmaYKMdnwoHu2x7JPdHPJ WeLBv9gaKS3nQvytLDdhJPff37dkflVzLG1f/wesQlUBx+eiU8SEGSvcHrL1rLqFCtH1 YVhI3JbQEoiQh91qKttGD1HKqQOAxYug2vE/L3vRGIvX710KsgivhegpQe2ZT6pfSm4V /RCA== X-Gm-Message-State: AFqh2kpqSWkmzsR2tpFcJZM8Atd/GecYdiQl8PdZdTdGUvvFGv42FRBi tUnFmqhnlDS6zyoJyIFW5Ww= X-Google-Smtp-Source: AMrXdXuK/UA1fYg7NttAp6IIhiZQD0OgC430yl3dkt1Ie3Qo6E5ciA1McBAjkIOWKqWp+XAEMlJZMQ== X-Received: by 2002:a17:906:850c:b0:7c0:f44d:984 with SMTP id i12-20020a170906850c00b007c0f44d0984mr50998833ejx.74.1672754965686; Tue, 03 Jan 2023 06:09:25 -0800 (PST) Original-Received: from ?IPV6:2001:628:2010:4094:1dab:9fdf:c5cf:8426? ([2001:628:2010:4094:1dab:9fdf:c5cf:8426]) by smtp.gmail.com with ESMTPSA id r18-20020a170906549200b007c0b28b85c5sm13997235ejo.138.2023.01.03.06.09.24 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 03 Jan 2023 06:09:25 -0800 (PST) Content-Language: en-US In-Reply-To: <1726631081.724336.1672526469788@ichabod.co-bxl> Received-SPF: pass client-ip=2a00:1450:4864:20::630; envelope-from=thibaut.verron@gmail.com; helo=mail-ej1-x630.google.com X-Spam_score_int: -51 X-Spam_score: -5.2 X-Spam_bar: ----- X-Spam_report: (-5.2 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, NICE_REPLY_A=-3.103, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham 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:142109 Archived-At: 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. 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. 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