
如果可能的話,我想降低質數。有沒有一個好的方法來做到這一點?
評論:去掉所有真正不相關的東西,程式碼如下:
\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
加載而不是newpxtext
和newpxmath
:
附錄: 創造更多空間後降低的撇號,可以插入諸如 之類的指令\mkern5mu
。如果你想知道「mu」有多寬: mu
1 中有 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}