Discussion:
changing font
(too old to reply)
Sant
2008-09-13 05:09:13 UTC
Permalink
Hi,

Currently I use :

\documentclass [12pt]{book}

But I don't like the font it produces. I need my document
font look like fonts in a printed back (say Arial block).
How can I do ?

In general, I would like to play with different fonts. What should I
do
to achive this ?

I tried to change in
/MiKTeX 2.7/tex/latex/base/book.cls

but it did not help.

Any pointer is appreciated

Thanks
Sant
Juhapekka Tolvanen
2008-09-13 06:31:40 UTC
Permalink
Post by Sant
Hi,
\documentclass [12pt]{book}
But I don't like the font it produces. I need my document
font look like fonts in a printed back (say Arial block).
How can I do ?
Arial is just a cheap plastic copy of Helvetica. This way you get
Helvetica everywhere (but monospace font is kept intact):

\renewcommand{\sfdefault}{phv}
\renewcommand{\familydefault}{\sfdefault}
\fontfamily{\familydefault}
Post by Sant
In general, I would like to play with different fonts. What should I
do
to achive this ?
In order to change serif font:

\renewcommand{\rmdefault}{something}

In order to change sans serif font:

\renewcommand{\sfdefault}{something}

In order to change monospace-font:

\renewcommand{\ttdefault}{something}


Here are some possibilities of fonts and font families:

% Palatino:
% Very good, if you are going to read from paper.
% Use this even if you do not write math.
% A packet called "palatino" is deprecated. See: CTAN: l2tabu
%\usepackage{mathpazo}
% Use Palatino-fonts of fpl-neu -package:
% <http://home.vrweb.de/~was/x/FPL/>:
%\renewcommand{\rmdefault}{fp9x}
% Just like above, but use old style digits:
%\renewcommand{\rmdefault}{fp9j}

% Concrete fonts:
% Slab serif, hence works quite well on screen.
%\usepackage{beton}
% There are no bold Concrete fonts, but it is generally accepted that the
% Computer Modern Sans Serif demibold condensed fonts are an adequate
% substitute. If you are using concmath or ccfonts and you want to
% follow this suggestion, then use the package with boldsans class
% option (in spite of the fact that the concmath documentation calls it
% sansbold class option).
%\renewcommand{\bfdefault}{sbc}

% Bitstream Charter:
% Better for reading from screen
%\usepackage{charter}

% Bitstream Vera -fonts:
% Even better for reading from screen.
% If you use this, you'd better comment away those
% Sans Serif- and Monospace -settings below, because
% Bitstream Vera has good sans serif- and monospace-fonts, too.:
\usepackage{bera}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Sans Serif -font
% This should be taken from CM-Super- and hfbright-fonts:
%\renewcommand{\sfdefault}{cmbr}
% Use this, if CM Super-fonts are broken:
%\renewcommand{\sfdefault}{lmss}

% Helvetica
%\renewcommand{\sfdefault}{phv}
% Also this trick is from l2tabu
%\usepackage[scaled=.95]{helvet}

% Condensed Helvetica as sans serif font:
% From: Bob Tennent <***@cs.queensu.ca>
% Subject: Re: Condensed Helvetica as a default sans serif font?
% Newsgroups: comp.text.tex
% Date: 4 Jan 2007 04:39:21 GMT
% Message-ID: <***@linus.cs.queensu.ca>

\renewcommand{\sffamily}{\fontfamily{phv}\fontseries{mc}\selectfont}
% Myös lihavoituihin sans-serif-fontteihin kavennus mukaan:
\renewcommand{\sffamily}{%
\renewcommand{\bfdefault}{bc}%
\fontfamily{phv}\fontseries{mc}\selectfont%
}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Monospace-font:
% This should be taken from CM-Super-fonts:
%\renewcommand{\ttdefault}{cmtt}
% Use this, if CM Super-fonts are broken:
%\renewcommand{\ttdefault}{lmtt}

% Quite good monospace-font:
%\renewcommand{\ttdefault}{txtt}


You should find some directory like:
/usr/share/texmf-texlive/tex/latex/psnfss

Every *.sty -package there is some LaTeX-package that has some effect on
fons. You can load them with command \usepackage{something} .

What else? Standard doument classes of LaTeX use serif font in both body
text and in titles. Only difference is size and boldness. In classes of
KOMA-script titles are done with current sans serif font.

