JuliaOpt/JuMP.jl — pull request #187 by IainNZ (2014-05-19 19:05:52+00:00)
Title: For your consideration: Latex-y

```julia
using JuMP
m=Model()
@defVar(m, x[1:5])
@addNLConstraint(m, sum{x[i],i=1:5} <= 5)
JuMP.print_nl(m.nlpdata.nlconstr[1])

@defVar(m, y[1:5,4:8])
@addNLConstraint(m, sum{y[i,j],i=1:5,j=5:7} <= 5)
JuMP.print_nl(m.nlpdata.nlconstr[2])

@addNLConstraint(m, sum{x[i]+y[i,j],i=1:5,j=5:7} <= 5)
JuMP.print_nl(m.nlpdata.nlconstr[3])
```

```
\sum_{i=1}^{5} x_{i} - 5
\sum_{i=1}^{5} \sum_{j=5}^{7} y_{i,j} - 5
\sum_{i=1}^{5} \sum_{j=5}^{7} (x_{i} + y_{i,j}) - 5
```