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".

7
  • 4
    That is Z notation, ctan has some packages for that see for example anorien.csc.warwick.ac.uk/mirrors/CTAN/macros/latex/contrib/… you may be able to borrow more symbols even if you are not using Z Commented Jul 16, 2019 at 6:47
  • I agree totally with David Carlisle: [0000 2982] Z NOTATION TYPE COLON from this notes pag: 28: open-std.org/jtc1/sc22/open/n3187.pdf and you can see also this old question tex.stackexchange.com/questions/309432/…
    – Sebastiano
    Commented Jul 16, 2019 at 6:53
  • @DavidCarlisle: It doesn't look like the Z notation have a stylized comma, which is what I am interested in particular.
    – Evan Aad
    Commented Jul 16, 2019 at 6:56
  • @Sebastiano: It doesn't look like the Z notation have a stylized comma, which is what I am interested in particular.
    – Evan Aad
    Commented Jul 16, 2019 at 6:56
  • @EvanAad Excuse me: do you want find a circle up and a , down? Sorry for my bad English.
    – Sebastiano
    Commented Jul 16, 2019 at 6:59

2 Answers 2

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

1
  • My sincere compliments. Bravissimo.
    – Sebastiano
    Commented Jul 16, 2019 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

1
  • 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
    Commented Jul 20, 2019 at 5:46

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .