TransWikia.com

How to make a division line a bit longer than normal?

TeX - LaTeX Asked on June 18, 2021

documentclass[preview,border=12pt,12pt]{standalone}

usepackage{mathtools}

begin{document}
$
displaystyle
begin{aligned}
-frac{3x}{10} &= 6 
-frac{3}{10}x &= 6
        x       &= frac{6}{-tfrac{3}{10}}
                &= -frac{tfrac{6}{1}}{tfrac{3}{10}}
                &= - frac{6}{1}times frac{10}{3} 
                &= -20
end{aligned}
$
end{document}

Result

enter image description here

Expected

enter image description here

2 Answers

I don't think it's useful: the fraction line on the formula axis (midway of the = sign) is sufficient to tell the reader what's the main one.

Using ; is perhaps exaggerated, try with ,.

documentclass{article}
usepackage{mathtools}

newcommand{Mfrac}[2]{% main fraction
  frac{;#1;}{;#2;}%
}

begin{document}

[
begin{aligned}
-frac{3x}{10} &= 6 
-frac{3}{10}x &= 6
             x &= Mfrac{6}{-tfrac{3}{10}}
               &= -Mfrac{tfrac{6}{1}}{tfrac{3}{10}}
               &= - Mfrac{6}{1}times Mfrac{10}{3}  % <-- is it good here?
               &= -20
end{aligned}
]
end{document}

enter image description here

Correct answer by egreg on June 18, 2021

Perhaps you can manually add some white space by, say, ~, , or even hspace?

[
    begin{aligned}
        -frac{3x}{10} &= 6 
        -frac{3}{10}x &= 6
                x       &= frac{6}{-tfrac{3}{10}}
                        &= -frac{~tfrac{6}{1}~}{tfrac{3}{10}}
                        &= - frac{~6~}{1}times frac{10}{3} 
                        &= -20
    end{aligned}
]

enter image description here

Answered by Jinwen on June 18, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP