3

I'm looking for a a set of stylized punctuation marks for use in mathematical formulas. Package stix has a symbol \typecolon that looks like this <code>stix</code>'s <code>\typecolon</code> This is just the kind of thing I am looking for, but is there a matching set of punctuation marks? I'm especially interested in a matching comma.

EDIT: Just to make it absolutely clear: this is a colon, this is a semicolon, and this is a comma. I'm especially interested in a comma that has the same look as the stix colon shown above. Alternatively, I'll be satisfied to find a comma and a colon (as two separate symbols, specifically not a semicolon) that have a different look, as long as their looks match each other, and as long as they stand out and don't look "normal".

3

Maybe you like the comma (and other punctuation marks) from the blackboard bold font:

\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}

enter image description here

  • My sincere compliments. Bravissimo. – Sebastiano Jul 16 at 20:12
1

In addition to the other answer, you can also set up the characters, such that when you type ,;. in math mode, the stylized versions of the glyphs appear in the output.

\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}

enter image description here

Of course you can also map the bbold glyphs to commands.

\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}

enter image description here

  • Thanks. This could be very convenient in some circumstance. However, in my particular case, the reason why I need the stylized versions is precisely because I need to distinguish them from their ordinary counterparts which are used in the same formula. – Evan Aad Jul 20 at 5:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.