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.

I have an equation using fractions of fractions - much like

\frac{\frac{a}{b}}{\frac{c}{d}}

However, all of the fraction bars are the same width. I'd like to make the central bar wider than the others for improved readability. Is this possible? I've played around with shrinking the fond sizes of the numerator and denominator a bit, but that still doesn't improve readability.

share|improve this question
    
Can you post a minimal working example (MWE)? The output of \documentclass{article}\begin{document}$\frac{\frac{a}{b}}{\frac{c}{d}}$\end{do‌​cument} has different fraction bar lengths. Or didn't you mean the horizontal width but the line thickness? –  Qrrbrbirlbel Oct 25 '12 at 14:00
1  
When you say "width" do you mean "bar length" (horizontal width) or do you mean "bar thickness" (vertical width)? –  chharvey Mar 11 '13 at 4:54
add comment

3 Answers

up vote 12 down vote accepted

Some space can be added in the outer nominator/denominator, e.g.:

\documentclass{article}
\begin{document}
\[
  \frac{\,\frac{a}{b}\,}{\frac{c}{d}}
\]
\end{document}

Result

share|improve this answer
2  
Oh yes it depends what was meant by "width" (English isn't very clear here) This changes the length (or width as you view it) of the line, whereas genfrac gives control over the thickness (which would be called the width of the line in other circumstances) –  David Carlisle Oct 25 '12 at 14:27
add comment

You can use \genfrac from the amsmath package.

       \genfrac{left-delim}{right-delim}{thickness}{mathstyle}{numerator}{denominator}
share|improve this answer
1  
For orientation, the predefined values are about .4pt, .34pt and .24pt for text/display, script and scriptscript style respectively. –  Qrrbrbirlbel Oct 25 '12 at 14:15
    
@Qrrbrbirlbel "about" or "exactly"? How can I derive the actual, precise values? –  Lover of Structure Mar 4 at 8:44
1  
@LoverofStructure it is set by the fonts in use (fontdimen 8 of the font in \fam 3) see tex.stackexchange.com/questions/88991/… –  David Carlisle Mar 4 at 9:42
    
@DavidCarlisle I'm wondering why the rule thickness isn't by default scaled depending on the mathstyle. Making it easy to have a mathstyle-dependent rule thickness for \genfrac would be good. Am I missing something, or is this an oversight on part of the amsmath folks? –  Lover of Structure Mar 5 at 3:24
1  
@LoverofStructure the default thickness depends on the font so is dependent on the mathstyle normally (assuming a smaller font is used in scripts) if you want to change the defaults you can set different values for fontdimen8, otherwise the intention for \genfrac was probably one-off use so normal lengths are probably easier to use than mu units –  David Carlisle Mar 5 at 8:26
add comment

Making the line thicker using the TeX primitive:

\def\oover{\abovewithdelims...8pt}
$$ {a\over b} \oover {c\over d} $$
\bye

enter image description here

where the first . is the left delimiter, second the right, and the last argument is a dimension for the fraction bar thickness.

share|improve this answer
add comment

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.