Dear LyX Users,
I've run up against a problem that I don't know how to solve. I've
spent the last several days putting together a document class that
matches the style of my book publisher. Because it uses an Open Type
font, I created it as a XeLaTeX class. I've set up my xetex per the
instructions on the LyX wiki and have been using it for several weeks
without trouble.
On the document class side of things, everything appears to be working.
The fonts are properly loaded and all of my custom macros are working.
On the LyX side of things, the outlook isn't nearly rosy. While the
document will compile without problems, it insists on using the wrong
font - I think it's computer modern (whatever it is, it's a bitmap font
and hideously ugly).
Moreover, it insists on using this font no matter what I do to change
it. I've tried changing it from the Gui. I've tried adding things to
the LaTeX preamble. Neither works.
What's even more strange, when I export it to standard LaTeX and try and
get things to work right from the command line, I have the same
problems. I can get it to compile correctly if I go in and modify the
exported LaTeX. Here's what LyX exports:
\documentclass[oneside,english]{rapidBook}
\usepackage{mathpazo}
\usepackage[T1]{fontenc}
...
If I delete \usepackage[T1]{fontenc}, then it will compile with the
correct fonts. What I don't understand, however, is why this package is
being added to my LaTeX output. How can I tell LyX to not add this
package? Is there something in my layout file that is causing it?
Any insights would be extremely appreciated.
Cheers,
Rob
#% Do not delete the line below; configure depends on this
# \DeclareLaTeXClass{rapidBOOK}
# rapidBook Chapter File. Works with rapidBook.cls
# Author : Robert Oakes <[email protected]>
# Transposed by Pascal André <[email protected]>
# Heavily modifed and enhanced by serveral developers.
Input stdclass.inc
Sides 2
SecNumDepth 3
TocDepth 3
NoStyle Abstract
Style Section-Bold
Category Section
Margin Dynamic
LabelType Counter
LabelCounter section
TocLevel 1
LatexType Command
LatexName sectionbold
NeedProtect 1
NextNoIndent 1
LabelSep xxx
ParSkip 0.4
TopSep 1.3
BottomSep 0.7
ParSep 0.7
Align Block
OptionalArgs 1
Font
Series Bold
Size Larger
EndFont
End
Style Section-Medium
Category Section
Margin Dynamic
LabelType Counter
LabelCounter section
TocLevel 1
LatexType Command
LatexName sectionmedium
NeedProtect 1
NextNoIndent 1
LabelSep xxx
ParSkip 0.4
TopSep 1.3
BottomSep 0.7
ParSep 0.7
Align Block
OptionalArgs 1
Font
Series Bold
Size Larger
EndFont
End
Style Subsection-Medium
CopyStyle Section
LabelCounter subsection
TocLevel 2
LatexName subsectionmedium
TopSep 0.9
BottomSep 0.5
ParSep 0.5
Font
Series Bold
Size Large
EndFont
End
Style Author-Bio
LatexName authorbio
LatexType Command
InTitle 1
Font
Size Small
EndFont
Margin Dynamic
LeftMargin MMN
RightMargin MMN
Align Block
AlignPossible Block, Left, Right, Center
Labeltype Static
LabelString "Author Biography:"
Labelsep M
LabelFont
Series Bold
Size Small
EndFont
End
Style ISBN
LatexName isbn
LatexType Command
InTitle 1
Align Center
AlignPossible Left, Right, Center
TopSep 0.5
BottomSep 0.5
Font
Shape Italic
Size Small
EndFont
End
Style Book-Series
LatexName bookseries
LatexType Command
InTitle 1
Align Center
AlignPossible Left, Right, Center
TopSep 0.5
BottomSep 0.5
Font
Shape Italic
Size Small
EndFont
End
Style Bibliography
TopSep 4
LabelString "Bibliography"
LabelFont
Series Bold
Size Huge
EndFont
End