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 the font properties (e.g. size, style, spacing etc) of text above a overbracket in an equation?

For example:

\overbrace{10000r^{n}-750\left(\frac{1-r^{n}}{1-r}\right)}^\text{expression for any year}

I want to change the font size of the sentence expression for any year to become larger.

share|improve this question
    
Welcome to TeX.SX –  Harish Kumar Feb 3 '13 at 10:38

1 Answer 1

up vote 3 down vote accepted

Regular font size/attribute changing commands work inside the \text{....}:

\documentclass{article}
\usepackage{amsmath}
\begin{document}
\[
\overbrace{10000r^{n}-750\left(\frac{1-r^{n}}{1-r}\right)}^\text{\large expression for any year}
\]
\end{document}

enter image description here

share|improve this answer
    
thanks a lot but I would like to konw where can I get the list of font attribute command? I would like to have more manipulation like the actual font size, spacing etc to it. I am still very new to latex. this is just my second day of using it. –  user25196 Feb 3 '13 at 10:56
    
@user25196: you can use \fontsize{<size>}{<interline skip>}\selectfont as in \text{\sffamily\fontsize{14}{17}\selectfont expression for any year}. Here sizes will be in pt. \sffamily (or \textsf{...}) will produce sans font. Similarly you have \bfseries (or \textbf{...}), \ttfamily, \itshape etc. Sorry for not providing a link. No time now for searching. Please search in this site. –  Harish Kumar Feb 3 '13 at 11:15
    
thanks a lot, you are very helpful –  user25196 Feb 3 '13 at 11:51

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.