```
From: Timothy <tecosaur@gmail.com>
To: Org Mode List <emacs-orgmode@gnu.org>
Subject: Re: [PATCH] Don't fill displayed equations
Date: Mon, 04 Oct 2021 14:05:56 +0800 [thread overview]
Message-ID: <87k0itgvu4.fsf@gmail.com> (raw)
In-Reply-To: <87bl49kca3.fsf@gmail.com>
Hi All,
Given the way the conversation has evolved I think it may be worth revisiting
another viewpoint to see if anybody has any nice ideas.
As things are, regardless of the complexities of parsing and inline vs.
block elements etc., just considering the user experience when running
org-fill on an example like the one below, the behaviour isn't /nice/.
Might there be some way we could allow for people who are used to LaTeX
and/or like \[ ... \] to have fill behaviour that leaves \[ ... \]
blocks alone? My original idea was changing how org-fill works for
everyone, the discussion has gone on to changing \[ ... \] to a block
element -- both of these seem to have rather significant issues.
Ihor came up with the idea of making org-fill something more
customisable by the user, so that someone could have this behaviour
without making Org behave un-idiomatically for everyone. I proposed
maybe just having a setting could be a halfway house between my original
patch and his idea.
Does anybody have any other thoughts?
> If you’re wondering why I’m so opposed to the current behaviour, that is probably
> best explained by a more realistic demo that what I have in the commit message.
>
> ┌────
> │ Since \(\cos\) is an even function, we can negate the numerator of the argument
> │ without changing the result, giving
> │ \[
> │ \cos \left( \pi \frac{C_1-x}{2C_1+D} \right) \ , \quad C_1 = \frac{D}{2}.
> │ \]
> │ this will be positive over \(x \in (0,D)\), and so we can rewrite \(\tilde{y}\) as,
> │ \[
> │ \tilde{y}(x) = \frac{2D}{\pi} \log \cos \left( \pi \frac{\frac{D}{2}-x}{2D} \right) + C_2.
> │ \]
> │ Once again considering that \(y(0)=y(D)=0\), it is clear that
> │ \[
> │ C_2 = - \frac{2D}{\pi} \log \cos \left( \frac{\pi}{4} \right) = - \frac{2D}{\pi} \log 2^{-\frac{1}{2}} = \frac{D}{\pi} \log 2.
> │ \]
> │ The complete solution for \(\tilde{y}\) is hence,
> │ \[
> │ \tilde{y} = \frac{2D}{\pi} \log \cos \left( \pi \frac{D-2x}{4D} \right) + \frac{D}{\pi} \log 2.
> │ \]
> └────
> is currently filled to
> ┌────
> │ Since \(\cos\) is an even function, we can negate the numerator of the argument
> │ without changing the result, giving \[ \cos \left( \pi \frac{C_1-x}{2C_1+D}
> │ \right) \ , \quad C_1 = \frac{D}{2}. \] this will be positive over \(x \in (0,D)\),
> │ and so we can rewrite \(\tilde{y}\) as, \[ \tilde{y}(x) = \frac{2D}{\pi} \log \cos \left( \pi
> │ \frac{\frac{D}{2}-x}{2D} \right) + C_2. \] Once again considering that
> │ \(y(0)=y(D)=0\), it is clear that \[ C_2 = - \frac{2D}{\pi} \log \cos \left(
> │ \frac{\pi}{4} \right) = - \frac{2D}{\pi} \log 2^{-\frac{1}{2}} = \frac{D}{\pi} \log 2.
> │ \] The complete solution for \(\tilde{y}\) is hence, \[ \tilde{y} = \frac{2D}{\pi} \log \cos
> │ \left( \pi \frac{D-2x}{4D} \right) + \frac{D}{\pi} \log 2. \]
> └────
--
Timothy
```

next prev parent reply other threads:[~2021-10-04 6:16 UTC|newest]Thread overview:45+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-09-30 17:20 [PATCH] Don't fill displayed equations Timothy 2021-09-30 17:44 ` Timothy 2021-09-30 18:51 ` Nicolas Goaziou 2021-09-30 18:54 ` Timothy 2021-09-30 19:02 ` Nicolas Goaziou 2021-09-30 19:17 ` Colin Baxter 2021-09-30 22:11 ` Nicolas Goaziou 2021-09-30 22:26 ` Tim Cross 2021-09-30 19:28 ` Timothy 2021-09-30 20:45 ` Timothy 2021-09-30 22:55 ` Nicolas Goaziou 2021-10-01 7:38 ` Stefan Nobis 2021-10-01 20:41 ` Nicolas Goaziou 2021-10-02 8:17 ` Org syntax: \[ \] as block element instead of inline object Max Nikulin 2021-10-02 10:47 ` Stefan Nobis 2021-10-02 9:57 ` [PATCH] Don't fill displayed equations Stefan Nobis 2021-10-02 10:04 ` Eric S Fraga 2021-10-02 10:18 ` Timothy 2021-10-02 11:24 ` Eric S Fraga 2021-10-02 14:21 ` Max Nikulin 2021-10-02 17:51 ` Tom Gillespie 2021-10-02 18:28 ` Timothy 2021-10-02 18:57 ` Tom Gillespie 2021-10-02 20:25 ` org-latex-preview and latex export blocks Timothy 2021-10-03 8:50 ` [PATCH] Don't fill displayed equations Max Nikulin 2021-10-03 10:56 ` Stefan Nobis 2021-10-03 12:04 ` Max Nikulin 2021-10-04 5:57 ` Tom Gillespie 2021-10-04 17:11 ` Max Nikulin 2021-10-03 12:35 ` Ihor Radchenko 2021-10-01 7:43 ` Timothy 2021-10-02 11:06 ` Nicolas Goaziou 2021-10-02 11:24 ` Timothy 2021-10-03 8:49 ` Ihor Radchenko 2021-10-03 8:50 ` Timothy 2021-10-03 9:13 ` Ihor Radchenko 2021-10-03 9:14 ` Timothy 2021-10-03 9:41 ` Ihor Radchenko 2021-10-03 9:42 ` Timothy 2022-06-18 6:00 ` Ihor Radchenko 2021-10-01 14:42 ` Greg Minshall2021-10-04 6:05 ` Timothy [this message]2021-10-04 7:11 ` Tom Gillespie 2021-10-04 7:15 ` Timothy 2021-10-04 8:11 ` Przemysław Pietrzak

Be sure your reply has aReply 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 List information: https://www.orgmode.org/ * Reply using the--to,--cc, and--in-reply-toswitches of git-send-email(1): git send-email \ --in-reply-to=87k0itgvu4.fsf@gmail.com \ --to=tecosaur@gmail.com \ --cc=emacs-orgmode@gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting theIn-Reply-Toheader via mailto: links, try the mailto: link

Code repositories for project(s) associated with this public inbox https://git.savannah.gnu.org/cgit/emacs/org-mode.git This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).