Post by SantHi,
\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 SantIn 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