mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-25 22:06:15 +00:00
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:
parent
4feb6cf62b
commit
36698a933c
@ -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
|
||||
|
@ -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 \
|
||||
|
14
lib/layouts/fixltx2e.module
Normal file
14
lib/layouts/fixltx2e.module
Normal 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
|
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user