If you want to adjust titles and their fonts, you can do it easily in
KOMA-script -document classes and in document class class called
"memoir", because they provide commands for that. In other document
classes you can use package called "titlesec":

\usepackage{titlesec}

\titleformat{\part}[display]
{\normalfont\HUGE\filright\bfseries}{\MakeUppercase{Part\ \thepart}}{20pt}{\HUGE\filright\MakeUppercase}

\titleformat{\chapter}[display]
{\normalfont\Huge\filright\bfseries}{\MakeUppercase{\chaptertitlename\ \thechapter}}{1em}{\Huge\filright\MakeUppercase}

\titleformat{\section}
{\normalfont\filright\huge\bfseries}{\MakeUppercase{\thesection}}{1em}{}

\titleformat{\subsection}
{\normalfont\filright\LARGE\bfseries}{\thesubsection}{1em}{}

\titleformat{\subsubsection}
{\normalfont\filright\Large\bfseries}{\thesubsubsection}{1em}{}

\titleformat{\paragraph}[runin]
{\normalfont\large\bfseries}{\theparagraph}{1em}{}

\titleformat{\subparagraph}[runin]
{\normalfont\normalsize\bfseries}{\thesubparagraph}{1em}{}

\titlespacing*{\chapter} {0pt}{30pt}{20pt}
\titlespacing*{\section} {0pt}{3.5ex plus 1ex minus .2ex}{2.3ex plus .2ex}
\titlespacing*{\subsection} {0pt}{3.25ex plus 1ex minus .2ex}{1.5ex plus .2ex}
\titlespacing*{\subsubsection}{0pt}{3.25ex plus 1ex minus .2ex}{1.5ex plus .2ex}
\titlespacing*{\paragraph} {0pt}{3.25ex plus 1ex minus .2ex}{1em}
\titlespacing*{\subparagraph} {\parindent}{3.25ex plus 1ex minus .2ex}{1em}
--
Juhapekka "naula" Tolvanen * http colon slash slash iki dot fi slash juhtolv
"ore wo mitsumeteiru anata sama wa ossharu bakari. kesshite dakiyosete wa
kurenai ooki na anata no te. ore no tanjoubi ni wa ai wo kai ataeru. kyou wa
kumori nochi ame." Dir en grey
Scott Pakin
2008-09-13 15:32:14 UTC
Permalink
Post by Sant
In general, I would like to play with different fonts. What should I
do
to achive this ?
There are packages available for using a variety of different fonts with
LaTeX. What's nice about using a package (e.g., mathptmx for Times and
mathpazo for Palatino) is that it may configure an entire font *family* --
a body font, a bold font, an italic font, math fonts, etc. -- to produce
a consistent-looking document.

You may also be interested in XeLaTeX, which facilitates using arbitrary
system fonts in LaTeX with minimal effort.

-- Scott
Sant
2008-09-13 23:13:03 UTC
Permalink
Post by Scott Pakin
There are packages available for using a variety of different fonts with
LaTeX.  What's nice about using a package (e.g., mathptmx for Times and
mathpazo for Palatino) is that it may configure an entire font *family* --
a body font, a bold font, an italic font, math fonts, etc. -- to produce
a consistent-looking document.
-- Scott
Scott,
Thanks a lot. I have two questions:

1. As you mentioned mathptmx for Times, mathpazo for Palatino
where can I get the list of all the stuff, so that I can try and
choose what I need.

2. If I need comicsan font(as in MS word), what package I should use ?

Thanks
Robin Fairbairns
2008-09-14 10:32:04 UTC
Permalink
Post by Sant
1. As you mentioned mathptmx for Times, mathpazo for Palatino
where can I get the list of all the stuff, so that I can try and
choose what I need.
nowhere really. it's rather dynamic just now; but there's a list
(whose format i reaslly must address some time) at
http://www.tex.ac.uk/cgi-bin/texfaq2html?label=psfchoice
Post by Sant
2. If I need comicsan font(as in MS word), what package I should use ?
if you *really* _must_, there's scott's comicsans package at
http://mirror.ctan.org/macros/latex/contrib/comicsans/
--
Robin Fairbairns, Cambridge
Juhapekka Tolvanen
2008-09-14 13:39:29 UTC
Permalink
Post by Sant
2. If I need comicsan font(as in MS word), what package I should use ?
*PUKE* |-O~

