Nick Dokos <ndo...@gmail.com> writes: > feng shu <tuma...@gmail.com> writes: > >> `org-create-formula-image-with-dvipng' and >> `org-create-formula-image-with-imagemagick' >> share a good deal of logic, so combine them to a function. >> >> > > I have wondered aloud in the past whether it is necessary to have two > methods for this. They are pretty much equivalent although the > imagemagick method is IMO slightly less brittle than the dvipng method. > So instead of spending time to tie them even more closely together, we > should investigate whether one of them should go. > > Maybe we can have a poll... imagemagick method is useful for xelatex users, but it compile a snippet more slower than dvipng method.
We don't need remove one of them. we can do like this: 1. conbine tex:dvipng and tex:imagemagick to tex:image 2. remove `org-latex-create-formula-image-program' 3. defcustom `org-create-formula-image-processes' in my patch. 4. update document. It is very similar `org-latex-pdf-process' --