# Tag Info

1

There is no need for \STATE when you're using \FOR. The latter construction sets a \STATE by default: \documentclass{article} \usepackage{algorithm,algorithmic,amsmath} \begin{document} \begin{algorithm} \begin{algorithmic}[1] \FOR{$d$} \FOR{$k \in \{1,\dots,K\}$} \STATE Generate \$\beta_k = (\beta_{k_1},\dots,\beta_{k,V})^T \sim ...

1

This is a modification of @KonradRudolph's answer, but with a minimal working example along with a list of the necessarily installed packages that did not come with the basic LaTeX build. In addition I include a brief discussion of the TeX distribution's path, how to find it, and how to add a package to it in case you don't already know how. Hopefully this ...

2

You can do any one of the following: Place the algorithms each in its own minipage environment: \begin{minipage}{.5\textwidth} \begin{algorithm}[H]% Left algorithm ... \end{algorithm} \end{minipage}% \begin{minipage}{.5\textwidth} \begin{algorithm}[H]% Right algorithm ... \end{algorithm} \end{minipage}% Place the algorithms inside the ...

1

Below I've used two minipages, one for each algorithm, followed by two more minipages, one for each algorithm caption. The double-usage is required to achieve the appropriate alignment. \documentclass{article} \usepackage{amsmath} \usepackage[noline]{algorithm2e} \begin{document} \begin{figure} \begin{minipage}{0.65\linewidth} \begin{algorithm}[H] ...

3

Use [algorithm] in all your \newthorem so they use the algorithm counter instead of thm. Beware though, if you use a floating environment and a non-floating environment with the same counter the algorithm may float past the theorem so come in the wrong order.

1

The \column command doesn't update the value of \columnwidth that algorithm relies upon for setting its width (and the length of the rules). Fix: add \setlength{\columnwidth}{\linewidth} at the beginning of an algorithm environment. This is easily done with etoolbox and \AtBeginEnvironment. \documentclass[a0paper, landscape]{tikzposter} ...

0

I think it's a bad idea to remove \textbf in that way, but it's an even worse idea to make all the environment boldface. The algorithm will already stick out by itself, and the boldface keywords help the reader in finding the key places. However, if you really want to follow this path, just add \bfseries\boldmath to your environment. ...

Top 50 recent answers are included