Re: [O] Question on latex source block

2012-09-14 Thread Bastien
Jambunathan K writes: > Abdó Roig-Maranges writes: > >> Hi, >> >> Here is a patch. Sorry for the bug! > > Thanks. I did a quick test and pushed the patch to repo. Abdo, thanks for the patch! And thanks to Jambunathan for applying it. -- Bastien

Re: [O] Question on latex source block

2012-09-13 Thread Jambunathan K
Abdó Roig-Maranges writes: > Hi, > > Here is a patch. Sorry for the bug! Thanks. I did a quick test and pushed the patch to repo. > Abdó. > > Eric Schulte writes: > >>> Seems to be caused by 149cc04782651e74764eb3188f6a6f178fe25f64, which is >>> unfortunate since that fixes (at least I *thin

Re: [O] Question on latex source block

2012-09-13 Thread Abdó Roig-Maranges
Hi, Here is a patch. Sorry for the bug! Abdó. Eric Schulte writes: >> Seems to be caused by 149cc04782651e74764eb3188f6a6f178fe25f64, which is >> unfortunate since that fixes (at least I *think* it fixes) some problems >> when no default fore/background is defined (e.g. when emacs is run in >

Re: [O] Question on latex source block

2012-09-13 Thread Eric Schulte
>> >> Perhaps you could use git-bisect to find the ID of the offending commit? >> > > I did and I replied both to the list and cc: to you and Jambunathan (and > I added a clarification later). You probably haven't reached that point in > your email backlog yet, but if you don't see them let me kn

Re: [O] Question on latex source block

2012-09-13 Thread Nick Dokos
Eric Schulte wrote: > Jambunathan K writes: > > > Eric Schulte writes: > > > >> Alright, > >> > >> I've just committed a patch which gets part-way to your suggest > >> solution. While the two backend-specific functions are still separate > >> (I agree they should be combined), I have brought

Re: [O] Question on latex source block

2012-09-13 Thread Eric Schulte
Jambunathan K writes: > Eric Schulte writes: > >> Alright, >> >> I've just committed a patch which gets part-way to your suggest >> solution. While the two backend-specific functions are still separate >> (I agree they should be combined), I have brought back the >> `org-create-formula-image' f

Re: [O] Question on latex source block

2012-09-13 Thread Nick Dokos
Nick Dokos wrote: > > Seems to be caused by 149cc04782651e74764eb3188f6a6f178fe25f64, which is > unfortunate since that fixes (at least I *think* it fixes) some problems > when no default fore/background is defined (e.g. when emacs is run in > batch mode). It would be nice if this could be fixed

Re: [O] Question on latex source block

2012-09-13 Thread Nick Dokos
Jambunathan K wrote: > Eric Schulte writes: > > > Alright, > > > > I've just committed a patch which gets part-way to your suggest > > solution. While the two backend-specific functions are still separate > > (I agree they should be combined), I have brought back the > > `org-create-formula-im

Re: [O] Question on latex source block

2012-09-12 Thread Jambunathan K
Eric Schulte writes: > Alright, > > I've just committed a patch which gets part-way to your suggest > solution. While the two backend-specific functions are still separate > (I agree they should be combined), I have brought back the > `org-create-formula-image' function, which now dispatches to

Re: [O] Question on latex source block

2012-09-10 Thread Giovanni Ridolfi
Da: Nick Dokos Inviato: Lunedì 10 Settembre 2012 22:53 Hi, Nick, > (I prefer using \(...\) over $...$ but that's just me). it is not just you, it is also (!) the Org Manual:      To avoid conflicts with currency specifications, single `$' characters are only recognized as math del

Re: [O] Question on latex source block

2012-09-10 Thread Nick Dokos
Richard Stanton wrote: > The *Messages* buffer did indeed show something: > > "Failed to create dvi file from > /var/folders/zf/bgjm4tvs3wv_6q7_6z3b2nx0gn/T/orgtex64181Q3t.tex" > > > Checking the log file in that directory, I saw squawking about missing "$" > signs around the mathematical

Re: [O] Question on latex source block

2012-09-10 Thread Richard Stanton
On 9/10/12 12:07 PM, "Nick Dokos" wrote: >Richard Stanton wrote: > > >> Thanks. Things now get a lot further, but I'm still not quite getting >>what >> I was hoping for. In particular, this source: >> >> #+begin_src latex :file test.png >> \frac{1}{2} >> #+end_src >> >> results in this outpu

Re: [O] Question on latex source block

2012-09-10 Thread Nick Dokos
Richard Stanton wrote: > Thanks. Things now get a lot further, but I'm still not quite getting what > I was hoping for. In particular, this source: > > #+begin_src latex :file test.png > \frac{1}{2} > #+end_src > > results in this output: > > #+Results: > #+BEGIN_LaTeX > [[file:test.png]] > #

Re: [O] Question on latex source block

2012-09-10 Thread Richard Stanton
>Date: Sun, 09 Sep 2012 13:39:32 -0600 >From: Eric Schulte >To: nicholas.do...@hp.com >Cc: Richard Stanton , > "emacs-orgmode@gnu.org" >Subject: Re: [O] Question on latex source block >Message-ID: <87ligj6l57@gmx.com> >Content-Type: text/plain

Re: [O] Question on latex source block

2012-09-09 Thread Nick Dokos
Eric Schulte wrote: > Alright, > > I've just committed a patch which gets part-way to your suggest > solution. While the two backend-specific functions are still separate > (I agree they should be combined), I have brought back the > `org-create-formula-image' function, which now dispatches to

Re: [O] Question on latex source block

2012-09-09 Thread Eric Schulte
Nick Dokos writes: > Eric Schulte wrote: > >> > >> > Nothing - it's a bug introduced by commit >> > a9d3ce0bcd3492eb0cd2aa7b0d1f6ee93276114b: >> > >> > , >> > | commit a9d3ce0bcd3492eb0cd2aa7b0d1f6ee93276114b >> > | Author: Feng Shu >> > | Date: Fri Apr 20 19:21:43 2012 +0200 >> > | >>

Re: [O] Question on latex source block

2012-09-09 Thread Nick Dokos
Eric Schulte wrote: > > > > Nothing - it's a bug introduced by commit > > a9d3ce0bcd3492eb0cd2aa7b0d1f6ee93276114b: > > > > , > > | commit a9d3ce0bcd3492eb0cd2aa7b0d1f6ee93276114b > > | Author: Feng Shu > > | Date: Fri Apr 20 19:21:43 2012 +0200 > > | > > | Allow to use imagemagick f

Re: [O] Question on latex source block

2012-09-09 Thread Eric Schulte
> > Nothing - it's a bug introduced by commit > a9d3ce0bcd3492eb0cd2aa7b0d1f6ee93276114b: > > , > | commit a9d3ce0bcd3492eb0cd2aa7b0d1f6ee93276114b > | Author: Feng Shu > | Date: Fri Apr 20 19:21:43 2012 +0200 > | > | Allow to use imagemagick for previewing LaTeX fragements. > | >

Re: [O] Question on latex source block

2012-09-09 Thread Nick Dokos
Nick Dokos wrote: > The quick-and-dirty "fix" is to change the reference in ob-latex.el to > org-create-formula-image-dvipng or org-create-formula-image-imagemagick, Left out the "with" in the names. That should be org-create-formula-image-with-dvipng or org-create-formula-image-with-imag

Re: [O] Question on latex source block

2012-09-09 Thread Nick Dokos
Richard Stanton wrote: > Using Org-mode version 7.9.1 (release_7.9.1-154-g659be3 @ c:/emacs/site-lis= > p/org-mode/lisp/), I created the following LaTeX code block: > > #+begin_src latex :file test.png > \frac{1}{2} > #+end_src > > When I press C-c C-c to compile the code block, I get the follo

[O] Question on latex source block

2012-09-08 Thread Richard Stanton
Using Org-mode version 7.9.1 (release_7.9.1-154-g659be3 @ c:/emacs/site-lisp/org-mode/lisp/), I created the following LaTeX code block: #+begin_src latex :file test.png \frac{1}{2} #+end_src When I press C-c C-c to compile the code block, I get the following error dump: Debugger entered--Lisp e