Re: [O] no fontification of #+BEGIN_LaTeX blocks
Hi Julien, Julien Cubizolles wrote: But I'm not really sure to understand what you try to achieve. Could you be more explicit? Could you give a minimal example file? In the following, begin, center, and braces get different colors #+BEGIN_SRC latex \begin{center} \includegraphics[width=0.5\textwidth]{figures/fresnel} \end{center} #+END_SRC Here everything is the same color, not very good for readability. #+BEGIN_LaTeX \begin{center} \includegraphics[width=0.5\textwidth]{figures/fresnel} \end{center} #+END_LaTeX Since I use them for pieces of code to be exported to Beamer, the latex block is easier to use (no export options to take care of) but less readable. Anyway I can edit both with org-edit-src-code, with fontification, and I'm happy with that so far. I perfectly understand your need, now: to have *syntax highlighting* of everything in a #+BEGIN/END_LaTeX block (the same would be true for HTML or ...). This is something I'd like to get as well, in fact! Best regards, Seb -- Sebastien Vauban
Re: [O] no fontification of #+BEGIN_LaTeX blocks
Sebastien Vauban sva-n...@mygooglest.com writes: I perfectly understand your need, now: to have *syntax highlighting* of everything in a #+BEGIN/END_LaTeX block (the same would be true for HTML or I guess I mixed the concepts of fontification/highlighting up :-) Julien.
Re: [O] no fontification of #+BEGIN_LaTeX blocks
Hi Julien, Julien Cubizolles j.cubizol...@free.fr writes: org-src-fontify-natively doesn't fontify quoted LaTeX code like #+BEGIN_LaTeX #+END_LaTeX the same as it does for LaTeX src blocks like #+BEGIN_SRC latex #+END_SRC Why is that, and is there a way to get fontification for both ? Nope, fontification is just for BEGIN_SRC blocks. There is no real why I guess, except because of this implicit convention: only SRC blocks get fontified. Other blocks are part of another family with a more limited set of features. -- Bastien
Re: [O] no fontification of #+BEGIN_LaTeX blocks
Sebastien Vauban sva-n...@mygooglest.com writes: Julien Cubizolles wrote: org-src-fontify-natively doesn't fontify quoted LaTeX code like #+BEGIN_LaTeX #+END_LaTeX the same as it does for LaTeX src blocks like #+BEGIN_SRC latex #+END_SRC Why is that, and is there a way to get fontification for both ? Yes, you have different faces: `org-block-background' and face `org-block'. Do you mean that getting the BEGIN_LaTeX blocks to use org-block-background would give all the pretty colors I have in BEGIN_SRC latex ? PS- Use `C-u C-x =' with point where you want to know which are the faces in question. Then, M-x customize-face... customize-face doesn't seem to offer me a way to choose a particular fontification scheme. I must be missing something here. Julien.
Re: [O] no fontification of #+BEGIN_LaTeX blocks
Julien Cubizolles wrote: Sebastien Vauban sva-n...@mygooglest.com writes: Julien Cubizolles wrote: org-src-fontify-natively doesn't fontify quoted LaTeX code like #+BEGIN_LaTeX #+END_LaTeX the same as it does for LaTeX src blocks like #+BEGIN_SRC latex #+END_SRC Why is that, and is there a way to get fontification for both ? Yes, you have different faces: `org-block-background' and face `org-block'. Do you mean that getting the BEGIN_LaTeX blocks to use org-block-background would give all the pretty colors I have in BEGIN_SRC latex ? No, you could just have the same color as the default (unfontified) from source blocks. I mean: fontified source blocks add extra text properties, such as comment, string, type, etc. You could have the same default one, with the same background color, if that's what annoys you. But I'm not really sure to understand what you try to achieve. Could you be more explicit? Could you give a minimal example file? PS- Use `C-u C-x =' with point where you want to know which are the faces in question. Then, M-x customize-face... customize-face doesn't seem to offer me a way to choose a particular fontification scheme. I must be missing something here. With customize-face, you don't choose a color theme (that's more or less the right wording; even called custom theme now in Emacs 24, but more generic): you make your own color theme... To choose one color theme, you must first tell us whether you're on Emacs 23 or 24. Looking at http://orgmode.org/worg/color-themes-screenshot.html and at http://orgmode.org/worg/org-color-themes.html could help you as well implement the right choice for you. Best regards, Seb -- Sebastien Vauban
Re: [O] no fontification of #+BEGIN_LaTeX blocks
Bastien b...@gnu.org writes: Hi Julien, Nope, fontification is just for BEGIN_SRC blocks. There is no real why I guess, except because of this implicit convention: only SRC blocks get fontified. Other blocks are part of another family with a more limited set of features. I was under the impression that they were close relative since org-edit-src-code acts on both :-) Julien.
Re: [O] no fontification of #+BEGIN_LaTeX blocks
Sebastien Vauban sva-n...@mygooglest.com writes: No, you could just have the same color as the default (unfontified) from source blocks. I mean: fontified source blocks add extra text properties, such as comment, string, type, etc. You could have the same default one, with the same background color, if that's what annoys you. No, that's not the background color that bothers me. But I'm not really sure to understand what you try to achieve. Could you be more explicit? Could you give a minimal example file? In the following, begin, center, and braces get different colors #+BEGIN_SRC latex \begin{center} \includegraphics[width=0.5\textwidth]{figures/fresnel} \end{center} #+END_SRC Here everything is the same color, not very good for readability. #+BEGIN_LaTeX \begin{center} \includegraphics[width=0.5\textwidth]{figures/fresnel} \end{center} #+END_LaTeX Since I use them for pieces of code to be exported to Beamer, the latex block is easier to use (no export options to take care of) but less readable. Anyway I can edit both with org-edit-src-code, with fontification, and I'm happy with that so far. Julien.
Re: [O] no fontification of #+BEGIN_LaTeX blocks
Julien Cubizolles wrote: org-src-fontify-natively doesn't fontify quoted LaTeX code like #+BEGIN_LaTeX #+END_LaTeX the same as it does for LaTeX src blocks like #+BEGIN_SRC latex #+END_SRC Why is that, and is there a way to get fontification for both ? Yes, you have different faces: `org-block-background' and face `org-block'. It's always better to have more than not enough. Up to you to customize them so that they look the same, if that's what you want. PS- Use `C-u C-x =' with point where you want to know which are the faces in question. Then, M-x customize-face... Best regards, Seb -- Sebastien Vauban
[O] no fontification of #+BEGIN_LaTeX blocks
org-src-fontify-natively doesn't fontify quoted LaTeX code like #+BEGIN_LaTeX #+END_LaTeX the same as it does for LaTeX src blocks like #+BEGIN_SRC latex #+END_SRC Why is that, and is there a way to get fontification for both ? Julien.