我很难找到用 amsmath 包来表达这个分数的方法。
我得到的结果不太好。还有其他方法可以写出这个分数吗?
\documentclass[10pt,norsk, fleqn]{extarticle}
\usepackage[a4paper, margin=1.2cm,includeheadfoot]{geometry}
\usepackage{amsmath}
\begin{document}
$\displaystyle\frac{a}{\displaystyle\frac{b}{\displaystyle\frac{c}{\displaystyle\frac{d}{e}}}}\to\left(\displaystyle\frac{\left(\displaystyle\frac{\left(\displaystyle\frac{\left(\displaystyle\frac{a}{b}\right)}{c}\right)}{d}\right)}{e}\right)$
\end{document}
答案1
这两种解决方案都很糟糕,但我认为不可能再有更好的解决方案了。
\documentclass{article}
\usepackage{amsmath}
\usepackage{array,delarray}
\newcommand{\pfrac}[2]{\begin{array}({@{}>{\displaystyle}c@{}})\frac{#1}{#2}\end{array}}
\newcommand{\leftparen}[1]{%
\raisebox{-\height}{$\left(\vcenter{\hbox{\vphantom{$#1$}}}\right.\kern-\nulldelimiterspace$}%
}
\newcommand{\rightparen}[1]{%
\raisebox{-\height}{$\left.\kern-\nulldelimiterspace\vcenter{\hbox{\vphantom{$#1$}}}\right)$}%
}
\newcommand{\bigfrac}[1]{\raisebox{-\height}{$#1$}}
\begin{document}
\[
\pfrac{\pfrac{\pfrac{\pfrac{a}{b}}{c}}{d}}{e}
\]
\[
\leftparen{\dfrac{\dfrac{\dfrac{\dfrac{a}{b}}{c}}{d}}{e}}
\leftparen{\dfrac{\dfrac{\dfrac{a}{b}}{c}}{d}}
\leftparen{\dfrac{\dfrac{a}{b}}{c}}
\leftparen{\dfrac{a}{b}}
\bigfrac{\dfrac{\dfrac{\dfrac{\dfrac{a}{b}}{c}}{d}}{e}}
\rightparen{\dfrac{a}{b}}
\rightparen{\dfrac{\dfrac{a}{b}}{c}}
\rightparen{\dfrac{\dfrac{\dfrac{a}{b}}{c}}{d}}
\rightparen{\dfrac{\dfrac{\dfrac{\dfrac{a}{b}}{c}}{d}}{e}}
\]
\end{document}