From: Matt Huszagh <huszaghmatt@gmail.com>
To: sebastien.miquel@posteo.eu
Cc: , "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: [Patch] Align baseline of latex fragments and surrounding text
Date: Fri, 10 Dec 2021 20:53:29 -0800 [thread overview]
Message-ID: <87fsqzn3na.fsf@gmail.com> (raw)
In-Reply-To: <b341a28b-5434-b151-494e-c6847c364009@posteo.eu>
Sébastien Miquel <sebastien.miquel@posteo.eu> writes:
> My mistake. For some reason, I had thought that
> =\documentclass[preview]{standalone}= was used by default for LaTeX
> previews. Setting it as described in your patch, it now works
> properly, even with the default value of =dvisvgm=.
No worries; glad you got it working.
> To make this behavior easier to toggle, you could
> 1. Change the default value of =org-format-latex-header=. The
> =standalone= class makes sense, but I don't know if that might
> break things.
> 2. Specify the =:latex-header= of the default =dvisvgm= option. Same
> caveat applies.
> 3. Add a =dvisvgm-with-ascent= option to the default value of
> =org-preview-latex-process-alist=.
>
> Instead of the new variable =org-latex-fragment-overlay-ascent=,
> perhaps the function used to compute the ascent could be provided as
> another property, such as =:ascent=, added to the relevant options in
> =org-preview-latex-process-alist=. It seems to make more sense since
> it only applies to svg output, and it makes it easier to have this
> behavior as default. It would require =org--make-preview-overlay= to
> take the ascent as an additional argument.
These are nice ideas, and ones I hadn't considered. Thanks for the
suggestions! I'll think about it a bit and may modify the patch
accordingly.
> Please note that I am not a maintainer, these are just a few thoughts.
> I do hope your work can be applied and that LaTeX fragments can be
> properly aligned by default.
>
> You should add [PATCH] to the subject of your mail, so that it gets
> listed at https://updates.orgmode.org/ and not forgotten. A maintainer
> will reply eventually, but it might take up to a few months.
Also a good suggestion. Fortunately, "Patch" seems to have been caught
by that tool. But [PATCH] seems more typical and I've updated the
subject for that.
Matt
next prev parent reply other threads:[~2021-12-11 4:54 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-10 23:23 Patch to align baseline of latex fragments and surrounding text Matt Huszagh
2021-10-10 23:29 ` Matt Huszagh
2021-12-03 2:32 ` Matt Huszagh
2021-12-09 20:59 ` Sébastien Miquel
2021-12-09 22:18 ` Matt Huszagh
2021-12-10 15:49 ` Sébastien Miquel
2021-12-11 4:53 ` Matt Huszagh [this message]
2022-07-30 9:55 ` [Patch] Align " Ihor Radchenko
2024-01-19 6:41 ` Matt Huszagh
2024-01-19 9:33 ` Timothy
Reply 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-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87fsqzn3na.fsf@gmail.com \
--to=huszaghmatt@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=sebastien.miquel@posteo.eu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).