emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [QUERY] Anyone using multiple org-preview-latex-process-alist commands?
@ 2023-01-10  8:15 Timothy
  2023-01-10  9:04 ` Fraga, Eric
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Timothy @ 2023-01-10  8:15 UTC (permalink / raw)
  To: emacs-orgmode

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

Hi All,

In my rewrite of the LaTeX preview system, I’m finding it a bit annoying dealing
with the potential of multiple commands being used in the
`org-preview-latex-process-alist'’s
`:latex-compiler'/`:latex-precompiler'/`:image-converter' properties.

I’m hence considering adding support for a string value, and deprecating support
for multiple-command lists.

Does anybody actually use multiple commands? If so, for what purpose?

All the best,
Timothy

-- 
Timothy (‘tecosaur’/‘TEC’), Org mode contributor.
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/tec>.

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

* Re: [QUERY] Anyone using multiple org-preview-latex-process-alist commands?
  2023-01-10  8:15 [QUERY] Anyone using multiple org-preview-latex-process-alist commands? Timothy
@ 2023-01-10  9:04 ` Fraga, Eric
  2023-01-10 17:50 ` Nick Dokos
  2023-01-10 18:30 ` Nick Dokos
  2 siblings, 0 replies; 4+ messages in thread
From: Fraga, Eric @ 2023-01-10  9:04 UTC (permalink / raw)
  To: Timothy; +Cc: emacs-orgmode@gnu.org

On Tuesday, 10 Jan 2023 at 16:15, Timothy wrote:
> Does anybody actually use multiple commands? If so, for what purpose?

If it helps, I didn't even know this variable existed.

However, implicitly, I guess I've used it in that I specific one of the
three methods in my documents, sometimes switching between alternatives
depending on the type of LaTeX snippets I have in my document and how I
am going to use the exported version.  I guess you will still enable
alternative methods for image generation?

-- 
: Eric S Fraga, with org release_9.6-201-gb58fba in Emacs 30.0.50

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

* Re: [QUERY] Anyone using multiple org-preview-latex-process-alist commands?
  2023-01-10  8:15 [QUERY] Anyone using multiple org-preview-latex-process-alist commands? Timothy
  2023-01-10  9:04 ` Fraga, Eric
@ 2023-01-10 17:50 ` Nick Dokos
  2023-01-10 18:30 ` Nick Dokos
  2 siblings, 0 replies; 4+ messages in thread
From: Nick Dokos @ 2023-01-10 17:50 UTC (permalink / raw)
  To: emacs-orgmode

Timothy <orgmode@tec.tecosaur.net> writes:

> Hi All,
>
> In my rewrite of the LaTeX preview system, I’m finding it a bit
> annoying dealing with the potential of multiple commands being used
> in the `org-preview-latex-process-alist'’s
> `:latex-compiler'/`:latex-precompiler'/`:image-converter'
> properties.
>
> I’m hence considering adding support for a string value, and
> deprecating support for multiple-command lists.
>
> Does anybody actually use multiple commands? If so, for what purpose?
>

I have entries for `dvipng', `dvisvgm' and `imagemagick' in that
variable (with different values for the various processors). I use
mostly imagemagick for my purposes, but I've used the other two
occasionally when I had to debug other people's setups.

I find the setup flexible and easy to deal with: what do you find
annoying about it?

-- 
Nick



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

* Re: [QUERY] Anyone using multiple org-preview-latex-process-alist commands?
  2023-01-10  8:15 [QUERY] Anyone using multiple org-preview-latex-process-alist commands? Timothy
  2023-01-10  9:04 ` Fraga, Eric
  2023-01-10 17:50 ` Nick Dokos
@ 2023-01-10 18:30 ` Nick Dokos
  2 siblings, 0 replies; 4+ messages in thread
From: Nick Dokos @ 2023-01-10 18:30 UTC (permalink / raw)
  To: emacs-orgmode

Timothy <orgmode@tec.tecosaur.net> writes:

> Hi All,
>
> In my rewrite of the LaTeX preview system, I’m finding it a bit
> annoying dealing with the potential of multiple commands being used
> in the `org-preview-latex-process-alist'’s
> `:latex-compiler'/`:latex-precompiler'/`:image-converter'
> properties.
>
> I’m hence considering adding support for a string value, and
> deprecating support for multiple-command lists.
>
> Does anybody actually use multiple commands? If so, for what
> purpose?
>

I guess I misunderstood you: you are objecting to e.g. the
:latex-compiler value being a list, rather than a single string.

I think that was modeled after `org-latex-pdf-process' which is a list
of commands because LaTeX needed to be run multiple times in various
cases, so originally, this was a list of three invocations of LaTeX
("what I tell you three times is true"). With `latexmk' and similar,
that has thankfully become a thing of the past, so a single command is
enough, but making it not a list is probably going to break backward
compatibility.

OTOH, although I seem to have modified some details of
`org-preview-latex-process-alist', I have not added multiple commands
for any of the above. But it's conceivable that someone has - although
it's probably less likely than with `org-latex-pdf-process' - so you
may hear complaints in some distant future about it :-) 

So assuming that I've understood you correctly this time, I have no
objection to simplifying (at least, I cannot think of any ATM).

-- 
Nick



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

end of thread, other threads:[~2023-01-10 19:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-10  8:15 [QUERY] Anyone using multiple org-preview-latex-process-alist commands? Timothy
2023-01-10  9:04 ` Fraga, Eric
2023-01-10 17:50 ` Nick Dokos
2023-01-10 18:30 ` Nick Dokos

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).