# Tag Info

2

I don't think it's much extra work to include the "input", "output" and "algorithm" groups all in one (LaTeX) document. Note the use of a two-column tabularx environment to hold the "input" and "output" groups. If you don't want a caption for the "algorithm" environment, don't provide a \caption statement. \documentclass{article} ...

1

A tabular is probably the easiest solution, since it is only as wide as it needs to be. I set the default spacing between columns to zero, so you have to add spacing using @{...} where you want it. \documentclass[border=1pt]{standalone} \usepackage{amsmath} \begin{document} \tabcolsep=0pt \begin{tabular}{l@{ }l} \textsc{Input:} & $n$ terminal nodes: ...

0

Finally my algorithm in good shape \documentclass{clv2} %% Remove the useless algorithm environment \let\algorithm\relax \let\endalgorithm\relax %% Remove the useless numdef environment \let\numdef\relax \usepackage[lined,ruled,vlined,resetcount]{algorithm2e} %% the algorithmic package does \newcommand{\TRUE}{...} ...

2

You can use algorithm2e and algorithmic with the clv2 class, provided you smooth out some issues: the class defines an algorithm environment (a very primitive one) the class defines \TRUE the class defines a numdef environment, that makes it incompatible with etoolbox Here's a way to use algorithm2e and algorithmic with the class. \documentclass{clv2} ...

1

The uarial font has no small caps, as far as I know. You can use tgheros that has and is based on Helvetica, very similar to Arial. \documentclass{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[ngerman]{babel} \usepackage{amsmath} \usepackage[scale]{tgheros} %set arial as default font for everything ...

2

The clv2 class already defines an algorithm environment as a regular list similar to that of description (see section 7.1 Other List Types in the COLI manual or p 3-4 of the COLI template): \newenvironment{algorithm}{\par\list{}{\leftmargin\z@\labelwidth\z@\labelsep\z@\itemsep6pt\topsep12pt plus2pt ...

4

Here is a sample code for your algorithm using the package algorithm2e as suggested by your tags: \documentclass[12pt]{article} \usepackage[plainruled]{algorithm2e} \usepackage{amsmath} \begin{document} \begin{algorithm}[ht!] \KwIn{% $A, B \text{ and } C$ }% {\bf Initialization:} $\alpha, \beta \text{ and } u$ ; ...

Top 50 recent answers are included