Text FormattingUsing different fonts for section and body

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
User avatar
hariharanb
Posts: 12
Joined: Mon Jun 28, 2010 10:48 am

Using different fonts for section and body

Post by hariharanb »

Hello all,

I've been using LaTeX for past 6 months. I am stuck with a problem here.

Code: Select all

\usepackage{lmodern}
This will put LM Roman font in the paragraph text. I would like to know how to use different font Say, Minion Pro, for

Code: Select all

\section{Introduction}
\section{Technical Overview}
etc..

Please clarify. I am using TeXLive 2009, Linux.
Masters in Technology, Software Engineering
International Institute of Information Technology - Bangalore, India

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Stefan Kottwitz
Site Admin
Posts: 10344
Joined: Mon Mar 10, 2008 9:44 pm

Using different fonts for section and body

Post by Stefan Kottwitz »

Hi Hariharan,

the titlesec package provides commands for formatting section headings. They may be used for switching the font.

I prefer KOMA-script classes, they are like extensions of the standard classes. Among many features they provide commands to adjust the fonts of section headings, like \setkomafont{section}{\large\usefont{T1}{...}{bx}{n}} etc.

Stefan
LaTeX.org admin
User avatar
hariharanb
Posts: 12
Joined: Mon Jun 28, 2010 10:48 am

Using different fonts for section and body

Post by hariharanb »

For Minion Pro, should I give "Minion Pro" instead of '...' inside \usefont?

Code: Select all

\setkomafont{section}{\large\usefont{T1}{...}{bx}{n}}
should it be like this?

Code: Select all

\setkomafont{section}{\large\usefont{T1}{Minion Pro}{bx}{n}}
Masters in Technology, Software Engineering
International Institute of Information Technology - Bangalore, India
Post Reply