答案1
\perp
的版本MnSymbol 封装比“标准”版本更窄,但也略短。为了在不改变很多其他内容的情况下加载它,我们可以借用@Leo Liu对从 MnSymbol 导入单个符号.然后我们得到以下内容:
\documentclass{article}
\DeclareFontFamily{U} {MnSymbolA}{}
\DeclareFontShape{U}{MnSymbolA}{m}{n}{
<-6> MnSymbolA5
<6-7> MnSymbolA6
<7-8> MnSymbolA7
<8-9> MnSymbolA8
<9-10> MnSymbolA9
<10-12> MnSymbolA10
<12-> MnSymbolA12}{}
\DeclareFontShape{U}{MnSymbolA}{b}{n}{
<-6> MnSymbolA-Bold5
<6-7> MnSymbolA-Bold6
<7-8> MnSymbolA-Bold7
<8-9> MnSymbolA-Bold8
<9-10> MnSymbolA-Bold9
<10-12> MnSymbolA-Bold10
<12-> MnSymbolA-Bold12}{}
\DeclareSymbolFont{MnSyA} {U} {MnSymbolA}{m}{n}
\DeclareMathSymbol{\mnperp}{\mathrel}{MnSyA}{217}
\begin{document}
\[
\begin{array}{ll}
\perp & \mnperp \\ \mnperp &
\end{array}
\quad
A^\perp \quad A^\mnperp
\]
\end{document}
答案2
调整以适应:
\documentclass{article}
\usepackage{amsmath,l3draw,xparse}
\ExplSyntaxOn
\NewDocumentCommand{\sperp}{}
{% short perp
{\mathord{\text{\daddy_sperp:}}}
}
\cs_new_protected:Nn \daddy_sperp:
{
\use:c { check@mathfonts }
$\mspace{1mu}$
\draw_begin:
\draw_cap_round: % good for CM fonts
\draw_linewidth:n { \dim_to_fp:n { \fontdimen8\textfont2 }/18 } % thickness of the fraction line
\draw_path_moveto:n { 0em, 0ex }
\draw_path_lineto:n { 0.3em, 0ex }
\draw_path_use:n { stroke }
\draw_path_moveto:n { 0.15em, 0ex }
\draw_path_lineto:n { 0.15em, 1.3ex }
\draw_path_use:n { stroke }
\draw_end:
$\mspace{1mu}$
}
\ExplSyntaxOff
\begin{document}
$A^{\sperp}_n$ $\perp\sperp\scriptstyle\sperp\scriptscriptstyle\sperp$
\end{document}
答案3
适用于所有数学样式...可以通过更改垂直/水平轻松选择比例。拉伸参数显示为.6
和.5
。线条粗细将始终很好,因为这是由适当数学样式的-
和叠加组成的。\vert
\documentclass{article}
\usepackage{stackengine,scalerel}
\newcommand\newperp{\mathbin{\ThisStyle{\setbox0=\hbox{%
\abovebaseline[-\dimexpr.5\LMex+.2ex]{%
\ensurestackMath{\stackengine{-\dimexpr.6\LMex+.2ex}%
{\SavedStyle\hstretch{.6}{-}}% ADJUSTABLE V SCALE
{\SavedStyle\vstretch{.5}{\vert}}% ADJUSTABLE H SCALE
{O}{c}{F}{F}{S}}}}\dp0=0pt\box0}}}
\begin{document}
$A\newperp B$
$\scriptstyle A\newperp B$
$\scriptscriptstyle A\newperp B$
$A^{\newperp}_n$
\end{document}
将拉伸更改为 .7/.6 将结果更改为