From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id sAXfM30nVmFjRAEAgWs5BA (envelope-from ) for ; Thu, 30 Sep 2021 23:09:17 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id YMBkL30nVmE9cwAAbx9fmQ (envelope-from ) for ; Thu, 30 Sep 2021 21:09:17 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 664DE350F4 for ; Thu, 30 Sep 2021 23:09:17 +0200 (CEST) Received: from localhost ([::1]:38384 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mW3Iq-0005yz-Iw for larch@yhetil.org; Thu, 30 Sep 2021 17:09:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33234) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mW3C8-0006Y4-2O for emacs-orgmode@gnu.org; Thu, 30 Sep 2021 17:02:20 -0400 Received: from mail-pf1-x42e.google.com ([2607:f8b0:4864:20::42e]:33712) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mW3C5-0003nB-UF for emacs-orgmode@gnu.org; Thu, 30 Sep 2021 17:02:19 -0400 Received: by mail-pf1-x42e.google.com with SMTP id s16so6130344pfk.0 for ; Thu, 30 Sep 2021 14:02:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:references:user-agent:in-reply-to :message-id:mime-version; bh=M3aRMqicmWW82kBvMtDpTGq+RyQPigEnpgxKsOJoO8A=; b=ZH3BzgllLm0x/ABOLvwd8GvnypZxmHiDrsJles0mNygBLUJ1ySlXfYc0Majsc7MUkT lTJOOZoznyJkRRhN1XxdxeTgnsYFSvJVdoAExyDcfihIXUf0/InrVGfwxc4duuJpyFJJ 4eSF48DYuWHPfc68YBC0EOqnNrOT+R/SFA8s4EEwTlfhknGzyVLCWXTQOp4IWCwwe5X3 erqy7xphnElRnD09vhBWDGOxcbQQQvmccilxRXWz0ILs1veN4LBhIiphfQPAZj/fKH8t qE3O6uaWx63cBnXwiI3XHG5sIM/d3qZlpCQgjXNYqmxvfaQX8XBEJvrCU0KOnWx9lH+L bz8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:references:user-agent :in-reply-to:message-id:mime-version; bh=M3aRMqicmWW82kBvMtDpTGq+RyQPigEnpgxKsOJoO8A=; b=OKHaMqrGI1TUCQhcz3vkZFn9LuJ8KzZCTFrrkTDqFYSaJzSUGzOahw+JOEMVc5TD4Y U2wUxKCF7ca8bxiQOduL9+6We724UGGaRN1TFqMcslSoWmuBGVwp8dcT9BnAa/XGLqvt NATPVKTDgIhJGFwpU+Qb/ZU0lGbg5TtHrp3qUGyg5ndPBUuo6TxOHsYx2VzDU+8x9a0E OZVh9ji9nJjPiO3xPyFBmW4fbRBykqSuE9BahFfimXJqynv5kgpdWA6OYEF5W07gCnAW OWM9v7h7YJfNTo8h7TWAUMfKB9k64LWP/KRuX52Rf4bBhxHc8GSdgB0tha4lnUZ6Mpw1 AyFw== X-Gm-Message-State: AOAM532cufdhqAz3AyqQV6EaD/lsbK8ohQJv0w6W2lp3v4P/T6pS2YRA zto7kdTjgffDwNCnzP9EjLwlQO1PAWw= X-Google-Smtp-Source: ABdhPJzi5gogLMlptLl0fn29x5MJ0AIG8CM57F/ABQZJkvU4AIiUqnryHN9ZhObbo7o7pdnHNkEVmw== X-Received: by 2002:a63:564a:: with SMTP id g10mr3709280pgm.199.1633035736009; Thu, 30 Sep 2021 14:02:16 -0700 (PDT) Received: from localhost (61-245-128-160.3df580.per.nbn.aussiebb.net. [61.245.128.160]) by smtp.gmail.com with ESMTPSA id p10sm3803258pge.38.2021.09.30.14.02.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Sep 2021 14:02:15 -0700 (PDT) From: Timothy To: Nicolas Goaziou Subject: Re: [PATCH] Don't fill displayed equations Date: Fri, 01 Oct 2021 04:45:42 +0800 References: <87czoq7z3p.fsf@gmail.com> <87tui1ew1o.fsf@nicolasgoaziou.fr> <871r5599j7.fsf@gmail.com> <87pmspevjy.fsf@nicolasgoaziou.fr> User-agent: mu4e 1.6.5; emacs 28.0.50 In-reply-to: <87pmspevjy.fsf@nicolasgoaziou.fr> Message-ID: <87bl49kca3.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=2607:f8b0:4864:20::42e; envelope-from=tecosaur@gmail.com; helo=mail-pf1-x42e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, 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: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Org Mode List Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1633036157; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=M3aRMqicmWW82kBvMtDpTGq+RyQPigEnpgxKsOJoO8A=; b=Lme27bJPTAL1lQ+KeVfvj7QuXIDR+IBOIT7xCUCmjFR5aouI22al5O14aiDX5g1dBdGHXJ ijGYp39hsrLhFHNBCBijeJtBJfeyW2Go/+StqOtViroPBgNcphFZjtH4Hb24JZd3EoFc0j 6eWi/Q01BEsx2FC0ueybULOLuLbj+X+4Om7XoX5nfXHkaQMGEc5d0mTv7eqvLsSQiFyv9H E3sUVuWCvd/UMCSg371PNd4uA54FrI8MZyST5RjCOi+vhWR+f3T3//ikt/Gdm56+K2lF2v aevnG7YydTZcFekcrtim9RvDa0KiyucSYc0HlBNynM3NvIluH7qwVF7fuAMyXA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1633036157; a=rsa-sha256; cv=none; b=adt9YvdNGjuFnzjPqJKLI7ogWwAMtpm0SHL//ZzKTvoLpYuwtff/tX+ZTaB8Vh5ravdhwF VTuq5ZTLbkgoZEHx9fmzWTzbZEy3hNsZ0Y8elU8tLROQ+Thxmd/1vvZvHORZEQgLHBEoFx 0fz2QWTqHi4AAEs9pNDzetG5sNTCQPzN1c/9u+HB7XftuExKYY+e4doCSYHtppk1cb5hFj 7rUPN+9MlWbHOYvf/huUPHN6TLK3g3rxirvIS2xuIWaidDJSABJVNfOBT46orsfLEs4VQ6 o6QVlLgdwzUfpqmKtmb/+t/b9eO73NSijS1i3wVKnDekFZOclkt+Zks6IPBwRg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=ZH3Bzgll; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -3.00 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=ZH3Bzgll; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 664DE350F4 X-Spam-Score: -3.00 X-Migadu-Scanner: scn1.migadu.com X-TUID: 2Uk3aSqDm+dj --=-=-= Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Nicolas, I think there are also some relevant points which I haven=E2=80=99t mention= ed so far, separate from my thoughts that since we=E2=80=99re using the LaTeX syntax w= e should be consistent with how LaTeX treats this. > As I wrote above, they do not belong to the same category of syntax. > There=E2=80=99s no reason to special case .... I think we already do special-case `\[ ... \]' somewhat. When refer to inli= ne elements like bold, verbatim, italic, etc. they sit in the text. Semantical= ly, this doesn=E2=80=99t hold for `\[ ... \]' either. The semantically inline m= aths element is `\( ... \)'. Considering other =E2=80=9Cinline=E2=80=9D syntax elements, li= ke bold, verbatim, italic, etc. if you spread the delimiters across multiple lines that doesn= =E2=80=99t work. So I=E2=80=99d argue the ship has already sailed on treating `\[ ... = \]' differently to other inline elements. If you=E2=80=99re wondering why I=E2=80=99m so opposed to the current behav= iour, that is probably best explained by a more realistic demo that what I have in the commit mess= age. =E2=94=8C=E2=94=80=E2=94=80=E2=94=80=E2=94=80 =E2=94=82 Since \(\cos\) is an even function, we can negate the numerator o= f the argument =E2=94=82 without changing the result, giving =E2=94=82 \[ =E2=94=82 \cos \left( \pi \frac{C_1-x}{2C_1+D} \right) \ , \quad C_1 =3D = \frac{D}{2}. =E2=94=82 \] =E2=94=82 this will be positive over \(x \in (0,D)\), and so we can rewrite= \(\tilde{y}\) as, =E2=94=82 \[ =E2=94=82 \tilde{y}(x) =3D \frac{2D}{\pi} \log \cos \left( \pi \frac{\fra= c{D}{2}-x}{2D} \right) + C_2. =E2=94=82 \] =E2=94=82 Once again considering that \(y(0)=3Dy(D)=3D0\), it is clear that =E2=94=82 \[ =E2=94=82 C_2 =3D - \frac{2D}{\pi} \log \cos \left( \frac{\pi}{4} \right)= =3D - \frac{2D}{\pi} \log 2^{-\frac{1}{2}} =3D \frac{D}{\pi} \log 2. =E2=94=82 \] =E2=94=82 The complete solution for \(\tilde{y}\) is hence, =E2=94=82 \[ =E2=94=82 \tilde{y} =3D \frac{2D}{\pi} \log \cos \left( \pi \frac{D-2x}{4= D} \right) + \frac{D}{\pi} \log 2. =E2=94=82 \] =E2=94=94=E2=94=80=E2=94=80=E2=94=80=E2=94=80 is currently filled to =E2=94=8C=E2=94=80=E2=94=80=E2=94=80=E2=94=80 =E2=94=82 Since \(\cos\) is an even function, we can negate the numerator o= f the argument =E2=94=82 without changing the result, giving \[ \cos \left( \pi \frac{C_1-= x}{2C_1+D} =E2=94=82 \right) \ , \quad C_1 =3D \frac{D}{2}. \] this will be positive o= ver \(x \in (0,D)\), =E2=94=82 and so we can rewrite \(\tilde{y}\) as, \[ \tilde{y}(x) =3D \frac= {2D}{\pi} \log \cos \left( \pi =E2=94=82 \frac{\frac{D}{2}-x}{2D} \right) + C_2. \] Once again considering= that =E2=94=82 \(y(0)=3Dy(D)=3D0\), it is clear that \[ C_2 =3D - \frac{2D}{\pi}= \log \cos \left( =E2=94=82 \frac{\pi}{4} \right) =3D - \frac{2D}{\pi} \log 2^{-\frac{1}{2}} = =3D \frac{D}{\pi} \log 2. =E2=94=82 \] The complete solution for \(\tilde{y}\) is hence, \[ \tilde{y}= =3D \frac{2D}{\pi} \log \cos =E2=94=82 \left( \pi \frac{D-2x}{4D} \right) + \frac{D}{\pi} \log 2. \] =E2=94=94=E2=94=80=E2=94=80=E2=94=80=E2=94=80 Suffice to say, I find the second terrible to read compared to the first. Furthermore, when using org-latex-preview, wrapped `\[ ... \]' blocks join = lines, resulting in lines that are displayed going off edge of the page after fill= ing. Basically, this leads to a worse experience when using Org in what I would = think to be a perfectly reasonably way. All the best, Timothy --=-=-=--