shg / org-inline-pdf.el

Inline PDF previewing for Org
GNU General Public License v3.0
48 stars 8 forks source link

no images are displayed #5

Closed uliw closed 1 year ago

uliw commented 1 year ago
[[./graphs/co2_vs_t.pdf]]

and ctrl-c ctrl-x ctrl-v result in no visible change. Neither are any svg files produced

shg commented 1 year ago

Hello. Below are the few things you may want to check.

uliw commented 1 year ago

Update 2: all previous errors were caused by a botched startup file. Using vanilla 28.2

It appears that scimax modifies some of the org-image code in such a way that svg generation breaks

shg commented 1 year ago

@uliw Thank you for the info.

I confirmed the conflict with scimax. It seems scimax completely replaces org-display-inline-images with its own function and thus org-inline-pdf's function is not called when scimax is loaded. This might be solved by changing the way org-inline-pdf adds its advice but I haven't tested it yet.

So my understanding is for now you can make org-inline-pdf work by doing M-x scimax-toggle-image-advice correct? I haven't used scimax and I don't know what scimax features it would disable though.

uliw commented 1 year ago

yes, correct. Toggling climax-toggle-image-advice allows the inlining of pdfs. I'll chat with the author of scimax (a collection of tools for scientific writing)

shg commented 1 year ago

@uliw Thank you, I will mention the conflict with scimax in the README for now.

uliw commented 1 year ago

scimax-toggle-image-advice is a rarely used function, so save to have this default to nil in order to be compatible.