更大的感叹号

更大的感叹号

如何让感叹号和括号一样大?谢谢您的帮助!

在此处输入图片描述

答案1

可以办到 - 但不应该

在此处输入图片描述

\documentclass{article}
\usepackage{graphicx} % for "\resizebox" macro
\newlength\mylen
\settoheight{\mylen}{$\bigg)$}
\newcommand\bigbang{\vcenter{\hbox{\resizebox{!}{1.6\mylen}{!}}}}
\begin{document}
\[ 
\Biggl( \biggl( \frac{p-1}{2}\biggr) \bigbang \Biggr) 
\]
\end{document}

答案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}

输出:

拉伸示例的输出

相关内容