]> git.lyx.org Git - lyx.git/blob - src/lyx_sty.C
fix compilation; remove cruft in configure script (I may have removed too much, but...
[lyx.git] / src / lyx_sty.C
1 /**
2  * \file lyx_sty.C
3  * Copyright 1995-2002 the LyX Team
4  * Read the file COPYING
5  *
6  * \author Lars Gullik Bjornes <larsbj@lyx.org>
7  */
8
9 #include <config.h>
10
11 #include "lyx_sty.h"
12
13 //\NeedsTeXFormat{LaTeX2e}
14 //\ProvidesPackage{lyx}[1996/01/11 LLE v0.2 (LyX LaTeX Extensions)]
15 //\message{LyX LaTeX Extensions (LLE v0.2) of 11-Jan-1996.}
16
17 string const lyx_def =
18         "\\providecommand{\\LyX}{L\\kern-.1667em\\lower.25em\\hbox{Y}\\kern-.125emX\\@}";
19
20 string const lyxline_def =
21         "\\newcommand{\\lyxline}[1]{\n"
22         "  {#1 \\vspace{1ex} \\hrule width \\columnwidth \\vspace{1ex}}\n"
23         "}";
24
25 string const noun_def = "\\newcommand{\\noun}[1]{\\textsc{#1}}";
26
27 string const lyxarrow_def =
28       "\\newcommand{\\lyxarrow}{\\leavevmode\\,$\\triangleright$\\,\\allowbreak}";
29
30 // for quotes without babel. This does not give perfect results, but
31 // anybody serious about non-english quotes should use babel (JMarc).
32
33 string const quotedblbase_def =
34         "\\ProvideTextCommandDefault{\\quotedblbase}{%\n"
35         "  \\raisebox{-1.4ex}[1ex][.5ex]{\\textquotedblright}%\n"
36         "  \\penalty10000\\hskip0em\\relax%\n"
37         "}";
38
39 string const quotesinglbase_def =
40         "\\ProvideTextCommandDefault{\\quotesinglbase}{%\n"
41         "  \\raisebox{-1.4ex}[1ex][.5ex]{\\textquoteright}%\n"
42         "  \\penalty10000\\hskip0em\\relax%\n"
43         "}";
44
45 string const guillemotleft_def =
46         "\\ProvideTextCommandDefault{\\guillemotleft}{%\n"
47         "  {\\usefont{U}{lasy}{m}{n}\\char'50\\kern-.15em\\char'50}%\n"
48         "\\penalty10000\\hskip0pt\\relax%\n"
49         "}";
50
51 string const guillemotright_def =
52         "\\ProvideTextCommandDefault{\\guillemotright}{%\n"
53         "  \\penalty10000\\hskip0pt%\n"
54         "  {\\usefont{U}{lasy}{m}{n}\\char'51\\kern-.15em\\char'51}%\n"
55         "}";
56
57 string const guilsinglleft_def =
58         "\\ProvideTextCommandDefault{\\guilsinglleft}{%\n"
59         "  {\\usefont{U}{lasy}{m}{n}\\char'50}%\n"
60         "  \\penalty10000\\hskip0pt\\relax%\n"
61         "}";
62
63 string const guilsinglright_def =
64         "\\ProvideTextCommandDefault{\\guilsinglright}{%\n"
65         "  \\penalty10000\\hskip0pt%\n"
66         "  {\\usefont{U}{lasy}{m}{n}\\char'51}%\n"
67         "}";
68
69 string const paragraphleftindent_def =
70         "\\newenvironment{LyXParagraphLeftIndent}[1]%\n"
71         "{\n"
72         "  \\begin{list}{}{%\n"
73         "    \\setlength\\topsep{0pt}%\n"
74         "    \\addtolength{\\leftmargin}{#1}\n"
75 // ho hum, yet more things commented out with no hint as to why they
76 // weren't just removed
77 //      "%%    \\addtolength{\\leftmargin}{#1\\textwidth}\n"
78 //      "%%    \\setlength{\\textwidth}{#2\\textwidth}\n"
79 //      "%%    \\setlength\\listparindent\\parindent%\n"
80 //      "%%    \\setlength\\itemindent\\parindent%\n"
81         "    \\setlength\\parsep{0pt plus 1pt}%\n"
82         "  }\n"
83         "  \\item[]\n"
84         "}\n"
85         "{\\end{list}}\n";
86
87 string const floatingfootnote_def =
88         "%% Special footnote code from the package 'stblftnt.sty'\n"
89         "%% Author: Robin Fairbairns -- Last revised Dec 13 1996\n"
90         "\\let\\SF@@footnote\\footnote\n"
91         "\\def\\footnote{\\ifx\\protect\\@typeset@protect\n"
92         "    \\expandafter\\SF@@footnote\n"
93         "  \\else\n"
94         "    \\expandafter\\SF@gobble@opt\n"
95         "  \\fi\n"
96         "}\n"
97         "\\expandafter\\def\\csname SF@gobble@opt \\endcsname{\\@ifnextchar[%]\n"
98         "  \\SF@gobble@twobracket\n"
99         "  \\@gobble\n"
100         "}\n"
101         "\\edef\\SF@gobble@opt{\\noexpand\\protect\n"
102         "  \\expandafter\\noexpand\\csname SF@gobble@opt \\endcsname}\n"
103         "\\def\\SF@gobble@twobracket[#1]#2{}\n";
104
105 string const minipageindent_def =
106         "%% This length is the backup for minipages of the \\parindent\n"
107         "\\newlength{\\LyXMinipageIndent}\n"
108         "\\setlength{\\LyXMinipageIndent}{\\parindent}\n";
109
110 string const boldsymbol_def =
111         "%% Bold symbol macro for standard LaTeX users\n"
112         "\\newcommand{\\boldsymbol}[1]{\\mbox{\\boldmath $#1$}}\n";
113
114 string const binom_def =
115         "%% Binom macro for standard LaTeX users\n"
116         "\\newcommand{\\binom}[2]{{#1 \\choose #2}}\n";
117
118 string const mathcircumflex_def =
119         "%% For printing a cirumflex inside a formula\n"
120         "\\newcommand{\\mathcircumflex}[0]{\\mbox{\\^{}}}\n";