]> git.lyx.org Git - lyx.git/blobdiff - src/lyx_sty.C
Continue to improve GtkLengthEntry
[lyx.git] / src / lyx_sty.C
index 4c9f42af7bd9d115be291749282871663d547bc9..01945fd18118112f78cee59ba6e366f4c1a8d2ae 100644 (file)
@@ -30,7 +30,7 @@ string const lyxline_def =
 string const noun_def = "\\newcommand{\\noun}[1]{\\textsc{#1}}";
 
 string const lyxarrow_def =
-      "\\newcommand{\\lyxarrow}{\\leavevmode\\,$\\triangleright$\\,\\allowbreak}";
+       "\\newcommand{\\lyxarrow}{\\leavevmode\\,$\\triangleright$\\,\\allowbreak}";
 
 // for quotes without babel. This does not give perfect results, but
 // anybody serious about non-english quotes should use babel (JMarc).
@@ -109,7 +109,7 @@ string const floatingfootnote_def =
 
 string const boldsymbol_def =
        "%% Bold symbol macro for standard LaTeX users\n"
-       "\\newcommand{\\boldsymbol}[1]{\\mbox{\\boldmath $#1$}}\n";
+       "\\providecommand{\\boldsymbol}[1]{\\mbox{\\boldmath $#1$}}\n";
 
 string const binom_def =
        "%% Binom macro for standard LaTeX users\n"
@@ -126,3 +126,10 @@ string const tabularnewline_def =
 string const lyxgreyedout_def =
        "%% The greyedout annotation environment\n"
        "\\newenvironment{lyxgreyedout}{\\color[gray]{0.8}}{}\n";
+
+// We want to omit the file extension for includegraphics, but this does not
+// work when the filename contains other dots.
+// Idea from http://www.tex.ac.uk/cgi-bin/texfaq2html?label=unkgrfextn
+string const lyxdot_def =
+       "%% A simple dot to overcome graphicx limitations\n"
+       "\\newcommand{\\lyxdot}{.}\n";