JuliaSmoothOptimizers / SolverBenchmark.jl

Benchmark tools for solvers
Other
23 stars 10 forks source link

Unicode characters #54

Open amontoison opened 4 years ago

amontoison commented 4 years ago

Unicode characters are not converted by latex_table function. It will be a nice feature to add automatic conversion for them. I wanted to use and for the status column.

dpo commented 4 years ago

There's no automatic translation but isn't it possible to use your own format as in the documentation? Something like (untested):

function status_fmt(x)
  if x == '✔'
    @sprintf("\check")
  else if x == '✗'
    @sprintf("\\(\times\\)")
  else
    @sprintf(x)
  end
end
fmt_override = Dict(:status => status_fmt)
amontoison commented 4 years ago

I can use my own format but I think It should not be difficult to do automatic translation. I will try to add it.