答案1
答案2
使用 Steven B. Segletes 的软件包可以获得与 Mico 相同的结果scalerel
:
% My standard header for TeX.SX answers:
\documentclass[a4paper]{article} % To avoid confusion, let us explicitly
% declare the paper format.
\usepackage[T1]{fontenc} % Not always necessary, but recommended.
% End of standard header. What follows pertains to the problem at hand.
\usepackage{amsmath} % unrelated, but always recommendable when math is involved
\usepackage{scalerel}
\begin{document}
Some text before the equation.
\[
\Biggl(\biggl(\frac{p-1}{2}\biggr)
% ( paren match
\scalerel*{!}{\bigg)}\Biggr)
\]
\end{document}
(当 Mico 回答时我正在测试代码……:-)
编辑:我已经修正了代码(它是\scalerel*
,而不是\scalerel
!),并且我借此机会展示输出并重申Mico的建议(见评论... :-):不要这样做!
添加:\stretchrel
我一直在检查如果使用而不是,结果是否会更好\scalerel
,但我不会这么说……
% My standard header for TeX.SX answers:
\documentclass[a4paper]{article} % To avoid confusion, let us explicitly
% declare the paper format.
\usepackage[T1]{fontenc} % Not always necessary, but recommended.
% End of standard header. What follows pertains to the problem at hand.
\usepackage{amsmath} % unrelated, but always recommendable when math is involved
\usepackage{scalerel}
\begin{document}
Some text before the equation.
\[
\Biggl(\biggl(\frac{p-1}{2}\biggr)
% ( paren match
\scalerel*{!}{\bigg)}\Biggr)
\]
Perhaps better with \verb|\stretchrel|?
\[
\Biggl(\biggl(\frac{p-1}{2}\biggr)
% ( paren match
\stretchrel*[500]{!}{\bigg)}\Biggr)
\]
I~wouldn't say so!
\end{document}
输出: