Juan Manuel Macías <maciasch...@posteo.net> writes: > It is true that the "org-create-formula-image" method is much more > complete. But, IMHO, I think it's a method focused on the buffer (rather > than the block) or previewing LaTeX code in the buffer.
What do you mean? `org-create-formula-image' is passed a string of LaTeX code. Note that `org-create-formula-image' is also used in HTML export. > ... In the case of > the LaTeX block, I think the :imagemagick method is simpler. It depends > on two simple processes: imagemagick and org-latex-pdf-process and > parameters such as the width or height of the generated image, the > density in dpi, etc. can be easily applied, via arguments. ob-latex does not have to expose all the possible toggles `org-latex-pdf-process' has. > ... In the case > of the other method, in addition to the value of > org-preview-latex-default-process, there is that of > org-format-latex-options. There are, in short, many parameters that are > perfect for a file or an Emacs session but for a simple block I find > overhelming. We can fix the parameters we do not want to expose. > In any case, if the org-create-formula-image method is going to stay, I > think it is fine as it is (except for extending the allowed file formats > to more extensions, and not only .png). I also believe that the :process > argument is sufficient for the user to control the value of > org-latex-pdf-process or org-preview-latex-default-process, as > appropriate. My concern about your patch is that it creates even more divergence between different branches of code in `org-babel-execute:latex'. With the new proposed features only available to some code branches, `org-babel-execute:latex' will just become more messy and harder to maintain. I'd prefer to refactor `org-babel-execute:latex' first, before adding new header arguments. -- Ihor Radchenko // yantar92, 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/yantar92>