all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Bug: Bottom align LaTeX previews [9.1.9 (release_9.1.9-65-g5e4542 @ /home/carlos/local/stow/emacs-26/share/emacs/26.1.50/lisp/org/)]
@ 2018-09-25 21:49 Carlos Pita
  2018-09-26 10:56 ` Nicolas Goaziou
  0 siblings, 1 reply; 5+ messages in thread
From: Carlos Pita @ 2018-09-25 21:49 UTC (permalink / raw)
  To: emacs-orgmode

This was discussed here:

https://www.reddit.com/r/emacs/comments/9ggimh/bottom_align_latex_previews_in_org_mode/

Here is a screenshot:

https://i.redd.it/n83ri6campm11.png

For inline previews centering is clearly suboptimal, after all text in a
sentence is supposed to be bottom aligned.

Currently this behavior is not configurable, you have to change the :ascent 'center property in org--format-latex-make-overlay.


Emacs  : GNU Emacs 26.1.50 (build 8, x86_64-pc-linux-gnu, GTK+ Version 3.24.1)
 of 2018-09-25
Package: Org mode version 9.1.9 (release_9.1.9-65-g5e4542 @ /home/carlos/local/stow/emacs-26/share/emacs/26.1.50/lisp/org/)

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Bug: Bottom align LaTeX previews [9.1.9 (release_9.1.9-65-g5e4542 @ /home/carlos/local/stow/emacs-26/share/emacs/26.1.50/lisp/org/)]
  2018-09-25 21:49 Bug: Bottom align LaTeX previews [9.1.9 (release_9.1.9-65-g5e4542 @ /home/carlos/local/stow/emacs-26/share/emacs/26.1.50/lisp/org/)] Carlos Pita
@ 2018-09-26 10:56 ` Nicolas Goaziou
  2018-09-26 14:15   ` Tobias Zawada
  0 siblings, 1 reply; 5+ messages in thread
From: Nicolas Goaziou @ 2018-09-26 10:56 UTC (permalink / raw)
  To: Carlos Pita; +Cc: emacs-orgmode

Hello,

Carlos Pita <carlosjosepita@gmail.com> writes:

> This was discussed here:
>
> https://www.reddit.com/r/emacs/comments/9ggimh/bottom_align_latex_previews_in_org_mode/
>
> Here is a screenshot:
>
> https://i.redd.it/n83ri6campm11.png
>
> For inline previews centering is clearly suboptimal, after all text in a
> sentence is supposed to be bottom aligned.

No it isn't. Think about \(p + q\). Those are not bottom aligned. Or
\(\frac{1}{2}\).

Since there is no reliable way to know where the baseline is, 'center is
the less awful solution, IMO.

Regards,

-- 
Nicolas Goaziou

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Bug: Bottom align LaTeX previews [9.1.9 (release_9.1.9-65-g5e4542 @ /home/carlos/local/stow/emacs-26/share/emacs/26.1.50/lisp/org/)]
  2018-09-26 10:56 ` Nicolas Goaziou
@ 2018-09-26 14:15   ` Tobias Zawada
  2018-09-26 16:11     ` Carlos Pita
  0 siblings, 1 reply; 5+ messages in thread
From: Tobias Zawada @ 2018-09-26 14:15 UTC (permalink / raw)
  To: Nicolas Goaziou, Carlos Pita; +Cc: emacs-orgmode

Hello,

> Nicolas Goaziou <mail@nicolasgoaziou.fr> hat am 26. September 2018 um 12:56 geschrieben:
> 
> 
> Hello,
> 
> Carlos Pita <carlosjosepita@gmail.com> writes:
> > This was discussed here:
> > https://www.reddit.com/r/emacs/comments/9ggimh/bottom_align_latex_previews_in_org_mode/
> > Here is a screenshot:
> > https://i.redd.it/n83ri6campm11.png
> > For inline previews centering is clearly suboptimal, after all text in a
> > sentence is supposed to be bottom aligned.
> 
> No it isn't. Think about \(p + q\). Those are not bottom aligned. Or
> \(\frac{1}{2}\).
> 
> Since there is no reliable way to know where the baseline is, 'center is
> the less awful solution, IMO.

texfrag-mode renders LaTeX equations in org-mode buffers baseline aligned.

See: https://imgur.com/a/CL7zkgK

Regards,
Tobias

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Bug: Bottom align LaTeX previews [9.1.9 (release_9.1.9-65-g5e4542 @ /home/carlos/local/stow/emacs-26/share/emacs/26.1.50/lisp/org/)]
  2018-09-26 14:15   ` Tobias Zawada
@ 2018-09-26 16:11     ` Carlos Pita
  2018-09-26 20:24       ` Carlos Pita
  0 siblings, 1 reply; 5+ messages in thread
From: Carlos Pita @ 2018-09-26 16:11 UTC (permalink / raw)
  To: Tobias Zawada; +Cc: emacs-orgmode, Nicolas Goaziou

Hi,

Nicolas: I see you point and I should have said baseline not bottom.
Many *inline* formulas are not quite like your examples though and
even when the glyphs have some descent they tend too look more
naturally (even if imperfectly) aligned at the bottom IMO.

Tobias: that's really nice, thanks!

Now, isn't it possible within reason to take inspiration from texfrag
mode in order to improve org mode alignment? What do you think,
Tobias, is that too hard?

Thanks!

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Bug: Bottom align LaTeX previews [9.1.9 (release_9.1.9-65-g5e4542 @ /home/carlos/local/stow/emacs-26/share/emacs/26.1.50/lisp/org/)]
  2018-09-26 16:11     ` Carlos Pita
@ 2018-09-26 20:24       ` Carlos Pita
  0 siblings, 0 replies; 5+ messages in thread
From: Carlos Pita @ 2018-09-26 20:24 UTC (permalink / raw)
  To: Tobias Zawada; +Cc: emacs-orgmode, Nicolas Goaziou

[-- Attachment #1: Type: text/plain, Size: 213 bytes --]

> even when the glyphs have some descent they tend too look more
> naturally (even if imperfectly) aligned at the bottom IMO.

See the attached screenshots for an example of this with an ascent of
90 vs centered.

[-- Attachment #2: Screenshot_2018-09-26_17:20:42.png --]
[-- Type: image/png, Size: 2755 bytes --]

[-- Attachment #3: Screenshot_2018-09-26_17:22:16.png --]
[-- Type: image/png, Size: 3110 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-09-26 20:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-09-25 21:49 Bug: Bottom align LaTeX previews [9.1.9 (release_9.1.9-65-g5e4542 @ /home/carlos/local/stow/emacs-26/share/emacs/26.1.50/lisp/org/)] Carlos Pita
2018-09-26 10:56 ` Nicolas Goaziou
2018-09-26 14:15   ` Tobias Zawada
2018-09-26 16:11     ` Carlos Pita
2018-09-26 20:24       ` Carlos Pita

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.