Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Possible Duplicate:
Simplest way to typeset entire document in sans serif (Helvetica)

I use document class article and included

\usepackage{helvet}

I now begin my document with

\begin{document}
  \sf     % select sans-serif family
  % ... text here ...

Most text is indeed sans-serif. But fur example the footnotes and {\bf bold text} is not.

Let me summarize a test document:

\documentclass[12pt,english]{article}
\usepackage{helvet}
\begin{document}
  \sf  % select sans-serif family
  \title{Document title is sans-serif, fine}
  \maketitle

  Normal Text is sans-serif, too.  % sans-serif, ok.

  {\bf This bold text should be sans-serif, too.} % bold, but roman!!!
\end{document}
share|improve this question

marked as duplicate by lockstep, barbara beeton, diabonas, Heiko Oberdiek, N.N. Sep 26 '12 at 19:47

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

2  
Avoid using \sf, \bf, etc. Use \textsf, \textbf, etc. instead. –  ℝaphink Sep 26 '12 at 13:38
    
@Raphink: Ok, will do for the future. But this was not the issue here, neither did it help. –  towi Sep 26 '12 at 14:17
add comment

1 Answer 1

up vote 6 down vote accepted

This assumes you have no math in your document.

\documentclass[12pt]{article}
\usepackage{helvet} % or \usepackage{tgheros}

%%% we want that the default font family is sans serif
\renewcommand{\rmdefault}{\sfdefault}

\begin{document}

This is sans serif; \textbf{this also} and this again.

\end{document}

Don't use the old two letter commands such as \sf or \bf.

share|improve this answer
    
I mean is there any way (or package) to put sans serif into maths? –  Harish Kumar Sep 26 '12 at 13:44
    
@HarishKumar Not with Helvetica or clones thereof, if one wants a nice result. There are no (free) math fonts that accompany it. –  egreg Sep 26 '12 at 13:44
    
Oh. very bad. :( –  Harish Kumar Sep 26 '12 at 13:45
    
Very good. Luckily, no math here. If it there were, I'd like it to stay in roman anyway -- it just looks better. The constraints on the font family for the document are not mine, of course. Who would define a sans-serif font for a long text? Oh, I forgot to mention: It's supposed to be "Arial"... now you know where such directives are brewed up ;-) I don't mind, though -- those kitchens will not recognize the differences to Helvetica. –  towi Sep 26 '12 at 14:23
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.