[O] How to highlight the LaTeX fragments inside orgmode

2011-06-21 Thread Xin Shi
Hello, I'm looking for a way to highlight the syntax of the LaTeX fragments inside orgmode. I have tried to put the LaTeX parts into: #+BEGIN_SRC LaTeX #+END_SRC But the output tex file will have the \begin{verbatim} \end{verbatim} surrounding the parts. I'm wondering if it's possible to

Re: [O] How to highlight the LaTeX fragments inside orgmode

2011-06-21 Thread Eric Schulte
Xin Shi shixin...@gmail.com writes: Hello, I'm looking for a way to highlight the syntax of the LaTeX fragments inside orgmode. I have tried to put the LaTeX parts into: #+BEGIN_SRC LaTeX #+END_SRC But the output tex file will have the \begin{verbatim} \end{verbatim} surrounding

Re: [O] How to highlight the LaTeX fragments inside orgmode

2011-06-21 Thread Xin Shi
Hi Eric, Thanks for your reply! I added these two lines into .emacs and it worked! (require 'ob-latex) (setq org-src-fontify-natively t) However, I noticed something else is broken with the ob-latex: The C-c C-e d (export to PDF and open the PDF file) is no longer working. Maybe a bug in 7.5?

Re: [O] How to highlight the LaTeX fragments inside orgmode

2011-06-21 Thread Nick Dokos
Xin Shi shixin...@gmail.com wrote: However, I noticed something else is broken with the ob-latex: The C-c C-e d (export to PDF and open the PDF file) is no longer working. Maybe a bug in 7.5?  Works fine here: Org-mode version 7.5 (baseline.324.ga0bc.dirty) Nick

Re: [O] How to highlight the LaTeX fragments inside orgmode

2011-06-21 Thread Xin Shi
Thanks. Maybe it's just not working here. Also, I got this question every time: Evaluate this latex code block on your system? (y or n) Are there anyway to turn accept all? Xin On Tue, Jun 21, 2011 at 4:49 PM, Nick Dokos nicholas.do...@hp.com wrote: Xin Shi shixin...@gmail.com wrote:

Re: [O] How to highlight the LaTeX fragments inside orgmode

2011-06-21 Thread chris . m . malone
Hi Xin, I have the following line in my .emacs file: (setq org-confirm-babel-evaluate nil) This, I think, turns off asking for evaluation for all languages. Not sure if it can be done on a language specific basis or not. Chris On Jun 21, 2011 4:56pm, Xin Shi shixin...@gmail.com wrote:

Re: [O] How to highlight the LaTeX fragments inside orgmode

2011-06-21 Thread Xin Shi
Thank you! P.S. Although this works, I still think for my purpose of just want to see the syntax of the LaTeX highlight, this begin_src latex might be a bit overkill. It would be nice the begin_latex have the option to do this job. Xin On Tue, Jun 21, 2011 at 5:05 PM, Eric Schulte

Re: [O] How to highlight the LaTeX fragments inside orgmode

2011-06-21 Thread Eric Schulte
Xin Shi shixin...@gmail.com writes: Thanks. Maybe it's just not working here. Also, I got this question every time: Evaluate this latex code block on your system? (y or n) Are there anyway to turn accept all? the following will disable this prompt (setq org-confirm-babel-evaluate nil)