]> git.lyx.org Git - lyx.git/blobdiff - src/lyx_sty.C
Delay bibfileCache first update up until it is used.
[lyx.git] / src / lyx_sty.C
index 94078b90ff4710f89d27894ff1804058b99c5b53..b529c5d3601300e04b4cd53759b26d7a063b33b7 100644 (file)
@@ -1,15 +1,23 @@
 /**
  * \file lyx_sty.C
- * Copyright 1995-2002 the LyX Team
- * Read the file COPYING
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
- * \author Lars Gullik Bjornes <larsbj@lyx.org>
+ * \author Lars Gullik Bjønnes
+ *
+ * Full author contact details are available in file CREDITS.
  */
 
 #include <config.h>
 
 #include "lyx_sty.h"
 
+
+namespace lyx {
+
+using std::string;
+
+
 //\NeedsTeXFormat{LaTeX2e}
 //\ProvidesPackage{lyx}[1996/01/11 LLE v0.2 (LyX LaTeX Extensions)]
 //\message{LyX LaTeX Extensions (LLE v0.2) of 11-Jan-1996.}
@@ -25,7 +33,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).
@@ -70,7 +78,7 @@ string const paragraphleftindent_def =
        "\\newenvironment{LyXParagraphLeftIndent}[1]%\n"
        "{\n"
        "  \\begin{list}{}{%\n"
-       "    \\setlength\\topsep{0pt}%\n"
+       "    \\setlength{\\topsep}{0pt}%\n"
        "    \\addtolength{\\leftmargin}{#1}\n"
 // ho hum, yet more things commented out with no hint as to why they
 // weren't just removed
@@ -78,7 +86,7 @@ string const paragraphleftindent_def =
 //     "%%    \\setlength{\\textwidth}{#2\\textwidth}\n"
 //     "%%    \\setlength\\listparindent\\parindent%\n"
 //     "%%    \\setlength\\itemindent\\parindent%\n"
-       "    \\setlength\\parsep{0pt plus 1pt}%\n"
+       "    \\setlength{\\parsep}{0pt plus 1pt}%\n"
        "  }\n"
        "  \\item[]\n"
        "}\n"
@@ -102,14 +110,9 @@ string const floatingfootnote_def =
        "  \\expandafter\\noexpand\\csname SF@gobble@opt \\endcsname}\n"
        "\\def\\SF@gobble@twobracket[#1]#2{}\n";
 
-string const minipageindent_def =
-       "%% This length is the backup for minipages of the \\parindent\n"
-       "\\newlength{\\LyXMinipageIndent}\n"
-       "\\setlength{\\LyXMinipageIndent}{\\parindent}\n";
-
 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"
@@ -120,5 +123,19 @@ string const mathcircumflex_def =
        "\\newcommand{\\mathcircumflex}[0]{\\mbox{\\^{}}}\n";
 
 string const tabularnewline_def =
-        "%% Because html converters don't know tabularnewline\n"
-        "\\providecommand{\\tabularnewline}{\\\\}\n";
+       "%% Because html converters don't know tabularnewline\n"
+       "\\providecommand{\\tabularnewline}{\\\\}\n";
+
+string const lyxgreyedout_def =
+       "%% The greyedout annotation environment\n"
+       "\\newenvironment{lyxgreyedout}{\\textcolor[gray]{0.8}\\bgroup}{\\egroup}\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";
+
+
+} // namespace lyx