Re: debugging why a latex preview fails

2020-01-29 Thread Fraga, Eric
On Wednesday, 29 Jan 2020 at 14:11, Nick Dokos wrote: [...] > It would be nice to have the ability to inhibit the cleanup more > easily: it would make preview almost as easy to debug as export. I agree. Debugging babel is easier as the temporary files are left around so you can manually run

Re: debugging why a latex preview fails

2020-01-29 Thread Nick Dokos
Alan Schmitt writes: > Hello Fabrice and Eric, > > Thanks a lot for your suggestions. I ended up edebugging > 'org-create-formula-image' to have a look at the created tex file (that > is indeed cleaned up after the generation). The file was fine, but > dvipng failed on it (with errors like "raw

Re: debugging why a latex preview fails

2020-01-29 Thread Alan Schmitt
Hello Fabrice and Eric, Thanks a lot for your suggestions. I ended up edebugging 'org-create-formula-image' to have a look at the created tex file (that is indeed cleaned up after the generation). The file was fine, but dvipng failed on it (with errors like "raw PostScriptdvipng warning:

Re: debugging why a latex preview fails

2020-01-29 Thread Fabrice Popineau
Le mer. 29 janv. 2020 à 12:02, Fraga, Eric a écrit : > On Wednesday, 29 Jan 2020 at 11:20, Fabrice Popineau wrote: > > First of all: look into the *Org PDF LaTeX Output* buffer to see why > Yes sorry ! Some ltximg director is created in the same directory as the Org file you are editing.

Re: debugging why a latex preview fails

2020-01-29 Thread Fraga, Eric
On Wednesday, 29 Jan 2020 at 11:20, Fabrice Popineau wrote: > First of all: look into the *Org PDF LaTeX Output* buffer to see why Thank you. But maybe you meant *Org Preview LaTeX Output* instead? In any case, thanks for the pointer: I hadn't realized that this buffer was created. Although

Re: debugging why a latex preview fails

2020-01-29 Thread Fabrice Popineau
Le mer. 29 janv. 2020 à 10:51, Fraga, Eric a écrit : > On Wednesday, 29 Jan 2020 at 08:39, Alan Schmitt wrote: > > I'm trying to add some diagrams in a note, and I want to use latex > > preview for that. Unfortunately the result is not what I expect: I do > > see an image, but there seem to be

Re: debugging why a latex preview fails

2020-01-29 Thread Fraga, Eric
On Wednesday, 29 Jan 2020 at 08:39, Alan Schmitt wrote: > I'm trying to add some diagrams in a note, and I want to use latex > preview for that. Unfortunately the result is not what I expect: I do > see an image, but there seem to be errors in the latex processing. How > can I see what latex is

debugging why a latex preview fails

2020-01-28 Thread Alan Schmitt
Hello, I'm trying to add some diagrams in a note, and I want to use latex preview for that. Unfortunately the result is not what I expect: I do see an image, but there seem to be errors in the latex processing. How can I see what latex is produced to find where the issue is? To be precise, my