LaTeXFeatures.cpp: make url a simple feature

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20467 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Uwe Stöhr 2007-09-24 17:15:18 +00:00
parent c5372ca60e
commit d4cd884447

View File

@ -397,10 +397,10 @@ char const * simplefeatures[] = {
"subfigure", "subfigure",
"varioref", "varioref",
"prettyref", "prettyref",
/* For a successful cooperation of the `wrapfig' package with the /*For a successful cooperation of the `wrapfig' package with the
`float' package you should load the `wrapfig' package *after* `float' package you should load the `wrapfig' package *after*
the `float' package. See the caption package documentation the `float' package. See the caption package documentation
for explanation.*/ for explanation.*/
"float", "float",
"wrapfig", "wrapfig",
"booktabs", "booktabs",
@ -421,6 +421,7 @@ char const * simplefeatures[] = {
"txfonts", "txfonts",
"mathrsfs", "mathrsfs",
"ascii", "ascii",
"url",
}; };
int const nb_simplefeatures = sizeof(simplefeatures) / sizeof(char const *); int const nb_simplefeatures = sizeof(simplefeatures) / sizeof(char const *);
@ -549,11 +550,6 @@ string const LaTeXFeatures::getPackages() const
params_.use_esint != BufferParams::package_off) params_.use_esint != BufferParams::package_off)
packages << "\\usepackage{esint}\n"; packages << "\\usepackage{esint}\n";
// url.sty
if (mustProvide("url"))
packages << "\\IfFileExists{url.sty}{\\usepackage{url}}\n"
" {\\newcommand{\\url}{\\texttt}}\n";
// natbib.sty // natbib.sty
if (mustProvide("natbib")) { if (mustProvide("natbib")) {
packages << "\\usepackage["; packages << "\\usepackage[";