为了练习,我必须垂直拉伸总和和其他符号,例如
如您所见,尺寸在水平方向上没有变化。有什么建议吗?我已经找了很长时间了 :/
*注意,我没有这张图片的代码,练习是关于如何重新制作这张图片。
答案1
像这样?
当然,因为这是一个练习,我不应该透露我制作图像的代码。;-)
当然,基础\resizebox{1}[1.6]{...}
在于graphicx
包装。不过,正确的定位并不容易,但也不是很难。
这是注释代码
\documentclass{article}
\usepackage{graphicx,calc,amsmath}
\newcommand{\ssum}{%
\mathop{%
% get the dimensions of \sum in \displaystyle
\sbox0{$\displaystyle\sum$}%
% lower the stretched \sum by its height and raise it by the height
% of the unstretched symbol; give it the height it should have
% and the right depth
\raisebox{-\height+\ht0}[\ht0][\dp0]{\scalebox{1}[1.6]{\copy0}}%
}\displaylimits
}
\newcommand{\sbrace}[2]{%
#1{% #1 is either \mathopen or \mathclose, #2 is \lbrace or \rbrace (or any delimiter)
% get the dimensions of the unstretched delimiter so that
% it covers \sum with subscript and superscript
\sbox0{$\displaystyle\left#2\vphantom{\sum_{i=1}^{n}}\right.\kern-\nulldelimiterspace$}%
% as before, place the symbol, but in this case we want its
% depth to be zero; the stretching is somewhat different
\raisebox{-\height+\ht0}[\ht0][0pt]{\scalebox{1}[1.7]{\copy0}}%
}%
}
\newcommand{\slbrace}{\sbrace{\mathopen}{\lbrace}} % stretched left brace
\newcommand{\srbrace}{\sbrace{\mathclose}{\rbrace}} % stretched right brace
\begin{document}
\[
0=\ssum_{i=1}^{n} m(X_{i},\hat{\theta}_{i})
=\ssum_{i=1}^{n} m(X_{i},\hat{\theta}_{0})
+\slbrace
\ssum_{i=1}^{n}\frac{\partial m(X_{i},\theta^{*}_{n})}{\partial \theta^{T}}
\srbrace
(\hat{\theta}_{n}-\theta_{0}).
\]
\textbf{\qquad l 2} \emph{Omdat $\hat{\theta}_{n}\xrightarrow{p}\theta^{*}_{0}$
en $\theta^{*}_{0}$ een waarde is die tussen $\hat{\theta}_{n}$ en
$\theta^{*}_{0}$ ligt, zal}
\end{document}
我不确定学生是否真的应该知道所有这些,但也许教练会学到一些东西。;-)
答案2
针对 sigma 失真和括号失真进行了修订:
\documentclass{article}
\usepackage{scalerel}
\usepackage{stackengine}
\stackMath
\newcommand\ssum[1]{\stackunder[1pt]{\stackunder[-7pt]{%
\stackon[1.5pt]{\displaystyle\stretchrel*{\sum}{\sum_{i_x}}}{\scriptstyle n}%
}{\scriptstyle i=1}#1}{\rule{0ex}{3ex}}%
}
\begin{document}
\[
0 = \ssum{m(X_i,\hat\theta_n)} + \ssum{m(X_i,\theta_0)} +
\stretchleftright{\{}{\ssum{\frac{\partial m(X_i,\hat\theta_n^*)}{\partial\theta^T}}}{\}}%
(\hat\theta_n - \theta_0)
\]
\end{document}