LaTeX forum ⇒ Document Classesbeamer | Different Font Size for a specific Line

Information and discussion about specific document classes and how to create your own document classes.
shva
Posts: 4
Joined: Sun Aug 07, 2011 9:09 pm

beamer | Different Font Size for a specific Line

Postby shva » Sun Aug 07, 2011 9:17 pm

Hi all,

I am using the beamer class and quite happy about it. But now there is a little problem: can I change the font size of a specific sentence which is different from the font size of the rest of text? Thanks very much!

Shva

Recommended reading 2021:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics
User avatar
Stefan Kottwitz
Site Admin
Posts: 10120
Joined: Mon Mar 10, 2008 9:44 pm

beamer | Different Font Size for a specific Line

Postby Stefan Kottwitz » Sun Aug 07, 2011 9:36 pm

Hi Shva,

welcome to the board!

There are standard LaTeX commands for different font sizes. In increasing order: \tiny, \scriptsize, \footnotesize, \small, \normalsize (default), \large, \Large, \LARGE, \huge and \Huge.

They switch the size, but their effect can be limited by grouping with braces. So you could write, for example:

normal text

{\Large Large sentence }

normal text


Beamer even offers smaller size commands: \Tiny and \TINY.

For arbitrary sizes, have a look at Increase font size, standard sizes are explained here: LaTeX font sizes.

Note, inter line spacing depends on the font size, so I usually don't mix different font sizes in the same paragraph.

Stefan
LaTeX.org admin

shva
Posts: 4
Joined: Sun Aug 07, 2011 9:09 pm

beamer | Different Font Size for a specific Line

Postby shva » Sun Aug 07, 2011 9:40 pm

Thanks Stefan. But is it possible to specify the font weight associated with the sentence? For example, I would like to have the sentence's font weight set to 9pt, while the rest of the text is 10pt set by preamble.

Shva

Stefan_K wrote:Hi Shva,

welcome to the board!

There are standard LaTeX commands for different font sizes. In increasing order: \tiny, \scriptsize, \footnotesize, \small, \normalsize (default), \large, \Large, \LARGE, \huge and \Huge.

They switch the size, but their effect can be limited by grouping with braces. So you could write, for example:

normal text

{\Large Large sentence }

normal text


Stefan

User avatar
Stefan Kottwitz
Site Admin
Posts: 10120
Joined: Mon Mar 10, 2008 9:44 pm

beamer | Different Font Size for a specific Line

Postby Stefan Kottwitz » Sun Aug 07, 2011 9:45 pm

Just like I said:

{\small sentence}


or

\small sentence \normalsize


or do the same with

\fontsize{9}{11}\selectfont


instead of \small.

Stefan
LaTeX.org admin

shva
Posts: 4
Joined: Sun Aug 07, 2011 9:09 pm

Re: beamer | Different Font Size for a specific Line

Postby shva » Mon Aug 08, 2011 12:25 am

Thanks Stefan. It works:)


Return to “Document Classes”

Who is online

Users browsing this forum: No registered users and 5 guests