http://www.bancomicsans.com/
--
Juhapekka "naula" Tolvanen * http colon slash slash iki dot fi slash juhtolv
"ore wo mitsumeteiru anata sama wa ossharu bakari. kesshite dakiyosete wa
kurenai ooki na anata no te. ore no tanjoubi ni wa ai wo kai ataeru. kyou wa
kumori nochi ame." Dir en grey
Martin Heller
2008-09-14 13:54:34 UTC
Permalink
Post by Sant
1. As you mentioned mathptmx for Times, mathpazo for Palatino
where can I get the list of all the stuff, so that I can try and
choose what I need.
The LaTeX Font Catalogue <http://www.tug.dk/FontCatalogue/>.
Post by Sant
2. If I need comicsan font(as in MS word), what package I should use ?
<http://www.ctan.org/pkg/comicsans>,
<http://www.ctan.org/pkg/winfonts>
or use XeLaTeX <http://www.tug.org/xetex/>.
jorge sallum
2008-09-13 23:42:01 UTC
Permalink
Have a look in the LaTeX Font Catalogue:
Maybe you can find something that interests you.
http://www.tug.dk/FontCatalogue/
Post by Sant
Hi,
\documentclass [12pt]{book}
But I don't like the font it produces. I need my document
font look like fonts in a printed back (say Arial block).
How can I do ?
In general, I would like to play with different fonts. What should I
do
to achive this ?
I tried to change in
/MiKTeX 2.7/tex/latex/base/book.cls
but it did not help.
Any pointer is appreciated
Thanks
Sant
Tuomas Kasmra
2008-09-14 06:17:25 UTC
Permalink
Post by Sant
2. If I need comicsan font(as in MS word), what package I should use ?
It's hard to imagine someone NEEDS Comic Sans :)
--
kasmra
:wq
tsy
2008-09-16 07:05:59 UTC
Permalink
Post by Tuomas Kasmra
Post by Sant
2. If I need comicsan font(as in MS word), what package I should use ?
It's hard to imagine someone NEEDS Comic Sans :)
It's good for reading long texts (e-books) from screen. Also it is not
that bad in slides.
Juhapekka Tolvanen
2008-10-06 01:46:14 UTC
Permalink
Post by tsy
Post by Tuomas Kasmra
Post by Sant
2. If I need comicsan font(as in MS word), what package I should use ?
It's hard to imagine someone NEEDS Comic Sans :)
It's good for reading long texts (e-books) from screen. Also it is not
that bad in slides.
It gnaws holes to credibility of text and makes it look childish.
--
Juhapekka "naula" Tolvanen * http colon slash slash iki dot fi slash juhtolv
"ore wo mitsumeteiru anata sama wa ossharu bakari. kesshite dakiyosete wa
kurenai ooki na anata no te. ore no tanjoubi ni wa ai wo kai ataeru. kyou wa
kumori nochi ame." Dir en grey
agora
2008-10-06 02:00:29 UTC
Permalink
Post by Juhapekka Tolvanen
Post by tsy
Post by Tuomas Kasmra
Post by Sant
2. If I need comicsan font(as in MS word), what package I should use ?
It's hard to imagine someone NEEDS Comic Sans :)
It's good for reading long texts (e-books) from screen. Also it is not
that bad in slides.
It gnaws holes to credibility of text and makes it look childish.
It's excellent in slides if the presenter dresses to match.
tsy
2008-10-06 16:12:12 UTC
Permalink
Post by agora
Post by Juhapekka Tolvanen
Post by tsy
Post by Tuomas Kasmra
Post by Sant
2. If I need comicsan font(as in MS word), what package I should use ?
It's hard to imagine someone NEEDS Comic Sans :)
It's good for reading long texts (e-books) from screen. Also it is not
that bad in slides.
It gnaws holes to credibility of text and makes it look childish.
It's excellent in slides if the presenter dresses to match.
"Now I see what is the trouble with you. You are too serious. Serious
face is not a sign of intellect. All the foolish things in the world are
done with such a face. Smile, gentlemen, smile!"
"That Very Same Munchhausen" by Grigoriy Gorin

Continue reading on narkive:
Loading...