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:
Nice-looking p-th roots

On math.stackexchange I wanted the cube root of a fraction in display mode, and used $$\sqrt[3]{\frac ab}$$ to get it. The 3 comes out very small and low in the root sign. I also thought of $$^3\sqrt{\frac ab}$$ but the 3 comes out too far to the left.

share|improve this question

marked as duplicate by Peter Grill, percusse, lockstep, Martin Schröder, Marco Daniel Aug 16 '12 at 14:14

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.

    
@PeterGrill: Thanks. I searched for a while to try to find something like that, but didn't. –  Ross Millikan Aug 14 '12 at 0:27
    
Yeah, things are not always easy to find here. I only knew it exited as I had asked a follow up question: Using \leftroot{}, \uproot{} with closed square root symbol where I had referenced that question. –  Peter Grill Aug 14 '12 at 0:29
add comment

1 Answer

up vote 10 down vote accepted

You can use \leftroot (for horizontal shifting), and/or \uproot (for vertical shifting) from the amsmath package; using \scriptstyle you can increase the size of the index (not sure if this is a good idea); preferable to use a superscript instead of the root:

\documentclass{article}
\usepackage{amsmath}

\begin{document}

\[ 
\sqrt[3]{\frac{a}{b}}\qquad \sqrt[\leftroot{-1}\uproot{2}\scriptstyle 3]{\frac{a}{b}}\qquad
\Bigl(\frac{a}{b}\Bigr)^{1/3} 
\]

\end{document}

enter image description here

share|improve this answer
    
Works great. Thanks. –  Ross Millikan Aug 13 '12 at 17:23
add comment

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