]> git.lyx.org Git - lyx.git/blobdiff - lib/doc/Math.lyx
Fix polyglossia exports for docs with babel cmds
[lyx.git] / lib / doc / Math.lyx
index 9fcb8d8a9d8115e0f5898315b070dd6aa1fc16ba..b1767d62d17a032813f6fd0860279929d9262b6b 100644 (file)
 % increase link area for cross-references and autoname them,
 \AtBeginDocument{\renewcommand{\ref}[1]{\mbox{\autoref{#1}}}}
 \@ifundefined{extrasenglish}{\usepackage[english]{babel}}{}
-\addto\extrasenglish{%
- \renewcommand*{\equationautorefname}[1]{}%
- \renewcommand{\sectionautorefname}{sec.\negthinspace}%
- \renewcommand{\subsectionautorefname}{sec.\negthinspace}%
- \renewcommand{\subsubsectionautorefname}{sec.\negthinspace}%
-}
+\@ifpackageloaded{babel}{
+ \addto\extrasenglish{%
+  \renewcommand*{\equationautorefname}[1]{}%
+  \renewcommand{\sectionautorefname}{sec.\negthinspace}%
+  \renewcommand{\subsectionautorefname}{sec.\negthinspace}%
+  \renewcommand{\subsubsectionautorefname}{sec.\negthinspace}%
+ }
+}{}
 
 % don't load packages twice
 % see first footnote in sec. 9.3
@@ -3407,7 +3409,7 @@ arg   "math-insert \\space"
 
  
 \begin_inset Graphics
-       filename ../../../../LyX 2.2/Resources/images/math/phantom.png
+       filename ../images/math/phantom.png
        scale 85
 
 \end_inset
@@ -3613,7 +3615,7 @@ vphantom
 
 
 \begin_inset Graphics
-       filename ../../../../LyX 2.2/Resources/images/math/vphantom.png
+       filename ../images/math/vphantom.png
        scale 85
 
 \end_inset
@@ -3642,7 +3644,7 @@ hphantom
 
 
 \begin_inset Graphics
-       filename ../../../../LyX 2.2/Resources/images/math/hphantom.png
+       filename ../images/math/hphantom.png
        scale 85
 
 \end_inset
@@ -33892,7 +33894,7 @@ arg   "math-macro newmacroname_newcommand"
 
 
 \begin_inset Graphics
-       filename ../../../../LyX 2.2/Resources/doc/clipart/macrobox.png
+       filename clipart/macrobox.png
        scale 75
 
 \end_inset
@@ -34047,7 +34049,7 @@ qG
 
 
 \begin_inset Graphics
-       filename ../../../../LyX 2.2/Resources/doc/clipart/macrouse.png
+       filename clipart/macrouse.png
        scale 75
 
 \end_inset
@@ -34197,7 +34199,7 @@ When the cursor is in a macro definition box, you will see the macro toolbar
 
 \begin_layout Standard
 \begin_inset Graphics
-       filename ../../../../LyX 2.2/Resources/doc/clipart/MacroToolbar.png
+       filename clipart/MacroToolbar.png
 
 \end_inset