I would like to submit the org-latex-preview patchset for review and merging now. I will be losing my FSF copyright assignment soon, so I'm hoping to see it merged before then even if there are some minor issues remaining to be addressed.
Another reason is that the main branch is slowly adding changes incompatible with the patchset, such as the recent addition of xelatex as an entry in `org-preview-latex-process-alist'. I think this change doesn't make sense even by itself -- it is a category error to place this configuration in this alist -- but in any case we offer more comprehensive support for both xetex and lualatex in the patchset, in that you can use any combination of {xelatex, lualatex} X {dvipng, dvisvgm, imagemagick} along with several other configuration options. The last major blocker for the patchset is updating `org-babel-execute:latex', which is broken in Tecosaur's branch. I am trying to fix it now, but this function is a big mess, and I need your help. I will send a separate email with questions about this function. I'm fixing linting and byte-compilation errors right now. Would you like the updated Org manual to be included in the patchset, or should I wait to update it until we have the merge-related discussions? There are many, many improvements across the board to Org's LaTeX handling, so the manual and NEWS require a lot of work. > Now, after the last blocker with odt export has been addressed, I am > starting to review the patch formally for merging upstream. > > One of the new core mechanisms introduced in the patch is the > "feature" system for building export preambles. It allows building the > preambles selectively, depending on the document contents and current > export configuration. Tecosaur is busy with other projects, so I don't think your feeback on the features/templates system will be incorporated in time. I'm not familiar enough with the design or the intent to work on this. The new LaTeX preview system is almost completely independent of the export features system, so I think this patchset can be split and just the LaTeX preview features submitted first. The only overlap between the two is a single LaTeX preamble generation function for previews, which can be replaced. Karthik