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:
\documentclass[a4paper]{article}
\newcommand{\concat}{\ensuremath{+\!\!\!\!+\,}}
\begin{document}
$a \concat b$
\end{document}
November 23rd, 2009
eddsn
While using the MSC (Message Sequence Chart) package (msc.sty) I couldn’t compile my document by using PDF Texify in WinEdt. With the following sample code
\documentclass{article}
\usepackage{msc}
\begin{document}
\begin{msc}{Example}
\declinst{usr}{User}{}
\declinst{m1}{Machine 1}{control}
\declinst{m2}{Machine 2}{drill}
\declinst{m3}{Machine 3}{test}
\mess{startm1}{usr}{m1}
\nextlevel
\mess{startm2}{m1}{m2}
\nextlevel
\mess{continue}{m2}{m3}
\mess{log}{m1}{envleft}
\nextlevel
\mess{output}{m3}{usr}[2]
\nextlevel
\mess{free}{m1}{usr}
\nextlevel
\end{msc}
\end{document}
I get this error
! Undefined control sequence.
..
\declinst
I don’t know why exactly this happens, but the error suggests that it probably calls a command that doesn’t exist. Anyway, a quick fix (in WinEdt – MikTeX) is to do the following:
- LaTeX compile it (Shift+Ctrl+L).
- Then convert the .dvi file to .ps with DVIPS.
- Finally use PS2PDF to get the PDF.
Any other sugestions are welcome.
September 16th, 2009
eddsn
While working on a document in LaTeX I had to insert a specific character which I was not able to find in WinEdt. Wiki was only of temporal help because it showed only the latex code for the character č and not ć which i actually was looking for. After googling a lot more than I initially thought I would need, I found the trick by using \v{c} and puzzled the rest by myself.
Anyway, I thought it would be helpful to post all of the Bosnian special characters in one neat table. So here it is.
You can also download this nice PDF if you need it locally for a quick reference.
Bosanski opis:
Tabela ispod pokazuje sva naša slova i u koloni pored kod za latex. Kod dva
slučaja, kod slova đ i Đ je potrebno instalirati dodatni paket pošto ova slova
nisu standardno podržana (to je barem kod mene trenutno slučaj). U svakom
slučaju ce ovo dati željeni rezultat.
U ovom pdf-u se moze naći ovaj sav sadržaj.
Edit
Made my contribution to the Bosnian wikipedia.
