[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Need Help: [patch] A experimental toy which is used to preview l
From: |
Nick Dokos |
Subject: |
Re: [O] Need Help: [patch] A experimental toy which is used to preview latex fragements |
Date: |
Sat, 24 Mar 2012 14:54:45 -0400 |
Nick Dokos <address@hidden> wrote:
> Nick Dokos <address@hidden> wrote:
>
> > FengShu <address@hidden> 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
- [O] [patch] A experimental toy which is used to preview latex fragements, FengShu, 2012/03/23
- Re: [O] Need Help: [patch] A experimental toy which is used to preview latex fragements, FengShu, 2012/03/24
- Re: [O] Need Help: [patch] A experimental toy which is used to preview latex fragements, Nick Dokos, 2012/03/24
- Re: [O] Need Help: [patch] A experimental toy which is used to preview latex fragements, Nick Dokos, 2012/03/24
- Re: [O] Need Help: [patch] A experimental toy which is used to preview latex fragements,
Nick Dokos <=
- Re: [O] Need Help: [patch] A experimental toy which is used to preview latex fragements, FengShu, 2012/03/25
- [O] [patch] Need test: New path which is used to preview latex fragements, FengShu, 2012/03/26
- Re: [O] [patch] Need test: New method which is used to preview latex fragements, FengShu, 2012/03/27
- Re: [O] [patch] Need test: New method which is used to preview latex fragements, Bastien, 2012/03/27
- Message not available
- Message not available
- Message not available
- Message not available
- Re: [O] [patch] Need test: New method which is used to preview latex fragements, Feng Shu, 2012/03/27