multitime icon indicating copy to clipboard operation
multitime copied to clipboard

Add a command line switch which produces LaTeX output

Open snim2 opened this issue 10 years ago • 4 comments

snim2 avatar Mar 19 '15 23:03 snim2

I'm not sure about this. I think there are a zillion different output formats, and it's difficult to know what to bake in that will stand the test of time.

However, I do think it might be sensible to think about adding an output option which can be more easily parsed by other programs. Then people can write their own multitime2latex (or multitime2html or multitime2latexbooktabs or...) programs with ease. We could perhaps even include examples in the distribution.

ltratt avatar Apr 05 '15 15:04 ltratt

This sounds really neat. What do you propose for a machine readable format? CSV seems like the easiest format that handles columns and rows, but that excludes a multitime2csv extension :)

snim2 avatar Apr 06 '15 10:04 snim2

Let's say (for argument's sake), the "output" option is "-t" then I think we could make its argument of the form "type:filename" to give us some future-proofness. So one might write "-t csv:/tmp/data".

ltratt avatar Apr 06 '15 19:04 ltratt

DECISION:

multitime -n 100 -c 99 -t csv:/tmp/out.data ./myprog | extras/m2tex.py

multitime -n 100 -c 99 -t csv:/tmp/out.data ./myprog | extras/m2html.py

snim2 avatar Jun 05 '15 13:06 snim2