* no fontification of #+BEGIN_LaTeX blocks
@ 2013-09-14 15:57 Julien Cubizolles
2013-09-15 19:28 ` Sebastien Vauban
2013-09-16 15:05 ` Bastien
0 siblings, 2 replies; 9+ messages in thread
From: Julien Cubizolles @ 2013-09-14 15:57 UTC (permalink / raw)
To: emacs-orgmode
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.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: no fontification of #+BEGIN_LaTeX blocks
2013-09-14 15:57 no fontification of #+BEGIN_LaTeX blocks Julien Cubizolles
@ 2013-09-15 19:28 ` Sebastien Vauban
2013-09-16 16:53 ` Julien Cubizolles
2013-09-16 15:05 ` Bastien
1 sibling, 1 reply; 9+ messages in thread
From: Sebastien Vauban @ 2013-09-15 19:28 UTC (permalink / raw)
To: emacs-orgmode-mXXj517/zsQ
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
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: no fontification of #+BEGIN_LaTeX blocks
2013-09-14 15:57 no fontification of #+BEGIN_LaTeX blocks Julien Cubizolles
2013-09-15 19:28 ` Sebastien Vauban
@ 2013-09-16 15:05 ` Bastien
2013-09-16 21:07 ` Julien Cubizolles
1 sibling, 1 reply; 9+ messages in thread
From: Bastien @ 2013-09-16 15:05 UTC (permalink / raw)
To: Julien Cubizolles; +Cc: emacs-orgmode
Hi Julien,
Julien Cubizolles <j.cubizolles@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
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: no fontification of #+BEGIN_LaTeX blocks
2013-09-15 19:28 ` Sebastien Vauban
@ 2013-09-16 16:53 ` Julien Cubizolles
2013-09-16 19:01 ` Sebastien Vauban
0 siblings, 1 reply; 9+ messages in thread
From: Julien Cubizolles @ 2013-09-16 16:53 UTC (permalink / raw)
To: emacs-orgmode
"Sebastien Vauban" <sva-news@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.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: no fontification of #+BEGIN_LaTeX blocks
2013-09-16 16:53 ` Julien Cubizolles
@ 2013-09-16 19:01 ` Sebastien Vauban
2013-09-16 21:26 ` Julien Cubizolles
0 siblings, 1 reply; 9+ messages in thread
From: Sebastien Vauban @ 2013-09-16 19:01 UTC (permalink / raw)
To: emacs-orgmode-mXXj517/zsQ
Julien Cubizolles wrote:
> "Sebastien Vauban" <sva-news-D0wtAvR13HarG/iDocfnWg@public.gmane.org> 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
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: no fontification of #+BEGIN_LaTeX blocks
2013-09-16 15:05 ` Bastien
@ 2013-09-16 21:07 ` Julien Cubizolles
0 siblings, 0 replies; 9+ messages in thread
From: Julien Cubizolles @ 2013-09-16 21:07 UTC (permalink / raw)
To: emacs-orgmode
Bastien <bzg@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.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: no fontification of #+BEGIN_LaTeX blocks
2013-09-16 19:01 ` Sebastien Vauban
@ 2013-09-16 21:26 ` Julien Cubizolles
2013-09-17 7:03 ` Sebastien Vauban
0 siblings, 1 reply; 9+ messages in thread
From: Julien Cubizolles @ 2013-09-16 21:26 UTC (permalink / raw)
To: emacs-orgmode
"Sebastien Vauban" <sva-news@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.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: no fontification of #+BEGIN_LaTeX blocks
2013-09-16 21:26 ` Julien Cubizolles
@ 2013-09-17 7:03 ` Sebastien Vauban
2013-09-17 7:15 ` Julien Cubizolles
0 siblings, 1 reply; 9+ messages in thread
From: Sebastien Vauban @ 2013-09-17 7:03 UTC (permalink / raw)
To: emacs-orgmode-mXXj517/zsQ
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
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: no fontification of #+BEGIN_LaTeX blocks
2013-09-17 7:03 ` Sebastien Vauban
@ 2013-09-17 7:15 ` Julien Cubizolles
0 siblings, 0 replies; 9+ messages in thread
From: Julien Cubizolles @ 2013-09-17 7:15 UTC (permalink / raw)
To: emacs-orgmode
"Sebastien Vauban" <sva-news@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.
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2013-09-17 7:15 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-14 15:57 no fontification of #+BEGIN_LaTeX blocks Julien Cubizolles
2013-09-15 19:28 ` Sebastien Vauban
2013-09-16 16:53 ` Julien Cubizolles
2013-09-16 19:01 ` Sebastien Vauban
2013-09-16 21:26 ` Julien Cubizolles
2013-09-17 7:03 ` Sebastien Vauban
2013-09-17 7:15 ` Julien Cubizolles
2013-09-16 15:05 ` Bastien
2013-09-16 21:07 ` Julien Cubizolles
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.