降低主符號

降低主符號

我想在數學符號上使用素數,但現在看起來有點奇怪,例如這樣: 主要的

如果可能的話,我想降低質數。有沒有一個好的方法來做到這一點?

評論:去掉所有真正不相關的東西,程式碼如下:

\documentclass[a4paper, twoside, 10pt]{report}
\usepackage[english]{babel}
\usepackage{mathpazo}
\linespread{1.05}
\usepackage[hidelinks]{hyperref}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{amsthm}
\usepackage{mathtools}
\begin{document}
%stuff
\begin{equation}
\Phi(p\triangleleft g)=\Phi(p_2)\triangleleft'g
\end{equation}
\end{document}

等等。我希望三角形的上緣與質數的中間處於同一水平線上。

答案1

以下實現\myprime可能就是您正在尋找的。

\newcommand\myprime{\mkern-3.5mu\raise0.6ex\hbox{$\scriptstyle\prime$}}

\mkern-3.5mu指令將材料向左移動,同時\raise0.6ex稍微抬起。

在此輸入影像描述

\documentclass{article}
\usepackage{newpxtext,newpxmath} % Palatino clone text and math font
\newcommand\myprime{\mkern-3.5mu\raise0.6ex\hbox{$\scriptstyle\prime$}}

\begin{document}
$\Phi(p_2)\triangleleft\myprime g$ vs.\ $\Phi(p_2)\triangleleft' g$
\end{document}

這是相同的螢幕截圖,但已mathpazo加載而不是newpxtextnewpxmath

在此輸入影像描述


附錄: 創造更多空間降低的撇號,可以插入諸如 之類的指令\mkern5mu。如果你想知道「mu」有多寬: mu1 中有 18 個em。 :-) 因此,以下定義可能適合您:

\newcommand\lowprime{\mkern-3.5mu%
                     \raise0.6ex\hbox{$\scriptstyle\prime$}
                     \mkern5mu}

完整的 MWE:

在此輸入影像描述

\documentclass{article}
\usepackage{mathpazo}
\newcommand\myprime{\mkern-3.5mu%
                    \raise0.6ex\hbox{$\scriptstyle\prime$}}
\newcommand\lowprime{\mkern-3.5mu%
                     \raise0.55ex\hbox{$\scriptstyle\prime$}
                     \mkern5mu}
\begin{document}
\begin{tabular}{ll}
$\Phi(p_2)\triangleleft\myprime g$  & \verb+\myprime+\\
$\Phi(p_2)\triangleleft\lowprime g$ & \verb+\lowprime+\\
$\Phi(p_2)\triangleleft^{\prime}g$  & \verb+^{\prime}+ \\
\end{tabular}
\end{document}

相關內容