Search found 6 matches

by holzensp
Fri Dec 04, 2009 5:29 pm
Forum: Math & Science
Topic: align with annotations
Replies: 9
Views: 14461

Re: align with annotations

That requires manual tweaking of the horizontal spacing. Of course, for the example's sake, I just wrote down one constraint, but any real LP would have about a dozen. The domain constraints should be aligned to the right (i.e. all an equal distance to the equation numbers).

I'm thinking there must ...
by holzensp
Fri Dec 04, 2009 12:36 pm
Forum: Math & Science
Topic: Format source code in latex
Replies: 5
Views: 4811

Format source code in latex

Tonguim said he was using beamer. I'm guessing the problem is not in the lstlisting environment, but rather how beamer deals with verbatim-type environments. This is why mas' code probably doesn't compare.

Tonguim, did you remember to make the slide fragile (as Joseph did)?


\begin{frame}[fragile ...
by holzensp
Fri Dec 04, 2009 11:28 am
Forum: Math & Science
Topic: align with annotations
Replies: 9
Views: 14461

Re: align with annotations

I've put the alternatives in a more extensive example. The attachment contains the code in a listings environment.
by holzensp
Fri Dec 04, 2009 10:49 am
Forum: Math & Science
Topic: align with annotations
Replies: 9
Views: 14461

Re: align with annotations

Well, \ref{everything} now results in "\forall i\quad(2)" instead of just "2"
by holzensp
Fri Dec 04, 2009 2:50 am
Forum: Math & Science
Topic: align with annotations
Replies: 9
Views: 14461

Re: align with annotations

I want it to look exactly like what it looks like when I run the example code, but with correct references. If you run the code above, you get the attachment.
by holzensp
Thu Dec 03, 2009 3:15 pm
Forum: Math & Science
Topic: align with annotations
Replies: 9
Views: 14461

align with annotations

I have this problem as well and, for me, the && is no solution. In typesetting Linear Programs (LPs), I want my domain constraints to be aligned to the far right (i.e. juxtaposed to the equation number). This makes the LP look right, but messes up the references:

\begin{align}
\text{minimize}\quad ...