The branch, 2.0.x, has been updated.

- Log -----------------------------------------------------------------

commit 03c9e5a758fc7e0836c1a9b6714b4e40ba452f02
Author: Juergen Spitzmueller <[email protected]>
Date:   Wed Jul 18 12:41:53 2012 +0200

    Add \makeat switches to babel settings if necessary.
    
    Babel settings might contain @ characters. Check for this and wrap the 
settings into \makeatletter ... \makeatother switches if necessary (see 
discussion at #8265).

diff --git a/src/LaTeXFeatures.cpp b/src/LaTeXFeatures.cpp
index 1d4f31c..236a7d3 100644
--- a/src/LaTeXFeatures.cpp
+++ b/src/LaTeXFeatures.cpp
@@ -979,7 +979,10 @@ string const LaTeXFeatures::getBabelPresettings() const
        if (!params_.language->babel_presettings().empty())
                tmp << params_.language->babel_presettings() << '\n';
 
-       return tmp.str();
+       if (!contains(tmp.str(), '@'))
+               return tmp.str();
+
+       return "\\makeatletter\n" + tmp.str() + "\\makeatother\n";
 }
 
 
@@ -995,7 +998,10 @@ string const LaTeXFeatures::getBabelPostsettings() const
        if (!params_.language->babel_postsettings().empty())
                tmp << params_.language->babel_postsettings() << '\n';
 
-       return tmp.str();
+       if (!contains(tmp.str(), '@'))
+               return tmp.str();
+
+       return "\\makeatletter\n" + tmp.str() + "\\makeatother\n";
 }
 
 
diff --git a/status.20x b/status.20x
index 3a655ad..421cacd 100644
--- a/status.20x
+++ b/status.20x
@@ -76,7 +76,7 @@ What's new
 - Export correct language change commands if document contains different
   CJK languages (bug 8215).
 
-- Fix bug that Elsevier docments became uncompilable when using refstlye for
+- Fix bug that Elsevier documents became uncompilable when using refstlye for
   cross-references.
 
 - Fixed the layout file for scientific articles published by the American
@@ -84,6 +84,9 @@ What's new
 
 - Write correct DTD for MathML (bug #8160).
 
+- Embrace babel settings to \makeatletter ... \makeatother if they contain
+  an @ glyph.
+
 
 * USER INTERFACE
 

-----------------------------------------------------------------------

Summary of changes:
 src/LaTeXFeatures.cpp |   10 ++++++++--
 status.20x            |    5 ++++-
 2 files changed, 12 insertions(+), 3 deletions(-)


hooks/post-receive
-- 
The LyX Source Repository

Reply via email to