orgdiff icon indicating copy to clipboard operation
orgdiff copied to clipboard

Cannot get diffs for files with source blocks

Open yantar92 opened this issue 4 years ago • 4 comments

I export setup for src blocks with org-latex-listings set to t.

Expected behaviour: can generate diffs with orgdiff

Observed: latexdiff does not play well with code listing environment and orgdiff and always fail to generate pdfs.

yantar92 avatar Apr 20 '22 04:04 yantar92

For what it's worth, this seems to work better with the engraved backend.

tecosaur avatar Jul 05 '23 15:07 tecosaur

tecosaur @.***> writes:

For what it's worth, this seems to work better with the engraved backend.

Not every publisher allows arbitrary LaTeX packages.

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

yantar92 avatar Jul 06 '23 10:07 yantar92

Indeed. I'm not sure what else can reasonably be done here though. Filter out source blocks?

tecosaur avatar Jul 06 '23 10:07 tecosaur

tecosaur @.***> writes:

Indeed. I'm not sure what else can reasonably be done here though. Filter out source blocks?

latexdiff appears to have toggles to configure this: https://github.com/ftilmann/latexdiff/blob/1f9d07fd1b6edd914804442de0b396264311df8b/latexdiff#L115

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

yantar92 avatar Jul 06 '23 10:07 yantar92