Fonts & Character SetsComputer Modern font

Information and discussion about fonts and character sets (e.g. how to use language specific characters)
Post Reply
casperyc
Posts: 50
Joined: Thu Oct 15, 2009 11:23 pm

Computer Modern font

Post by casperyc »

Hi there,

I want to change part of the text into textit and Computer Modern font.

I now use

\textit{
BLA BLA BLA \\
BLA BLA BLA \\
BLA BLA BLA
}

How do I make these chararcters Computer Modern font as well?

Globally, I am using \usepackage{cmbright}

Thanks.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Computer Modern font

Post by frabjous »

Do you just want certain characters in Computer Modern italics, while the main text is with CMBright, or do you want to change the \textit command so that it always produces that effect?

If the former, then this should work:

Code: Select all

\documentclass{article}
\usepackage{cmbright}
\begin{document}
Normal text.
{\fontfamily{cmr}\fontshape{it}\selectfont 
Blah blah blah \\
blah blah blah \\
blah blah blah}
\end{document}
Consider using lmr rather than cmr to get Latin Modern rather than Computer Modern.
Post Reply