Search found 3 matches

by cconvey
Sun Jul 29, 2012 3:27 pm
Forum: Text Formatting
Topic: Two aligned Columns within Algorithm
Replies: 2
Views: 3735

Two aligned Columns within Algorithm

I've worked out a solution that I'm reasonably happy with:

Suppose you want the right-hand column of your algorithm to be 2 inches wide. Then you defined the following:


\newlength{\algrhswidth}
\setlength{\algrhswidth}{2in}
\newcommand{\algrhs}[1]{\hfill \parbox[t]{\algrhswidth}{#1}}


And then ...
by cconvey
Fri Jul 27, 2012 4:09 am
Forum: Text Formatting
Topic: Two aligned Columns within Algorithm
Replies: 2
Views: 3735

Re: Two aligned Columns within Algorithm

Clarification: A "clean" solution is nice to have, but one involving messy LaTeX is better than nothing. Worst-case scenario, I can use LaTeX macros or even a LaTeX code generator to cover the mess.
by cconvey
Tue Jul 24, 2012 1:26 am
Forum: Text Formatting
Topic: Two aligned Columns within Algorithm
Replies: 2
Views: 3735

Two aligned Columns within Algorithm

Any advice for how to pull this off?

I'm writing pseudo code within an "algorithmic" environment. I'd like to have two columns within the algorithm. The left column should the standard constructs such as \STATE , \IF , etc. The right column should have explanatory text.

So I'm looking for ...