hi all.
i need to know how can we change fonts in a same winshell document.
for example write the first paragraph with a " times new roman" font, the second with "arial", the third with " courier new".
plz reply as soon as possible.
General ⇒ fonts
NEW: TikZ book now 40% off at Amazon.com for a short time.

- Stefan Kottwitz
- Site Admin
- Posts: 10345
- Joined: Mon Mar 10, 2008 9:44 pm
fonts
Hi fouad,
welcome to the board!
welcome to the board!
those are truetype fonts. I guess you've quoted them because you've meant a serif font, a sans-serif font and a monospaced font. The standard font used by LaTeX is Computer Modern, some commands to change the font typeface arefouad wrote: for example write the first paragraph with a " times new roman" font, the second with "arial", the third with " courier new"
- \rmfamily - switch to Roman (serif)
- \sffamily - switch to Sans Serif
- \ttfamily - switch to Typeweriter (monospaced)
LaTeX.org admin
- Stefan Kottwitz
- Site Admin
- Posts: 10345
- Joined: Mon Mar 10, 2008 9:44 pm
fonts
Hi fouad,
you could just try.
Or compile this document:
Use the backslash \ instead of / at the the beginning of commands.
Stefan
you could just try.
Or compile this document:
Code: Select all
\documentclass[a4paper,10pt]{article}
\begin{document}
hi all
\ttfamily
hi everyone
\sffamily
hi everybody
\rmfamily
good bye
\end{document}
Stefan
LaTeX.org admin