[gtksourceview/wip/latex] Fix LaTeX math mode with oblivion style



commit cb534ab107daad98b74edab83bf807cfd38cc8e2
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Wed Nov 27 19:10:31 2013 +0100

    Fix LaTeX math mode with oblivion style
    
    In oblivion, plum3 is hard to see.
    Map the math mode to a string, by default.
    
    The math mode is now clearly visible with the 5 style schemes.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=691749

 data/language-specs/latex.lang |    2 +-
 data/styles/oblivion.xml       |    1 -
 2 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/data/language-specs/latex.lang b/data/language-specs/latex.lang
index d461700..dcbdd96 100644
--- a/data/language-specs/latex.lang
+++ b/data/language-specs/latex.lang
@@ -31,7 +31,7 @@
 
   <styles>
     <style id="comment"            _name="Comment"    map-to="def:comment"/>
-    <style id="display-math"       _name="Math Mode"/>
+    <style id="display-math"       _name="Math Mode"  map-to="def:string"/>
     <style id="inline-math"        _name="Inline Math Mode" map-to="latex:display-math"/>
     <style id="math"               _name="Math Mode"  map-to="latex:display-math"/>
     <style id="math-bound"         _name="Math Bound" map-to="latex:display-math"/>
diff --git a/data/styles/oblivion.xml b/data/styles/oblivion.xml
index 3f8d1e3..895d4ae 100644
--- a/data/styles/oblivion.xml
+++ b/data/styles/oblivion.xml
@@ -111,7 +111,6 @@
   <style name="diff:location"               foreground="chameleon1"/> 
   <style name="diff:special-case"           foreground="white" bold="true"/>
 
-  <style name="latex:display-math"          foreground="plum3"/>
   <style name="latex:command"               foreground="chameleon1" bold="true"/>
   <style name="latex:include"               use-style="def:preprocessor"/>
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]