1
0
Fork 0
mirror of https://gitlab.rlp.net/mobitar/ReCo.jl.git synced 2024-12-29 17:53:31 +00:00

Compact latex tables

This commit is contained in:
Mo8it 2022-01-30 20:46:21 +01:00
parent ee815fdae0
commit b55ef91d2d
3 changed files with 5 additions and 4 deletions

View file

@ -107,7 +107,7 @@ function gen_action_space_labels(action_label::String, action_space::AbstractRan
labels = Vector{LaTeXStrings.LaTeXString}(undef, length(action_space)) labels = Vector{LaTeXStrings.LaTeXString}(undef, length(action_space))
for (action_ind, action) in enumerate(action_space) for (action_ind, action) in enumerate(action_space)
labels[action_ind] = LaTeXStrings.latexstring( labels[action_ind] = LaTeXStrings.latexstring(
action_label * " = $(round(action; digits=2))" "\$" * action_label * "\$=$(round(action; digits=2))"
) )
end end

View file

@ -166,8 +166,9 @@ function gen_state_space_labels(state_label::String, state_space::Vector{Interva
labels = Vector{LaTeXStrings.LaTeXString}(undef, length(state_space)) labels = Vector{LaTeXStrings.LaTeXString}(undef, length(state_space))
for (state_ind, state) in enumerate(state_space) for (state_ind, state) in enumerate(state_space)
labels[state_ind] = LaTeXStrings.latexstring( labels[state_ind] = LaTeXStrings.latexstring(
"\$" *
state_label * state_label *
" = $(round(state.first; digits=2)):$(round(state.last, digits=2))", "\$=$(round(state.first; digits=2)):$(round(state.last, digits=2))",
) )
end end