]> git.lyx.org Git - lyx.git/blobdiff - src/lyx_sty.C
fix typo that put too many include paths for most people
[lyx.git] / src / lyx_sty.C
index 51272d30424db0924d140525da5d5a8c06833433..8b188e296652546dc3956baa2524d1ec58f82185 100644 (file)
@@ -1,26 +1,29 @@
-/*
-  This file is part of
-  ======================================================
-  
-  LyX, The Document Processor
-  
-  Copyright 1995 Matthias Ettrich
-  Copyright 1995-1999 The LyX Team.
-  ======================================================
-  */
+/* This file is part of
+ * ======================================================
+ *
+ *           LyX, The Document Processor
+ *
+ *           Copyright 1995 Matthias Ettrich
+ *           Copyright 1995-2001 The LyX Team.
+ *
+ * ====================================================== */
 
 #include <config.h>
 
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
 #include "lyx_sty.h"
 
 //\NeedsTeXFormat{LaTeX2e}
 //\ProvidesPackage{lyx}[1996/01/11 LLE v0.2 (LyX LaTeX Extensions)]
-//\message{LyX LaTeX Extensions (LLE v0.2) of 11-Jan-1996.} 
+//\message{LyX LaTeX Extensions (LLE v0.2) of 11-Jan-1996.}
 
 // include this always
 string const lyx_def =
        "\\providecommand{\\LyX}{L\\kern-.1667em\\lower.25em\\hbox{Y}\\kern-.125emX\\@}";
-       
+
 string const lyxline_def =
        "\\newcommand{\\lyxline}[1]{\n"
        "  {#1 \\vspace{1ex} \\hrule width \\columnwidth \\vspace{1ex}}\n"
@@ -28,7 +31,7 @@ string const lyxline_def =
 
 string const noun_def = "\\newcommand{\\noun}[1]{\\textsc{#1}}";
 
-string const lyxarrow_def = 
+string const lyxarrow_def =
       "\\newcommand{\\lyxarrow}{\\leavevmode\\,$\\triangleright$\\,\\allowbreak}";
 
 // for quotes without babel. This does not give perfect results, but
@@ -49,28 +52,28 @@ string const quotesinglbase_def =
        "}";
 
 string const guillemotleft_def =
-        "\\ProvideTextCommandDefault{\\guillemotleft}{%\n"
-        "  {\\usefont{U}{lasy}{m}{n}\\char'50\\kern-.15em\\char'50}%\n"
-        "\\penalty10000\\hskip0pt\\relax%\n"
-        "}";
+       "\\ProvideTextCommandDefault{\\guillemotleft}{%\n"
+       "  {\\usefont{U}{lasy}{m}{n}\\char'50\\kern-.15em\\char'50}%\n"
+       "\\penalty10000\\hskip0pt\\relax%\n"
+       "}";
 
 string const guillemotright_def =
-        "\\ProvideTextCommandDefault{\\guillemotright}{%\n"
-        "  \\penalty10000\\hskip0pt%\n"
-        "  {\\usefont{U}{lasy}{m}{n}\\char'51\\kern-.15em\\char'51}%\n"
-        "}";
+       "\\ProvideTextCommandDefault{\\guillemotright}{%\n"
+       "  \\penalty10000\\hskip0pt%\n"
+       "  {\\usefont{U}{lasy}{m}{n}\\char'51\\kern-.15em\\char'51}%\n"
+       "}";
 
 string const guilsinglleft_def =
-        "\\ProvideTextCommandDefault{\\guilsinglleft}{%\n"
-        "  {\\usefont{U}{lasy}{m}{n}\\char'50}%\n"
-        "  \\penalty10000\\hskip0pt\\relax%\n"
-        "}";
+       "\\ProvideTextCommandDefault{\\guilsinglleft}{%\n"
+       "  {\\usefont{U}{lasy}{m}{n}\\char'50}%\n"
+       "  \\penalty10000\\hskip0pt\\relax%\n"
+       "}";
 
 string const guilsinglright_def =
-        "\\ProvideTextCommandDefault{\\guilsinglright}{%\n"
-        "  \\penalty10000\\hskip0pt%\n"
-        "  {\\usefont{U}{lasy}{m}{n}\\char'51}%\n"
-        "}";
+       "\\ProvideTextCommandDefault{\\guilsinglright}{%\n"
+       "  \\penalty10000\\hskip0pt%\n"
+       "  {\\usefont{U}{lasy}{m}{n}\\char'51}%\n"
+       "}";
 
 string const paragraphindent_def =
        "\\newenvironment{LyXParagraphIndent}[1]%\n"
@@ -78,10 +81,10 @@ string const paragraphindent_def =
        "  \\begin{list}{}{%\n"
        "    \\setlength\\topsep{0pt}%\n"
        "    \\addtolength{\\leftmargin}{#1}\n"
-//     "%%    \\addtolength{\\leftmargin}{#1\\textwidth}\n"
-//     "%%    \\setlength{\\textwidth}{#2\\textwidth}\n"
-//     "%%    \\setlength\\listparindent\\parindent%\n"
-//     "%%    \\setlength\\itemindent\\parindent%\n"
+//     "%%    \\addtolength{\\leftmargin}{#1\\textwidth}\n"
+//     "%%    \\setlength{\\textwidth}{#2\\textwidth}\n"
+//     "%%    \\setlength\\listparindent\\parindent%\n"
+//     "%%    \\setlength\\itemindent\\parindent%\n"
        "    \\setlength\\parsep{0pt plus 1pt}%\n"
        "  }\n"
        "  \\item[]\n"
@@ -119,3 +122,6 @@ string const binom_def =
        "%% Binom macro for standard LaTeX users\n"
        "\\newcommand{\\binom}[2]{{#1 \\choose #2}}\n";
 
+string const mathcircumflex_def =
+       "%% For printing a cirumflex inside a formula\n"
+       "\\newcommand{\\mathcircumflex}[0]{\\mbox{\\^{}}}\n";