
答案1
不幸的是,\mathop\bigtriangledown
什麼也沒做。例如,輸入
\bigtriangledown\times\mathop\bitriangledown\times\nabla
產量
原因在於 的邊界框\bigtriangledown
:
它已經通過頂部空白區域相對於公式軸居中。
以上是預設的 Computer Modern 字體。對於其他字體,例如 NewTX,由於邊界框不同,輸出可能會有所不同。從newtxmath
上面的輸入你確實得到了,
你可以看到中間的三角形因為 稍微往下移動了\mathop
。
所以恐怕解決方案依賴字體。
您可以使用現代計算機做什麼?一個想法可能是將符號升高其深度的適當部分。這裡我使用了係數0.5
\documentclass{article}
\usepackage{amsmath,esvect}
\makeatletter
\renewcommand{\nabla}{\mathord{\mathpalette\raise@half\bigtriangledown}}
\newcommand\raise@half[2]{%
\raisebox{.5\depth}{$\m@th#1#2$}%
}
\makeatother
\begin{document}
\[
(w_E)_{0}=-\frac{1}{\rho_0 f}(\nabla \times \vv{\tau}^{s})_{z}
\]
\[
\nabla x\quad\scriptstyle\nabla x\quad\scriptscriptstyle\nabla x
\]
\end{document}
答案2
這裡有兩個版本。第一個是您的程式碼,第二個是我的程式碼,沒有\left(
和\right)
以及您的新命令\aligntridown
。
\documentclass[a4paper,12pt]{article}
\usepackage{amsmath,amssymb}
\usepackage{esvect}
\newcommand{\aligntridown}{\raise.4ex\hbox{$\bigtriangledown$}}
\begin{document}
\verb|without \raise and \hbox command|
\[\left (w_E \right)_{0}=-\frac{1}{\rho_0 f}\left ( \bigtriangledown \times \vv{\tau}^{s} \right)_{z}\]
\verb|Using \raise and \hbox command to align \bigtriangledown|
\[(w_E)_{0}=-\frac{1}{\rho_0 f}(\aligntridown\times \vv{\tau}^{s})_{z}\]
\end{document}