对于纸牌花色符号,我想使用 中的符号MnSymbol
。我如何定义它们的默认大小高一级?(不确定我是否正确提出问题:基本上,如果文本大小正常,我希望它们大一点,等等。)
答案1
我不会MnSymbol
只为牌组符号而加载,因为这也会改变全部数学符号。
\documentclass{article}
\DeclareFontFamily{U}{MnSymbolCards}{}
\DeclareFontShape{U}{MnSymbolCards}{m}{n}{
<-6> s*[1.2] MnSymbolC5
<6-7> s*[1.2] MnSymbolC6
<7-8> s*[1.2] MnSymbolC7
<8-9> s*[1.2] MnSymbolC8
<9-10> s*[1.2] MnSymbolC9
<10-12> s*[1.2] MnSymbolC10
<12-> s*[1.2] MnSymbolC12}{}
\newcommand{\mndiamond}{{\usefont{U}{MnSymbolCards}{m}{n}\symbol{"A2}}}
\newcommand{\mnheart}{{\usefont{U}{MnSymbolCards}{m}{n}\symbol{"A3}}}
\newcommand{\mnspade}{{\usefont{U}{MnSymbolCards}{m}{n}\symbol{"A4}}}
\newcommand{\mnclub}{{\usefont{U}{MnSymbolCards}{m}{n}\symbol{"A5}}}
\begin{document}
x\mndiamond\mnheart\mnspade\mnclub y
\end{document}
下面是一个比较,只是为了表明符号确实更大:
\documentclass{article}
\usepackage{MnSymbol} % just for comparison
\DeclareFontFamily{U}{MnSymbolCards}{}
\DeclareFontShape{U}{MnSymbolCards}{m}{n}{
<-6> s*[1.2] MnSymbolC5
<6-7> s*[1.2] MnSymbolC6
<7-8> s*[1.2] MnSymbolC7
<8-9> s*[1.2] MnSymbolC8
<9-10> s*[1.2] MnSymbolC9
<10-12> s*[1.2] MnSymbolC10
<12-> s*[1.2] MnSymbolC12}{}
\newcommand{\mndiamond}{{\usefont{U}{MnSymbolCards}{m}{n}\symbol{"A2}}}
\newcommand{\mnheart}{{\usefont{U}{MnSymbolCards}{m}{n}\symbol{"A3}}}
\newcommand{\mnspade}{{\usefont{U}{MnSymbolCards}{m}{n}\symbol{"A4}}}
\newcommand{\mnclub}{{\usefont{U}{MnSymbolCards}{m}{n}\symbol{"A5}}}
\begin{document}
x$\diamondsuit\heartsuit\spadesuit\clubsuit$y
x\mndiamond\mnheart\mnspade\mnclub y
\end{document}
这是在数学模式下使用该符号的版本:
\documentclass{article}
\usepackage{amsmath}
\DeclareFontFamily{U}{MnSymbolCards}{}
\DeclareFontShape{U}{MnSymbolCards}{m}{n}{
<-6> s*[1.2] MnSymbolC5
<6-7> s*[1.2] MnSymbolC6
<7-8> s*[1.2] MnSymbolC7
<8-9> s*[1.2] MnSymbolC8
<9-10> s*[1.2] MnSymbolC9
<10-12> s*[1.2] MnSymbolC10
<12-> s*[1.2] MnSymbolC12}{}
\newcommand{\mndiamond}{\text{\usefont{U}{MnSymbolCards}{m}{n}\symbol{"A2}}}
\newcommand{\mnheart}{\text{\usefont{U}{MnSymbolCards}{m}{n}\symbol{"A3}}}
\newcommand{\mnspade}{\text{\usefont{U}{MnSymbolCards}{m}{n}\symbol{"A4}}}
\newcommand{\mnclub}{\text{\usefont{U}{MnSymbolCards}{m}{n}\symbol{"A5}}}
\begin{document}
$\mndiamond+\mnheart=\mnspade+\mnclub$
$A_{\mndiamond}$
\end{document}
答案2
这里我保存了原图\spadesuit
,\svspadesuit
然后将其重新定义为 20% 的放大图。我以几种文本大小展示了两者以供比较。
虽然原始的\svspadesuit
必须在数学模式下使用,但重新定义的\spadesuit
可以在数学或文本模式下使用。它不会像目前重新定义的一样捕获不同的数学样式,如下标等。如果这是一项要求,也许 OP 会让我知道。
\documentclass{article}
\usepackage{MnSymbol,graphicx}
\let\svspadesuit\spadesuit
\def\spadesuit{\scalebox{1.2}{$\svspadesuit$}}
\begin{document}
$\svspadesuit\spadesuit$
\Large$\svspadesuit\spadesuit$
\Huge$\svspadesuit\spadesuit$
\end{document}