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
Document Classes ⇒ beamer | Different Font Size for a specific Line
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
beamer | Different Font Size for a specific Line
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:
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
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:
Code: Select all
normal text{\Large Large sentence }normal text
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
beamer | Different Font Size for a specific Line
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
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:
StefanCode: Select all
normal text{\Large Large sentence }normal text
- Stefan Kottwitz
- Site Admin
- Posts: 10344
- Joined: Mon Mar 10, 2008 9:44 pm
beamer | Different Font Size for a specific Line
Just like I said:
or
or do the same with
instead of \small.
Stefan
Code: Select all
{\small sentence}
Code: Select all
\small sentence \normalsize
Code: Select all
\fontsize{9}{11}\selectfont
Stefan
LaTeX.org admin
Re: beamer | Different Font Size for a specific Line
Thanks Stefan. It works:)