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