Nick Dokos <nicholas.do...@hp.com> wrote: > Nick Dokos <nicholas.do...@hp.com> wrote: > > > FengShu <tuma...@gmail.com> wrote: > > > > > ... > > > At this time ,it can't covert all the latex fragments in the > > > buffer and only convert one, I can't find the problem due my > > > pool computer language ability. so I need help! > > > > > > > I tried your patch and I can see the problem (I think), but it might not > > be a problem with your patch: I run into it even if > > org-create-formula-image-program is set to dvipng. Of course, there is a > > possibility that your patch broke dvipng, but at this point it doesn't > > look that way. > > > > I'll do some more testing and let you know. > > > > No, you are right: it does seem as if your patch causes only the first > fragment to be processed (in both the dvipng and imagemagick cases). > Unpatched org (with dvipng) processes everything. >
Ok - just a misplaced paren - the code (I just show the dvipng case, but the imagemagick case will need it too) should look like this: --8<---------------cut here---------------start------------->8--- ... ((eq processing-type 'dvipng) (unless executables-checked (org-check-external-command "latex" "needed to convert LaTeX fragments to images") (org-check-external-command "dvipng" "needed to convert LaTeX fragments to images") (setq executables-checked t)) (unless (file-exists-p movefile) (org-create-formula-image-with-dvipng txt movefile opt forbuffer))) ... --8<---------------cut here---------------end--------------->8--- with two independent sexps: one to check for executables and one to check for files. The misplaced paren caused the file check to be inside the executable check, so it never produced any files after the first one. Nick