2000-07-24 13:53:19 +00:00
|
|
|
/* This file is part of
|
|
|
|
* ======================================================
|
|
|
|
*
|
|
|
|
* LyX, The Document Processor
|
|
|
|
*
|
|
|
|
* Copyright 1995 Matthias Ettrich
|
|
|
|
* Copyright 1995-2000 The LyX Team.
|
|
|
|
*
|
|
|
|
* ====================================================== */
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
|
|
#include <config.h>
|
|
|
|
|
2000-07-24 13:53:19 +00:00
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma implementation
|
|
|
|
#endif
|
|
|
|
|
1999-09-27 18:44:28 +00:00
|
|
|
#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.}
|
|
|
|
|
|
|
|
// include this always
|
1999-11-15 12:01:38 +00:00
|
|
|
string const lyx_def =
|
1999-09-27 18:44:28 +00:00
|
|
|
"\\providecommand{\\LyX}{L\\kern-.1667em\\lower.25em\\hbox{Y}\\kern-.125emX\\@}";
|
|
|
|
|
1999-11-15 12:01:38 +00:00
|
|
|
string const lyxline_def =
|
1999-09-27 18:44:28 +00:00
|
|
|
"\\newcommand{\\lyxline}[1]{\n"
|
|
|
|
" {#1 \\vspace{1ex} \\hrule width \\columnwidth \\vspace{1ex}}\n"
|
|
|
|
"}";
|
|
|
|
|
1999-10-02 16:21:10 +00:00
|
|
|
string const noun_def = "\\newcommand{\\noun}[1]{\\textsc{#1}}";
|
1999-09-27 18:44:28 +00:00
|
|
|
|
1999-10-02 16:21:10 +00:00
|
|
|
string const lyxarrow_def =
|
1999-09-27 18:44:28 +00:00
|
|
|
"\\newcommand{\\lyxarrow}{\\leavevmode\\,$\\triangleright$\\,\\allowbreak}";
|
|
|
|
|
|
|
|
// for quotes without babel. This does not give perfect results, but
|
|
|
|
// anybody serious about non-english quotes should use babel (JMarc).
|
|
|
|
|
|
|
|
|
|
|
|
|
1999-11-15 12:01:38 +00:00
|
|
|
string const quotedblbase_def =
|
1999-09-27 18:44:28 +00:00
|
|
|
"\\ProvideTextCommandDefault{\\quotedblbase}{%\n"
|
|
|
|
" \\raisebox{-1.4ex}[1ex][.5ex]{\\textquotedblright}%\n"
|
|
|
|
" \\penalty10000\\hskip0em\\relax%\n"
|
|
|
|
"}";
|
|
|
|
|
1999-11-15 12:01:38 +00:00
|
|
|
string const quotesinglbase_def =
|
1999-09-27 18:44:28 +00:00
|
|
|
"\\ProvideTextCommandDefault{\\quotesinglbase}{%\n"
|
|
|
|
" \\raisebox{-1.4ex}[1ex][.5ex]{\\textquoteright}%\n"
|
|
|
|
" \\penalty10000\\hskip0em\\relax%\n"
|
|
|
|
"}";
|
|
|
|
|
1999-11-15 12:01:38 +00:00
|
|
|
string const guillemotleft_def =
|
1999-09-27 18:44:28 +00:00
|
|
|
"\\ProvideTextCommandDefault{\\guillemotleft}{%\n"
|
|
|
|
" {\\usefont{U}{lasy}{m}{n}\\char'50\\kern-.15em\\char'50}%\n"
|
|
|
|
"\\penalty10000\\hskip0pt\\relax%\n"
|
|
|
|
"}";
|
|
|
|
|
1999-11-15 12:01:38 +00:00
|
|
|
string const guillemotright_def =
|
1999-09-27 18:44:28 +00:00
|
|
|
"\\ProvideTextCommandDefault{\\guillemotright}{%\n"
|
|
|
|
" \\penalty10000\\hskip0pt%\n"
|
|
|
|
" {\\usefont{U}{lasy}{m}{n}\\char'51\\kern-.15em\\char'51}%\n"
|
|
|
|
"}";
|
|
|
|
|
1999-11-15 12:01:38 +00:00
|
|
|
string const guilsinglleft_def =
|
1999-09-27 18:44:28 +00:00
|
|
|
"\\ProvideTextCommandDefault{\\guilsinglleft}{%\n"
|
|
|
|
" {\\usefont{U}{lasy}{m}{n}\\char'50}%\n"
|
|
|
|
" \\penalty10000\\hskip0pt\\relax%\n"
|
|
|
|
"}";
|
|
|
|
|
1999-11-15 12:01:38 +00:00
|
|
|
string const guilsinglright_def =
|
1999-09-27 18:44:28 +00:00
|
|
|
"\\ProvideTextCommandDefault{\\guilsinglright}{%\n"
|
|
|
|
" \\penalty10000\\hskip0pt%\n"
|
|
|
|
" {\\usefont{U}{lasy}{m}{n}\\char'51}%\n"
|
|
|
|
"}";
|
|
|
|
|
1999-11-15 12:01:38 +00:00
|
|
|
string const paragraphindent_def =
|
1999-09-27 18:44:28 +00:00
|
|
|
"\\newenvironment{LyXParagraphIndent}[1]%\n"
|
|
|
|
"{\n"
|
|
|
|
" \\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"
|
|
|
|
" \\setlength\\parsep{0pt plus 1pt}%\n"
|
|
|
|
" }\n"
|
|
|
|
" \\item[]\n"
|
|
|
|
"}\n"
|
|
|
|
"{\\end{list}}\n";
|
|
|
|
|
1999-11-15 12:01:38 +00:00
|
|
|
string const floatingfootnote_def =
|
1999-09-27 18:44:28 +00:00
|
|
|
"%% Special footnote code from the package 'stblftnt.sty'\n"
|
|
|
|
"%% Author: Robin Fairbairns -- Last revised Dec 13 1996\n"
|
|
|
|
"\\let\\SF@@footnote\\footnote\n"
|
|
|
|
"\\def\\footnote{\\ifx\\protect\\@typeset@protect\n"
|
|
|
|
" \\expandafter\\SF@@footnote\n"
|
|
|
|
" \\else\n"
|
|
|
|
" \\expandafter\\SF@gobble@opt\n"
|
|
|
|
" \\fi\n"
|
|
|
|
"}\n"
|
|
|
|
"\\expandafter\\def\\csname SF@gobble@opt \\endcsname{\\@ifnextchar[%]\n"
|
|
|
|
" \\SF@gobble@twobracket\n"
|
|
|
|
" \\@gobble\n"
|
|
|
|
"}\n"
|
|
|
|
"\\edef\\SF@gobble@opt{\\noexpand\\protect\n"
|
|
|
|
" \\expandafter\\noexpand\\csname SF@gobble@opt \\endcsname}\n"
|
|
|
|
"\\def\\SF@gobble@twobracket[#1]#2{}\n";
|
|
|
|
|
1999-11-15 12:01:38 +00:00
|
|
|
string const minipageindent_def =
|
1999-09-27 18:44:28 +00:00
|
|
|
"%% This length is the backup for minipages of the \\parindent\n"
|
|
|
|
"\\newlength{\\LyXMinipageIndent}\n"
|
|
|
|
"\\setlength{\\LyXMinipageIndent}{\\parindent}\n";
|
|
|
|
|
1999-11-15 12:01:38 +00:00
|
|
|
string const boldsymbol_def =
|
1999-09-27 18:44:28 +00:00
|
|
|
"%% Bold symbol macro for standard LaTeX users\n"
|
|
|
|
"\\newcommand{\\boldsymbol}[1]{\\mbox{\\boldmath $#1$}}\n";
|
|
|
|
|
1999-11-15 12:01:38 +00:00
|
|
|
string const binom_def =
|
1999-09-27 18:44:28 +00:00
|
|
|
"%% Binom macro for standard LaTeX users\n"
|
|
|
|
"\\newcommand{\\binom}[2]{{#1 \\choose #2}}\n";
|
|
|
|
|