Patch from Patrick Atamaniuk.
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg165122.html
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37342
a592a061-630c-0410-9148-
cb99ea01b6c8
eqs-within-sections.module
figs-within-sections.module
fixltx2e.module
eqs-within-sections.module
figs-within-sections.module
fixltx2e.module
foottoend.module
hanging.module
initials.module
foottoend.module
hanging.module
initials.module
layouts/extreport.layout \
layouts/figs-within-sections.module \
layouts/fixltx2e.module \
layouts/extreport.layout \
layouts/figs-within-sections.module \
layouts/fixltx2e.module \
+ layouts/fix-cm.module \
layouts/foils.layout \
layouts/foottoend.module \
layouts/frletter.layout \
layouts/foils.layout \
layouts/foottoend.module \
layouts/frletter.layout \
\TestPackage{fancybox}
\TestPackage{fancyhdr}
\TestPackage{fixltx2e}
\TestPackage{fancybox}
\TestPackage{fancyhdr}
\TestPackage{fixltx2e}
\TestPackage{float}
\TestPackage{framed}
\TestPackage{geometry}
\TestPackage{float}
\TestPackage{framed}
\TestPackage{geometry}
--- /dev/null
+#\DeclareLyXModule{Fix cm}
+#DescriptionBegin
+#Fix-cm improves the appearance of Computer Modern fonts and makes them
+#available with arbitrary sizes. For details see the documentation
+#of the fix-cm.sty package:
+#http://tug.org/texmf-dist/doc/latex/base/fixltx2e.pdf
+#DescriptionEnd
+
+# Author : Patrick Atamaniuk <patrick-lyx@frobs.net>
+
+Format 31
+
+Requires fix-cm
bool BufferParams::writeLaTeX(odocstream & os, LaTeXFeatures & features,
TexRow & texrow, FileName const & filepath) const
{
bool BufferParams::writeLaTeX(odocstream & os, LaTeXFeatures & features,
TexRow & texrow, FileName const & filepath) const
{
+ // http://www.tug.org/texmf-dist/doc/latex/base/fixltx2e.pdf
+ // !! To use the Fix-cm package, load it before \documentclass, and use the command
+ // \RequirePackage to do so, rather than the normal \usepackage
+ // Do not to load any other package before the document class, unless you
+ // have a thorough understanding of the LATEX internals and know exactly what you
+ // are doing!
+ if (features.mustProvide("fix-cm")) {
+ os << "\\RequirePackage{fix-cm}\n";
+ texrow.newline();
+ }
+
os << "\\documentclass";
DocumentClass const & tclass = documentClass();
os << "\\documentclass";
DocumentClass const & tclass = documentClass();