LaTeX Concatenation Symbol
When you can’t find it or it doesn’t exist, then build it yourself! So it went with the concatenation symbol in latex that I was looking for. I’m really curious why it is not in the standard symbol set in for example WinEdt where you can find a huge collection of beautiful mathematical symbols.
Anyway, with this command
\newcommand{\concat}{\ensuremath{+\!\!\!\!+\,}}
we can define our own concatenation symbol, which is actually just two pluses overlapping each other. As the command is defined, we can just use it by doing
$a \concat b$
which results in a concatenation of a and b as displayed in the image below.
![]()
It is important to note that for the effect to happen you need to put the concatenation in math mode. Otherwise, you’ll get the pluses too tight to each other.
The total LaTeX document would look something like this:
\newcommand{\concat}{\ensuremath{+\!\!\!\!+\,}}
\begin{document}
$a \concat b$
\end{document}
Related posts:
- LaTeX MSC package error
- “LaTeX source files more than 5 years old!”
- Bosnian alphabet characters in LaTeX