mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 19:07:45 +00:00
Bug #7095: Support fix-cm.sty
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
This commit is contained in:
parent
e70a79fc0b
commit
42785e6219
@ -2932,6 +2932,7 @@ lib_layouts_module_files = Split('''
|
||||
eqs-within-sections.module
|
||||
figs-within-sections.module
|
||||
fixltx2e.module
|
||||
fix-cm.module
|
||||
foottoend.module
|
||||
hanging.module
|
||||
initials.module
|
||||
|
@ -1096,6 +1096,7 @@ dist_layouts_DATA =\
|
||||
layouts/extreport.layout \
|
||||
layouts/figs-within-sections.module \
|
||||
layouts/fixltx2e.module \
|
||||
layouts/fix-cm.module \
|
||||
layouts/foils.layout \
|
||||
layouts/foottoend.module \
|
||||
layouts/frletter.layout \
|
||||
|
@ -267,6 +267,7 @@
|
||||
\TestPackage{fancybox}
|
||||
\TestPackage{fancyhdr}
|
||||
\TestPackage{fixltx2e}
|
||||
\TestPackage{fix-cm}
|
||||
\TestPackage{float}
|
||||
\TestPackage{framed}
|
||||
\TestPackage{geometry}
|
||||
|
13
lib/layouts/fix-cm.module
Normal file
13
lib/layouts/fix-cm.module
Normal file
@ -0,0 +1,13 @@
|
||||
#\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
|
@ -1202,6 +1202,17 @@ void BufferParams::validate(LaTeXFeatures & features) 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();
|
||||
|
Loading…
Reference in New Issue
Block a user