正如标题所示,我该如何绘制一条$\partial$
带有对角线的图形?
答案1
答案2
变体\centernot
(斜线需要稍微升高一点):
\documentclass{article}
\newcommand{\npartial}{{%
\mathpalette\raisenot\partial
}}
\makeatletter
\newcommand{\raisenot}[2]{%
\raise.4\fontdimen22
\ifx#1\displaystyle
\textfont2
\else
\ifx#1\textstyle
\textfont2
\else
\ifx#1\scriptstyle
\scriptfont2
\else
\scriptscriptfont2
\fi
\fi
\fi
\rlap{%
\settowidth\dimen@{$\m@th#1{#2}$}%
\kern.5\dimen@
\settowidth\dimen@{$\m@th#1=$}%
\kern-.5\dimen@
$\m@th#1\not$%
}%
{#2}%
}
\makeatother
\begin{document}
\[
\npartial A_{\npartial_{\npartial}}
\]
\end{document}
答案3
答案4
有时这种斜线符号(在物理学中)被称为“费曼斜线”。我经常使用它。为此,我使用包centernot
,并定义一个命令\fy
\documentclass{article}
\usepackage{centernot}
\newcommand\fy[1][\partial]{\centernot{#1}}
\begin{document}
\begin{equation}
\fy \fy[A] \fy[p]
\end{equation}
\end{document}
然而,在阅读了其他答案之后,我尝试了这个包slashed
,
\documentclass{article}
\usepackage{slashed}
\newcommand\fy[1][\partial]{\slashed{#1}}
\begin{document}
\begin{equation}
\fy \fy[A] \fy[p]
\end{equation}
\end{document}
现在你有另一个想法!