Add fixltx2e module which simply loads fixltx2e.sty.

This module can be used instead of \usepackage{fixltx2e} in the preamble
to avoid duplicate definitions of \textsubscript.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36550 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Georg Baum 2010-11-28 10:46:47 +00:00
parent 4feb6cf62b
commit 36698a933c
4 changed files with 21 additions and 1 deletions

View File

@ -2926,6 +2926,7 @@ lib_layouts_module_files = Split('''
endnotes.module
eqs-within-sections.module
figs-within-sections.module
fixltx2e.module
foottoend.module
hanging.module
initials.module

View File

@ -1098,6 +1098,7 @@ dist_layouts_DATA =\
layouts/extletter.layout \
layouts/extreport.layout \
layouts/figs-within-sections.module \
layouts/fixltx2e.module \
layouts/foils.layout \
layouts/foottoend.module \
layouts/frletter.layout \

View File

@ -0,0 +1,14 @@
#\DeclareLyXModule{Fix LaTeX}
#DescriptionBegin
#Loads the LaTeX package fixltx2e which contains some bug fixes for LaTeX.
#Those fixes are not part of the LaTeX kernel because of backward compatibility.
#If you use this module your typeset document may look different
#when you process it with future LaTeX versions, because fixltx2e may provide
#more bugfixes in future versions.
#DescriptionEnd
# Author : Georg Baum <baum@lyx.org>
Format 30
Requires fixltx2e

View File

@ -575,7 +575,7 @@ char const * simplefeatures[] = {
"framed",
"soul",
"textcomp",
"subscript",
"fixltx2e",
"pmboxdraw",
"bbding",
"ifsym",
@ -823,6 +823,10 @@ string const LaTeXFeatures::getPackages() const
"\\makenomenclature\n";
}
// fixltx2e provides subscript
if (mustProvide("subscript") && !isRequired("fixltx2e"))
packages << "\\usepackage{subscript}\n";
return packages.str();
}