XeTeX ⇒ How to globally assign fonts to elements of a given type, and to environments
How to globally assign fonts to elements of a given type, and to environments
Possibly I've missed something, but couldn't find information or examples on how to assign, in the preamble, a font or a font family to all elements in a document of a given type, for example section names (titles), table contents or environments. To illustrate, I'd like to to use a sans serif font different from the main one for the chapter titles of a book.
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- Stefan Kottwitz
- Site Admin
- Posts: 10358
- Joined: Mon Mar 10, 2008 9:44 pm
How to globally assign fonts to elements of a given type, and to environments
Stefan
How to globally assign fonts to elements of a given type, and to environments
On a related front, I've been rather ineptly trying to influence the approach of LibreOffice Writer to styles and immediate formatting (https://bugs.documentfoundation.org/sho ... i?id=90068). Recent developments in the LaTeX ecosystem might guide a much-needed modernisation of LO if the respective experts would indulge in a bit of cross-fertilisation. I think the most urgent priority here is to get each element of Writer that has a style (headings...) to scale automatically to the text body point size. This seems obvious to LaTeX users, but not, apparently, to the wierd world of wordprocessors.