3 ======================================================
5 LyX, The Document Processor
7 Copyright 1995 Matthias Ettrich
8 Copyright 1995-2000 The LyX Team.
9 ======================================================
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.}
20 // include this always
21 string const lyx_def =
22 "\\providecommand{\\LyX}{L\\kern-.1667em\\lower.25em\\hbox{Y}\\kern-.125emX\\@}";
24 string const lyxline_def =
25 "\\newcommand{\\lyxline}[1]{\n"
26 " {#1 \\vspace{1ex} \\hrule width \\columnwidth \\vspace{1ex}}\n"
29 string const noun_def = "\\newcommand{\\noun}[1]{\\textsc{#1}}";
31 string const lyxarrow_def =
32 "\\newcommand{\\lyxarrow}{\\leavevmode\\,$\\triangleright$\\,\\allowbreak}";
34 // for quotes without babel. This does not give perfect results, but
35 // anybody serious about non-english quotes should use babel (JMarc).
39 string const quotedblbase_def =
40 "\\ProvideTextCommandDefault{\\quotedblbase}{%\n"
41 " \\raisebox{-1.4ex}[1ex][.5ex]{\\textquotedblright}%\n"
42 " \\penalty10000\\hskip0em\\relax%\n"
45 string const quotesinglbase_def =
46 "\\ProvideTextCommandDefault{\\quotesinglbase}{%\n"
47 " \\raisebox{-1.4ex}[1ex][.5ex]{\\textquoteright}%\n"
48 " \\penalty10000\\hskip0em\\relax%\n"
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"
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"
63 string const guilsinglleft_def =
64 "\\ProvideTextCommandDefault{\\guilsinglleft}{%\n"
65 " {\\usefont{U}{lasy}{m}{n}\\char'50}%\n"
66 " \\penalty10000\\hskip0pt\\relax%\n"
69 string const guilsinglright_def =
70 "\\ProvideTextCommandDefault{\\guilsinglright}{%\n"
71 " \\penalty10000\\hskip0pt%\n"
72 " {\\usefont{U}{lasy}{m}{n}\\char'51}%\n"
75 string const paragraphindent_def =
76 "\\newenvironment{LyXParagraphIndent}[1]%\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"
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"
98 " \\expandafter\\SF@gobble@opt\n"
101 "\\expandafter\\def\\csname SF@gobble@opt \\endcsname{\\@ifnextchar[%]\n"
102 " \\SF@gobble@twobracket\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";
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";
114 string const boldsymbol_def =
115 "%% Bold symbol macro for standard LaTeX users\n"
116 "\\newcommand{\\boldsymbol}[1]{\\mbox{\\boldmath $#1$}}\n";
118 string const binom_def =
119 "%% Binom macro for standard LaTeX users\n"
120 "\\newcommand{\\binom}[2]{{#1 \\choose #2}}\n";