Text FormattingAppearance of a Document – Page Style and Font

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
sobikl
Posts: 6
Joined: Tue Dec 27, 2011 11:38 am

Appearance of a Document – Page Style and Font

Post by sobikl »

Can I change style of letters like in Word (Arial, roman, ...) or can I change page style?

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: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Appearance of a Document – Page Style and Font

Post by Stefan Kottwitz »

Hi sobiki,

welcome to the board!
sobikl wrote:Can I change style of letters like in word(arial, roman,....)
Yes, you can. LaTeX offers commands for switching to sans serif fonts (like Arial), to roman font (such as Times Roman), and to typewriter font (such as Courier). Which font should be used for each of these font families, is usually specified in the preamble. With standard LaTeX you can use fonts which are similar to the one you mentioned. For example, load Helvetica instead of Arial, because Arial is known to be a lower quality clone of Helvetiva. With XeLaTeX you can access also your "original" Arial and Roman fonts, like all system fonts.
sobikl wrote: or can I change page style?
Yes, of course. LaTeX is a high quality typesetting program, which can be used to design also the page style. It depends what you mean with style - headings, margins, page numbering etc.

Since you have very basic questions, I recommend to read an introduction. You can find some here: LaTeX Resources for Beginners.

Stefan
LaTeX.org admin
sobikl
Posts: 6
Joined: Tue Dec 27, 2011 11:38 am

Appearance of a Document – Page Style and Font

Post by sobikl »

Stefan_K wrote:Yes, you can. LaTeX offers commands for switching to sans serif fonts (like Arial), to roman font (such as Times Roman), and to typewriter font (such as Courier). Which font should be used for each of these font families, is usually specified in the preamble. With standard LaTeX you can use fonts which are similar to the one you mentioned. For example, load Helvetica instead of Arial, because Arial is known to be a lower quality clone of Helvetiva. With XeLaTeX you can access also your "original" Arial and Roman fonts, like all system fonts.
How can I do that? (What do I have to write in preamble to change letters in Arial)?
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Appearance of a Document – Page Style and Font

Post by Stefan Kottwitz »

sobikl wrote:How can I do that? (What do I have to write in preamble to change lettere in arial)?
For getting the original Helvetica:

Code: Select all

\usepackage{helvet}
\renewcommand*{\familydefault}{\sfdefault}
Getting the MS clone requires Windows. I have Linux though.

If you really would like to use the Microsoft version, have a look at: The Scourge of Arial.

Stefan
LaTeX.org admin
sobikl
Posts: 6
Joined: Tue Dec 27, 2011 11:38 am

Appearance of a Document – Page Style and Font

Post by sobikl »

Stefan_K wrote:

Code: Select all

\usepackage{helvet}
\renewcommand*{\familydefault}{\sfdefault}
If I paste this in preamble all text disappears, just math symbols stay. Why?
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Re: Appearance of a Document – Page Style and Font

Post by Stefan Kottwitz »

Perhaps show a (reduced) copy of your code here, otherwise it's hard to guess what went wrong. When I used those lines, text never disappeared.

Stefan
LaTeX.org admin
sobikl
Posts: 6
Joined: Tue Dec 27, 2011 11:38 am

Re: Appearance of a Document – Page Style and Font

Post by sobikl »

I just copy this two lines in preamble. Perhaps I shoud do anathying else?

What other possibilities are for changing letter types?
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Appearance of a Document – Page Style and Font

Post by Stefan Kottwitz »

Try

Code: Select all

\textsf{here is some text}
for changing to sans serif (Arial-like) font.

Stefan
LaTeX.org admin
sobikl
Posts: 6
Joined: Tue Dec 27, 2011 11:38 am

Re: Appearance of a Document – Page Style and Font

Post by sobikl »

Ok thanx, that changes the letter type. But how can How can I change the whole document in other type? And where can I look all the possible styles?
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Appearance of a Document – Page Style and Font

Post by Stefan Kottwitz »

sobikl wrote:Ok thanx, that changes the letter type. But how can How can I change the whole document in other type?
By

Code: Select all

\renewcommand*{\familydefault}{\sfdefault}
sobikl wrote: And where can I look all the posible styles?
Have a look at the LaTeX Font Catalogue.

Stefan
LaTeX.org admin
Post Reply