I love $\LaTeX$. The typesetting in $\LaTeX$ is so beautiful that that no other typesetting system can compete with. Unfortunately, I cannot write $\LaTeX$ for blog post. I have to use kramdown or other wiki/markup languages, because $\LaTeX$ doesn’t perform well in HTML output. However, I missed some features in $\LaTeX$. One of those is Algorithm and Pseudocode packages. So, I discovered some tricks to form algorithm-like typesettings.
- Use
\begin{align}
to align the lines. - Use
\mbox{text...}
to put descriptions in. - Use
\quad
and\qquad
to make indentions.
Here is the example input:
1 2 3 4 5 6 7 8 9 10 11 |
|
and Voilà!