This is what i want to write:
And this is my attempt:
:X^{\mu}(z,\bar{z}) X^{\nu_{n}}(z^{\prime},\bar{z}^{\prime}):
Actually I don't know the command I must write for
This is what i want to write:
And this is my attempt:
:X^{\mu}(z,\bar{z}) X^{\nu_{n}}(z^{\prime},\bar{z}^{\prime}):
Actually I don't know the command I must write for
The fdsymbol font provides a suitable \smallcirc symbol, but it needs to be scaled.
\documentclass{article}
\usepackage{amsmath}
\DeclareFontFamily{U}{FdSymbolA}{}
\DeclareFontShape{U}{FdSymbolA}{m}{n}{
<-> s*[.28] FdSymbolA-Regular
}{}
\DeclareSymbolFont{fdsymbol}{U}{FdSymbolA}{m}{n}
\DeclareMathSymbol{\smallcirc}{\mathord}{fdsymbol}{"60}
\makeatletter
\newcommand{\hollowcolon}{\mathpalette\hollow@colon\relax}
\newcommand{\hollow@colon}[2]{%
\mspace{1mu}%
\vbox{%
\hbox{$\m@th#1\smallcirc$}
\nointerlineskip
\kern.45ex
\hbox{$\m@th#1\smallcirc$}
\kern-.06ex
}%
\mspace{1mu}%
}
\makeatother
\newcommand{\hcolondel}[1]{%
\mathopen{\hollowcolon}#1\mathclose{\hollowcolon}%
}
\newcommand{\colondel}[1]{%
\mathopen{:}#1\mathclose{:}%
}
\begin{document}
\begin{gather*}
\hcolondel{X^{\mu}(z,\bar{z}) X^{\nu_{n}}(z^{\prime},\bar{z}^{\prime})}_{a+\hcolondel{Z}}
\\
\colondel{X^{\mu}(z,\bar{z}) X^{\nu_{n}}(z^{\prime},\bar{z}^{\prime})}_{a+\colondel{Z}}
\end{gather*}
\end{document}
The symbol “⦂” is \typecolon which you can find the in stix package.
\usepackage{stix}
...
$$ X^\mu (z, \bar z) X^\nu (z', \bar z') = \typecolon X^\mu (z, \bar z) X^\nu (z', \bar z') \typecolon $$
However, stix will change the math font.
We could extract just this symbol using the trick from How to use only selected math symbols of the STIX fonts?:
\DeclareFontEncoding{LS1}{}{}
\DeclareFontSubstitution{LS1}{stix}{m}{n}
\DeclareSymbolFont{symbols2}{LS1}{stixfrak}{m}{n}
\DeclareMathSymbol{\typecolon}{\mathbin}{symbols2}{"25}
Here I do it with a scaled stack. Works in all math styles.
\documentclass{article}
\usepackage{stackengine,scalerel}
\newcommand\textaltcolon{\ensurestackMath{\stackon[1.5ex]{\circ}{\circ}}}
\newcommand\altcolon{\savestack\Tmp{\raisebox{-.7pt}{$\textaltcolon$}}%
\dp\Tmpcontent=\dimexpr\dp\Tmpcontent-.7pt\relax%
\mathrel{\scalerel*{\Tmp}{:}}}
\begin{document}
\[
X^{\mu}(z,\bar{z}) X^{\nu_{n}}(z^{\prime},\bar{z}^{\prime})\altcolon:
\]
\[
\scriptstyle X^{\mu}(z,\bar{z}) X^{\nu_{n}}(z^{\prime},\bar{z}^{\prime})\altcolon:
\]
\[
\scriptscriptstyle X^{\mu}(z,\bar{z}) X^{\nu_{n}}(z^{\prime},\bar{z}^{\prime})\altcolon:
\]
\[A:B\quad A\altcolon B\]
\[A:\quad A\altcolon \quad :B\quad \altcolon B \]
\[
\altcolon:
\scriptstyle \altcolon:
\scriptscriptstyle \altcolon:
\]
\end{document}
Zoom:
\usepackage{stackengine,scalerel}?
– Steven B. Segletes
May 13 '16 at 13:18
pdflatex as well as xelatex. Is it only the colons that do not render, or does the whole code not compile?
– Steven B. Segletes
May 13 '16 at 13:36
\usepackage for my latex version. but your code inspired me to write new command and it works, \newcommand{\altcolon}{\substack{\circ \\ \circ}}
– Farhad Razi
May 13 '16 at 13:50
https://www.ctan.org/pkg/scalerel and https://www.ctan.org/pkg/stackengine and download the .sty files to your working directory.
– Steven B. Segletes
May 13 '16 at 13:55
With package pdfrender a stroked font can be simulated.
The following example uses the file from egreg's answer, but
replaces \hollowcolon by a stroked version of the colon without using a different font. Despite its name, \textrender changes the rendering of the current font, it does not change or switch fonts and can also be used inside math.
\documentclass{article}
\usepackage{amsmath}
\usepackage{pdfrender}
\newcommand*{\hollowcolon}{%
\textpdfrender{
TextRenderingMode=Stroke,
LineWidth=.1bp,
}{:}%
}
\newcommand{\hcolondel}[1]{%
\mathopen{\hollowcolon}#1\mathclose{\hollowcolon}%
}
\newcommand{\colondel}[1]{%
\mathopen{:}#1\mathclose{:}%
}
\begin{document}
\begin{gather*}
\hcolondel{X^{\mu}(z,\bar{z})
X^{\nu_{n}}(z^{\prime},\bar{z}^{\prime})}_{a+\hcolondel{Z}}
\\
\colondel{X^{\mu}(z,\bar{z})
X^{\nu_{n}}(z^{\prime},\bar{z}^{\prime})}_{a+\colondel{Z}}
\end{gather*}
\end{document}
⦂ Z NOTIONAL TYPE COLON
Code for undetermined script
Miscellaneous Mathematical Symbols-B Unicode Version 3.2
Unicode U+2982
HTML ⦂ ⦂. Add ;!s after!!
CSS 2982
UTF-8 0xE2 0xA6 0x82 UTF-16 0x2982 UTF-32 0x00002982
^{\prime}instead of'(which unfolds to the same thing)? – hmakholm left over Monica May 13 '16 at 15:15