On Sat, Aug 02, 2008 at 02:00:41AM +0930, Will Robertson wrote: > On 01/08/2008, at 7:27 PM, Enrico Forestieri wrote: > > > On Fri, Aug 01, 2008 at 06:51:38PM +0930, Will Robertson wrote: > > > >> There's no way *in general* to find out what the default font of a > >> class is. But each class is hand-crafted for LyX, right? > > > > No, the classes are used unmodified. > > Err, sorry, I wasn't clear :) > I meant: when each class is added to the list of classes you can > choose in LyX, a number of choices are made about what options are > available and what the visual layout in the LyX document should be, > right? > > I.e., in theory (I'm not suggesting this!) for every class that is > added that uses CM by default you could choose to use the LM font > instead. (But leave things alone otherwise.)
This is still fragile, because you could choose to load your own font package in order to substitute standard fonts with something else. So, if we load, without you knowing it, the lmodern package, a clash could arise (if this should happen to me, I would think the developers are really amateurs, or that they are ready to participate to the development of Word ;-). > > I really hate the software that pretends to know better than me > > and changes defaults behind my back. Who wants LM fonts by default > > can do that quite easily using "Save as Document Defaults", so I > > don't understand why this discussion is still lasting so long ;-) > > I agree! > > I think the best solution will be for me, eventually, to write a LaTeX > class that includes everything "good" by default and then convince you > guys to provide an interface to it in LyX... LyX is quite versatile and you really don't need to write a class for including whatever you like by default. For example, I attach here a simple layout file which adds a "article (lm fonts)" to the document class combo. After you put it in ~/.lyx/layouts and reconfigure, you will have another article format which uses LM fonts by default. Of course, you can load it with whatever you deem absolutely necessary for producing beatiful documents. -- Enrico PS: You again hit the wrong button in your mailer and left out the list ;-)
#% Do not delete the line below; configure depends on this # \DeclareLaTeXClass[article]{article (lm fonts)} # Input article.layout Preamble \usepackage{lmodern} EndPreamble