0

I need help making this types of diagrams

enter image description here

I tried to use \frac but it doesn't work because I need the equal symbol to be on top, also I tried to use \underline but I don't know if there is some way to put text below.

I've been thinking I could do it with \tikz, but I wanted to see if there's an easier way.

Mons
  • 35

2 Answers2

1

You could use an invisible fraction based on \genfrac from amsmath.

\documentclass{article}
\usepackage[fleqn]{amsmath}
\newcommand{\ifrac}[2]{\genfrac{}{}{0pt}{}{#1}{#2}}
\begin{document}
\[\frac{52}{1^\circ}\ifrac{\cdot}{}\frac{51}{2^\circ}\ifrac{\cdots}{}\frac{1}{52^\circ}\ifrac{=52!}{}\]    
or
\[\frac{52}{1^\circ}\ifrac{\cdot}{}\frac{51}{2^\circ}\ifrac{\cdots}{\cdots}\frac{1}{52^\circ}\ifrac{=52!}{}\]    
\end{document}

enter image description here

0

Following David's answer here:

enter image description here

\documentclass{article}

\newcommand{\myVerticalRaise}{1.5ex} % Variable for vertical raise used in \raisebox.

\begin{document}

\begin{equation} \frac{52}{1} \mathrel{\raisebox{\myVerticalRaise}{$\cdot$}}% \frac{51}{2} \mathrel{\raisebox{\myVerticalRaise}{$\cdot$}}% \frac{1}{52} % \mathrel{\raisebox{\myVerticalRaise}{$=52!$}} \end{equation}

\end{document}