Re: [O] export literal examples font-lock: ess-mode

2012-08-19 Thread Paul Burkander
it works!

Thanks.

On Sun, Aug 19, 2012 at 2:28 AM, Bastien b...@altern.org wrote:

 Hi Paul,

 Paul Burkander p...@burkander.com writes:

  ah! for some reason capitalizing BEGIN_SRC seems to have been causing
  problems.

 This should not cause problem.  I've pushed a small fix for this,
 but this may not exactly be the one you needed.

 Can you pull from latest git and test again with a minimal example
 and BEGIN_SRC ?

 Thanks!

 --
  Bastien



Re: [O] export literal examples font-lock: ess-mode

2012-08-17 Thread Paul Burkander
ah! for some reason capitalizing BEGIN_SRC seems to have been causing
problems.

Thanks for your help!

On Fri, Aug 17, 2012 at 11:12 AM, Ista Zahn istaz...@gmail.com wrote:

 On Fri, Aug 17, 2012 at 9:23 AM, Paul paulburk...@gmail.com wrote:
  I write do-files for Stata code in emacs using ESS, which marks up my
  code and sends it to a comint-mode buffer for evaluation.  I'd like to
  include some source code in an org file, as in the below examle:
 
  #+begin_src -n
  foreach var of varlist _all{
   rename `var' new_`var'
  }
  #+end_src
 
  I have a couple of questions:
  How can I use ess fontification in this snippet

 #+begin_src stata
   foreach var of varlist _all{
 rename `var' new_`var'
   }
 #+end_src

 works for me.

 and in the file to
  which I export?

 I think this depends on your export target. It should just work for
 html, but pdf will be more work.

   The manual says I need to specify the name of the
  major mode, however including #+begin_src ess -n results in the
  following error org-edit-src-code: No such language mode: nil-mode.
  I've tried using ess-mode, and anything else I can think of, to no
  avail.  What should I include?

 I think #+begin_src stata is correct.

 
  Also, assuming I'm able to get the fontification to work, is there a
  way to customize it for exporting?
 
  Finally, org-babel looks tremendously useful.  Is there a way to
  harness it's capabilities for an unsupported language like Stata's?

 C-c ' will open a temporary buffer in ess mode so you can edit and run
 the code using ess, and tangling will work as expected. The only thing
 you need babel support for is actually running the code in org-mode
 and inserting the results block.

 I've made weak attempts to add stata support to babel, but my
 elisp-foo is not strong enough.

 
  Thanks to everyone who read this through, and in particular to anyone
  who can help!
  Paul
 



Re: [Orgmode] Problem with LaTeX snippets preview

2009-09-25 Thread Paul Burkander
It doesn't seem nice that my thread was hijacked.

Anyway, I solved my original problem, which as you might recall was
that I got an empty box when I tried to preview.

I installed texlive-latex-extras.  It has since worked.  If that
package is needed, it would be helpful to have it noted in the
documentation.

On Fri, Sep 25, 2009 at 11:52 AM, Nick Dokos nicholas.do...@hp.com wrote:
 Darlan Cavalcante Moreira darc...@gmail.com wrote:

 How could I miss that?

 I used the command customize-variable and I was trying to auto-complete with 
 TAB
 something similar to org-preview or org--preview.  Now I see that the
 options are in the group Org Latex.

 May I suggest that these two variables are mentioned in the documentation of 
 the
 org-preview-latex-fragment function?


 This is the second time in the last couple of weeks that somebody looked
 for this and did not find it. Nicolas Goaziou had a very similar
 reaction (see http://article.gmane.org/gmane.emacs.orgmode/17544 for
 more). So it seems that the option is indeed well hidden :-) I'd second
 the motion to add a mention of org-format-latex-options in the function
 doc and perhaps add a more extended mention in section 11.4 of the
 manual (Processing LaTeX fragments) as well. Here is some suggested
 text:

 ,
 | ...
 | `C-c C-c'
 |      Remove the overlay preview images.
 |
 |    You can customize the variable `org-format-latex-options' to
 | influence some aspects of the preview. In particular, the :scale (and
 | for HTML export, :html-scale) property can be used to adjust the
 | size of the preview images.
 |
 |    During HTML export (*note HTML export::), all LaTeX fragments are
 | ...
 `

 Thanks,
 Nick








___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Problem with LaTeX snippets preview

2009-09-24 Thread Paul Burkander
Hi all,

I'm having trouble viewing LaTeX snippets in org-mode.  I have dvipng
installed.

I entered the following test code:
\begin{equation}
\sqrt{5}+\frac{2}{3}
\end{equation}

and tried C-c C-x C-l

but then I only see an empty box where the png should be.  The messages
buffer reads:

Creating image...1
Loading latexenc...done
Failed to create dvi file from /tmp/orgtex608161G.tex
Creating image...done.  Use `C-c C-c' to remove images.
Cannot find image file `/home/paul/org/ltxpng/classes_0001.png' [53 times]
Temporary highlights/overlays removed from current buffer

There is no /tmp/orgtex608161G.tex that I can find.

Oddly, I had a file called org on my desktop, and it was putting png file
in there.  I got rid of that folder, thinking it was somehow confusing
things, and now I can't find any newly created png file.

help?  anyone?
___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Fwd: Problem with LaTeX snippets preview

2009-09-24 Thread Paul Burkander
It seems that the file in on my Desktop was from an archived org folder,
from when the preview LaTeX snippets actually worked for me on a different
computer.

-- Forwarded message --
From: Paul Burkander paulburkan...@gmail.com
Date: Thu, Sep 24, 2009 at 8:15 PM
Subject: Problem with LaTeX snippets preview
To: emacs-orgmode@gnu.org


Hi all,

I'm having trouble viewing LaTeX snippets in org-mode.  I have dvipng
installed.

I entered the following test code:
\begin{equation}
\sqrt{5}+\frac{2}{3}
\end{equation}

and tried C-c C-x C-l

but then I only see an empty box where the png should be.  The messages
buffer reads:

Creating image...1
Loading latexenc...done
Failed to create dvi file from /tmp/orgtex608161G.tex
Creating image...done.  Use `C-c C-c' to remove images.
Cannot find image file `/home/paul/org/ltxpng/classes_0001.png' [53 times]
Temporary highlights/overlays removed from current buffer

There is no /tmp/orgtex608161G.tex that I can find.

Oddly, I had a file called org on my desktop, and it was putting png file
in there.  I got rid of that folder, thinking it was somehow confusing
things, and now I can't find any newly created png file.

help?  anyone?
___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode