答案1
也许你喜欢黑板粗体字体的逗号(和其他标点符号):
\documentclass{article}
\usepackage{bbold}
\usepackage{amsmath}
\newcommand{\typecomma}{\text{\textbb{,}}}
\newcommand{\typesemi}{\text{\textbb{;}}}
\newcommand{\typeperiod}{\text{\textbb{.}}}
\begin{document}
\begin{equation}
1=1 \typecomma
\end{equation}
\begin{equation}
2=2 \typesemi
\end{equation}
\begin{equation}
3=3 \typeperiod
\end{equation}
\end{document}
答案2
除了其他答案之外,您还可以设置字符,这样当您,;.
在数学模式下输入时,字形的风格化版本就会出现在输出中。
\documentclass{article}
\usepackage{amsmath}
\usepackage{bbold}
% Macros to access the old glyphs
\mathchardef\normalcomma=\mathcode`,
\mathchardef\normalsemicolon=\mathcode`;
\mathchardef\normalperiod=\mathcode`.
% Map bbold glyphs to characters
\DeclareSymbolFont{bboldletters}{U}{bbold}{m}{n}
\DeclareMathSymbol{,}{\mathpunct}{bboldletters}{"2C}
\DeclareMathSymbol{;}{\mathpunct}{bboldletters}{"3B}
\DeclareMathSymbol{.}{\mathord }{bboldletters}{"2E}
\begin{document}
\begin{align*}
\normalcomma &\to , \\
\normalsemicolon &\to ; \\
\normalperiod &\to .
\end{align*}
\end{document}
当然您也可以将bbold
字形映射到命令。
\documentclass{article}
\usepackage{amsmath}
\usepackage{bbold}
% Map bbold glyphs to commands
\DeclareSymbolFont{bboldletters}{U}{bbold}{m}{n}
\DeclareMathSymbol{\bboldcomma }{\mathpunct}{bboldletters}{"2C}
\DeclareMathSymbol{\bboldsemicolon}{\mathpunct}{bboldletters}{"3B}
\DeclareMathSymbol{\bboldperiod }{\mathord }{bboldletters}{"2E}
\begin{document}
\begin{align*}
\bboldcomma &\to , \\
\bboldsemicolon &\to ; \\
\bboldperiod &\to .
\end{align*}
\end{document}