\documentclass[a4paper, 12pt]{article}
\usepackage{amsfonts}
\begin{document}
$\varphi_\square$
\end{document}
输出看起来不正确。正方形太大,看起来根本不像下标。有没有办法让正方形变小和/或变低?
答案1
\documentclass[a4paper, 12pt]{article}
\usepackage{amsfonts}
\showoutput
\begin{document}
$\varphi_{\square}$
$\varphi_{\scriptscriptstyle\square}$
\end{document}
其他字体有更多选择
\documentclass[a4paper, 12pt]{article}
\usepackage{stix2}
\begin{document}
$\varphi_{\mdlgwhtsquare}$
$\varphi_{\smwhtsquare}$
$\varphi_{\mdwhtsquare}$
$\varphi_{\lgwhtsquare}$
$\varphi_{\vysmwhtsquare}$
\end{document}
答案2
字号太大。您可以通过添加空上标来降低字号\square
。amssymb
或者您可以从 借用较小的正方形mathabx
。
\documentclass[a4paper,12pt]{article}
\usepackage{amssymb}
%%% borrow \square from mathabx, but calling it \smallsquare
\DeclareFontFamily{U}{mathb}{}
\DeclareFontShape{U}{mathb}{m}{n}{
<-5.5> mathb5
<5.5-6.5> mathb6
<6.5-7.5> mathb7
<7.5-8.5> mathb8
<8.5-8.5> mathb9
<9.5-11> mathb10
<11-> mathb12
}{}
\DeclareSymbolFont{mathb}{U}{mathb}{m}{n}
\DeclareFontSubstitution{U}{mathb}{m}{n}
\DeclareMathSymbol{\smallsquare}{\mathord}{mathb}{"05}
%%%
\begin{document}
$\varphi_{\square}\square$
$\varphi^{}_{\square}\square$
$\varphi_{\smallsquare}\smallsquare$
$\varphi^{}_{\smallsquare}\smallsquare$
\end{document}