Fractions common denominator

For the curved symbol you can use \smile:

\documentclass{article}
\usepackage{amsmath}

\newcommand{\fractionswithlcm}[2]{%
  {\underbrace{#1}_{\displaystyle#2}}%
}
\newcommand{\fracm}[3]{%
  \overset{#1}{\overset{\displaystyle\smile}{\frac{#2}{#3}}}%
}

\begin{document}

\[
\fractionswithlcm{
  \fracm{12}{13}{25},
  \fracm{15}{9}{20},
  \fracm{75}{3}{4},
  \fracm{60}{3}{5},
  \fracm{50}{1}{6}
}{300}
\]

\end{document}

enter image description here


Why take the risk of an error in computing ?

\documentclass{article}
\usepackage{amsmath}
\usepackage{xintgcd}

\newsavebox\mybox
\newcommand{\fractionswithlcm}[1]{%
  \sbox\mybox{\gdef\simeondenominators{}%
      \def\fracm##1##2{\xdef\simeondenominators{\simeondenominators{##2}}}%
      $#1$}%
  \edef\simeonlcm{\xintLCMof{\simeondenominators}}%
  {\underbrace{#1}_{\displaystyle\simeonlcm}}%
}
\newcommand{\fracm}[2]{%
  \overset{\xintiiQuo{\simeonlcm}{#2}}%
          {\overset{\displaystyle\smile}{\frac{#1}{#2}}}%
}

\begin{document}

\[
\fractionswithlcm{
  \fracm{13}{25},
  \fracm{9}{20},
  \fracm{3}{4},
  \fracm{3}{5},
  \fracm{1}{6}
}
\]

\end{document}

enter image description here


As per OP request in a comment, here is with only the numbers on top but not anymore the big underbrace.

\documentclass{article}
\usepackage{amsmath}
\usepackage{xintgcd}

\newsavebox\mybox
\newcommand{\fractionswithlcm}[1]{%
  \sbox\mybox{\gdef\simeondenominators{}%
      \def\fracm##1##2{\xdef\simeondenominators{\simeondenominators{##2}}}%
      $#1$}%
  \edef\simeonlcm{\xintLCMof{\simeondenominators}}%
  #1%
}
\newcommand{\fracm}[2]{%
  \overset{\xintiiQuo{\simeonlcm}{#2}}%
          {\overset{\displaystyle\smile}{\frac{#1}{#2}}}%
}

\begin{document}

\[
\fractionswithlcm{
  \fracm{13}{25},
  \fracm{9}{20},
  \fracm{3}{4},
  \fracm{3}{5},
  \fracm{1}{6}
}
\]

\end{document}

enter image description here


With \widehat instead of curves:

mew

\documentclass{article}
\usepackage{amsmath}
\begin{document}
$\overset{\underbrace{
\underset{\widehat{\dfrac{13}{25},}}{12}
\underset{\widehat{\dfrac{9}{20}},}{15}
\underset{\widehat{\dfrac{3}{4}},\ }{75}
\underset{\widehat{\dfrac{1}{6}},\ }{60}
\underset{\widehat{\dfrac{3}{5}}\ }{50}
}}{300}$
\end{document}

Edit: Ok, with curves

mwe

\documentclass{article}
\usepackage{amsmath}
% https://tex.stackexchange.com/a/191042/11604
\makeatletter
\def\widebreve#1{\mathop{\vbox{\m@th\ialign{##\crcr\noalign{\kern3\p@}%
      \brevefill\crcr\noalign{\kern3\p@\nointerlineskip}%
      $\hfil\displaystyle{#1}\hfil$\crcr}}}\limits}

\def\brevefill{$\m@th \setbox\z@\hbox{$\braceld$}%
  \bracelu\leaders\vrule \@height\ht\z@ \@depth\z@\hfill\braceru$}
\makeatletter

\begin{document}
$\overset{\underbrace{
\underset{\widebreve{\dfrac{13}{\makebox[1em]{25}}},}{12}
\underset{\widebreve{\dfrac{9}{\makebox[1em]{20}}},}{15}
\underset{\widebreve{\dfrac{3}{\makebox[1em]{4}}},}{75}
\underset{\widebreve{\dfrac{1}{\makebox[1em]{6}}},}{60}
\underset{\widebreve{\dfrac{3}{\makebox[1em]{5}}}}{50}
}}{300}$
\end{document}

Tags:

Fractions