使用(不兼容的)xymtex 包时改变数学模式的大小

使用(不兼容的)xymtex 包时改变数学模式的大小

我必须使用可变大小的数学模式,还要使用一些化学图形。对于化学图形,我通常使用chemfig包。然而,在某些情况下使用xymtexpdf更容易。问题是,调整大小的数学模式没有总是与 xymtex 合作。

MWE 在这里解释了所有

\documentclass[12pt]{article}
\usepackage{relsize,graphicx}
\usepackage{xymtexpdf} % uncommenting this line produces the expected output

\begin{document}
    \textbf{Stars}
    
    This should be a normal sized star = $\star$
    
    This should be a smaller sized star = $\mathsmaller{\star}$
    
    This should be a yet smaller sized star = $\mathsmaller{\mathsmaller{\star}}$
    
    This should be a normal sized star, displaystyle = ${\displaystyle \star}$
    
    This should be a normal sized star, textstyle = ${\textstyle \star}$
    
    This should be a smaller sized star, alternate way = ${\scriptstyle \star}$
    
    This should be a yet smaller sized star, alternate way = ${\scriptscriptstyle \star}$
    
    This should guarantee to produce a smaller size star = \scalebox{0.8}{$\star$}
    
    This should guarantee to produce a yet smaller star = \scalebox{0.65}{$\star$}
    
    
    \textbf{Equations}
    
    This should be a normal sized equation = $x^2+56+\sin x+\sqrt{x}$
    
    This should be a smaller sized equation = $\mathsmaller{x^2+56+\sin x+\sqrt{x}}$
    
    This should be a yet smaller sized equation = $\mathsmaller{\mathsmaller{x^2+56+\sin x+\sqrt{x}}}$
    
    This should be a normal sized equation, displaystyle = ${\displaystyle x^2+56+\sin x+\sqrt{x}}$
    
    This should be a normal sized equation, textstyle = ${\textstyle x^2+56+\sin x+\sqrt{x}}$
    
    This should be a smaller sized equation, alternate way = ${\scriptstyle x^2+56+\sin x+\sqrt{x}}$
    
    This should be a yet smaller sized equation, alternate way = ${\scriptscriptstyle x^2+56+\sin x+\sqrt{x}}$
    
    This should guarantee to produce a smaller size equation = \scalebox{0.8}{$x^2+56+\sin x+\sqrt{x}$}
    
    This should guarantee to produce a yet smaller equation = \scalebox{0.65}{$x^2+56+\sin x+\sqrt{x}$}
\end{document}

知道如何纠正吗?

相关内容