Skip Menu |

This queue is for tickets about the App-Math-Tutor CPAN distribution.

Report information
The Basics
Id: 98717
Status: open
Priority: 0/
Queue: App-Math-Tutor

People
Owner: Nobody in particular
Requestors: DANAJ [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.004
Fixed in: (no value)



Subject: Examples incorrect
Two examples are given of generating exercises. The first: mtut natural add -n 25 -f nnn -r "[0..999" results in: Unknown option: r while the second: mtut vulfrac mul -n 40 -f nn/nnn -r "59/999 .. 02/002" results in: coercion for "result_format" failed: Invalid result format: 59/999 .. 02/002, pick any of keep, reducable at /home/djacobsen/perl5/perlbrew/perls/perl-5.21.2/lib/site_perl/5.21.2/App/Math/Tutor/Cmd/VulFrac/Cmd/Mul.pm line 53. at /home/djacobsen/perl5/perlbrew/perls/perl-5.21.2/lib/site_perl/5.21.2/MooX/Cmd/Role.pm line 172. If I remove the -r option from the first example, I get: 1) failure because LaTeX::Driver is trying to run xelatex. No idea why. Hack that up so it runs pdflatex. 2) layouts.sty not found. OK, install texlive-latex-extra and it's there. 3) mathtools.sty not found. I stopped here. Perhaps some pointers in the documentation to where to find your preferred versions of lastpage.sty, layouts.sty, mathtools.sty, etc. It's been two decades since I read TUGboat and was involved with CTAN so I can't help here. Some sort of method to wget the packages and point the LaTeX process to them, if not install them, would be helpful.
RT-Send-CC: ROLI [...] cpan.org
On Mon Sep 08 18:05:38 2014, DANAJ wrote: Hi Dana, first: I didn't come back to it much to long, but thank you anyway for pointing this out. Show quoted text
> Two examples are given of generating exercises. The first: > > mtut natural add -n 25 -f nnn -r "[0..999" > > results in: > > Unknown option: r > > while the second: > > mtut vulfrac mul -n 40 -f nn/nnn -r "59/999 .. 02/002" > > results in: > > coercion for "result_format" failed: Invalid result format: 59/999 .. > 02/002, pick any of keep, reducable at > /home/djacobsen/perl5/perlbrew/perls/perl- > 5.21.2/lib/site_perl/5.21.2/App/Math/Tutor/Cmd/VulFrac/Cmd/Mul.pm line > 53. > at /home/djacobsen/perl5/perlbrew/perls/perl- > 5.21.2/lib/site_perl/5.21.2/MooX/Cmd/Role.pm line 172.
Roland Schmitz and Winfried Trümper talked to me regarding the format of the examples at all. Thanks for xdg I was pointed to Types::Tiny which should be technically a much better way to deal with some details of cli value parsing and internal representation. I need to find some more time at a strech to get deeper into that. I try to get some introduction by tobyink and xdg before to increase probability for fixing in not to distant future... Show quoted text
> If I remove the -r option from the first example, I get: > 1) failure because LaTeX::Driver is trying to run xelatex. No idea > why. Hack that up so it runs pdflatex. > 2) layouts.sty not found. OK, install texlive-latex-extra and it's > there. > 3) mathtools.sty not found. I stopped here. > > Perhaps some pointers in the documentation to where to find your > preferred versions of lastpage.sty, layouts.sty, mathtools.sty, etc. > It's been two decades since I read TUGboat and was involved with CTAN > so I can't help here. Some sort of method to wget the packages and > point the LaTeX process to them, if not install them, would be > helpful.
I will never install any sty's for the user. What I recommend is to use the complete teTeX distribution as from http://pkgsrc.se/print/teTeX. On my system the LaTeX::Driver doesn't pass all tests but I didn't find tuits to dig into it ... I would reduce the request to document the sty's included by \usepackage and expand the tests to bail out when not all sty's are available. That could be a topic for QA Hackathon in Berlin - you might want to join to incite me ;) Thanks for taking so much time digging into it. Cheers, Jens