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.

How can I change font family (and size) for footnotes? Would be great to see a small example.

share|improve this question
    
Is there a particular reason you want your footnote text to be a different font from the main body text? –  Seamus Nov 1 '10 at 13:35
    
@Seamus Well, I want the opposite. I want my footnote text to be of the same font as main body text. I changed main body with \fontfamily{phv}\selectfont, but it doesn't affect footnotes –  yegor256 Nov 1 '10 at 15:11
    
Oh right. I thought that would have changed footnote font as well... –  Seamus Nov 1 '10 at 15:31

3 Answers 3

up vote 8 down vote accepted

Footnotes are typeset using (surprise) \footnotesize and the current font family. With the standard document classes, you may change this to, say, \small\sffamily by partially redefining the \@footnotetext command (Note: I'm using the etoolbox package for convenience):

\documentclass{article}

\usepackage{etoolbox}
\makeatletter
\patchcmd{\@footnotetext}{\footnotesize}{\small\sffamily}{}{}
\makeatother

\usepackage{blindtext}

\begin{document}

\blindtext\footnote{\blindtext}

\end{document}

A small drawback of this solution is that the footnote label is not affected by these changes.

The KOMA-Script-classes allow for a more elegant solution without the drawback mentioned above:

\documentclass{scrartcl}

\addtokomafont{footnote}{\small\sffamily}

\usepackage{blindtext}

\begin{document}

\blindtext\footnote{\blindtext}

\end{document}

EDIT: As Vincenzo pointed out, using the footmisc package is also possible:

\usepackage{footmisc}
\renewcommand*{\footnotelayout}{\small\sffamily}

This works with standard and KOMA-Script-classes, but also has the drawback that it won't affect the footnote label.

share|improve this answer
1  
Can't I use footmisc package for this purpose? –  yegor256 Nov 1 '10 at 14:46
    
@Vincenzo: Correct - I've edited my answer accordingly. –  lockstep Nov 1 '10 at 15:00
    
Thanks, works perfectly now! –  yegor256 Nov 1 '10 at 15:13

According to your comment, I'll answer not the question you asked, but what I think is the "right question" in this case, namely: "how to I change the default font for a (portion of a) document?"

The answer is: change the definitions of the various \stuffdefault macros---for a complete list of the possible values of stuff, see section 41.2 in source2e.pdf (try texdoc source2e to access this document). As an example, in this case I guess you want to do

\renewcommand\familydefault{\sfdefault}
\renewcommand\sfdefault{phv}
\normalfont

Beware, the value for \familydefault is a command, while the value for all other macros are only letters (without backslash) that will be used to form the complete logical name of the font. (Actually, it could be only letters too, but the use of a command provides an additional level of indirection that is usually welcome.) The final \normalfont command ensures that the modifications take effect immediately.

share|improve this answer
    
Many thanks, this is exactly what I need! I up-voted your answer, but can't select it as the best since my question was wrongly stated, as you mentioned. Thanks again. –  yegor256 Nov 1 '10 at 15:53

I'm not sure whether this is a good idea, but to change the size of the footnote to (for example) Large put this in your preamble:

\let\footnotesize\Large

Changing the font family is, I think, a little trickier.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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