3

I want to redefine by increasing the width of the fraction line. enter image description here

\documentclass{article}
\usepackage{amsfonts}
\usepackage{amsmath}
\usepackage[utf8]{inputenc}

\begin{document}
$\dfrac{x+y}{x^2-y^2}$\hspace{1cm}$\dfrac{\;\;\;x+y\;\;\;}{x^2-y^2}$
\end{document}
4
  • 1
    I'd not use \dfrac in inline math normally, but you can define your own command \newcommand\myfrac[2]{\dfrac{\;#1\;}{\;#2\;}} Sep 7, 2021 at 16:34
  • Yes it worked. Really amazing thank you:)
    – suarez
    Sep 7, 2021 at 16:38
  • @DavidCarlisle Can you help me with this? tex.stackexchange.com/questions/614343/…
    – cufcuf
    Sep 7, 2021 at 17:37
  • @cufcuf that's not how the site works Sep 7, 2021 at 17:49

1 Answer 1

5

I'd not use \dfrac in inline math normally, but you can define your own command \newcommand\myfrac[2]{\dfrac{\;#1\;}{\;#2\;}} (or better use \frac in the definition)

1
  • Yes i used \frac in the definition thanks
    – suarez
    Sep 7, 2021 at 16:41

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .