3 * Copyright 1995-2002 the LyX Team
4 * Read the file COPYING
6 * \author Lars Gullik Bjornes <larsbj@lyx.org>
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.}
17 string const lyx_def =
18 "\\providecommand{\\LyX}{L\\kern-.1667em\\lower.25em\\hbox{Y}\\kern-.125emX\\@}";
20 string const lyxline_def =
21 "\\newcommand{\\lyxline}[1]{\n"
22 " {#1 \\vspace{1ex} \\hrule width \\columnwidth \\vspace{1ex}}\n"
25 string const noun_def = "\\newcommand{\\noun}[1]{\\textsc{#1}}";
27 string const lyxarrow_def =
28 "\\newcommand{\\lyxarrow}{\\leavevmode\\,$\\triangleright$\\,\\allowbreak}";
30 // for quotes without babel. This does not give perfect results, but
31 // anybody serious about non-english quotes should use babel (JMarc).
33 string const quotedblbase_def =
34 "\\ProvideTextCommandDefault{\\quotedblbase}{%\n"
35 " \\raisebox{-1.4ex}[1ex][.5ex]{\\textquotedblright}%\n"
36 " \\penalty10000\\hskip0em\\relax%\n"
39 string const quotesinglbase_def =
40 "\\ProvideTextCommandDefault{\\quotesinglbase}{%\n"
41 " \\raisebox{-1.4ex}[1ex][.5ex]{\\textquoteright}%\n"
42 " \\penalty10000\\hskip0em\\relax%\n"
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"
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"
57 string const guilsinglleft_def =
58 "\\ProvideTextCommandDefault{\\guilsinglleft}{%\n"
59 " {\\usefont{U}{lasy}{m}{n}\\char'50}%\n"
60 " \\penalty10000\\hskip0pt\\relax%\n"
63 string const guilsinglright_def =
64 "\\ProvideTextCommandDefault{\\guilsinglright}{%\n"
65 " \\penalty10000\\hskip0pt%\n"
66 " {\\usefont{U}{lasy}{m}{n}\\char'51}%\n"
69 string const paragraphleftindent_def =
70 "\\newenvironment{LyXParagraphLeftIndent}[1]%\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"
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"
94 " \\expandafter\\SF@gobble@opt\n"
97 "\\expandafter\\def\\csname SF@gobble@opt \\endcsname{\\@ifnextchar[%]\n"
98 " \\SF@gobble@twobracket\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";
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";
110 string const boldsymbol_def =
111 "%% Bold symbol macro for standard LaTeX users\n"
112 "\\newcommand{\\boldsymbol}[1]{\\mbox{\\boldmath $#1$}}\n";
114 string const binom_def =
115 "%% Binom macro for standard LaTeX users\n"
116 "\\newcommand{\\binom}[2]{{#1 \\choose #2}}\n";
118 string const mathcircumflex_def =
119 "%% For printing a cirumflex inside a formula\n"
120 "\\newcommand{\\mathcircumflex}[0]{\\mbox{\\^{}}}\n";