Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement the 'cp-tools genhtml' command #13

Open
4 tasks
edsomjr opened this issue Dec 14, 2018 · 3 comments
Open
4 tasks

Implement the 'cp-tools genhtml' command #13

edsomjr opened this issue Dec 14, 2018 · 3 comments

Comments

@edsomjr
Copy link
Owner

edsomjr commented Dec 14, 2018

Implement the cp-tools genhtml command

Description:

Currently, cp-tools has the commands genpdf and gentex, where the files are compiled for PDF and LaTEX respectively.

It is desirable that the genhtml command compiles the files into HTML files, so that the problem can be viewed in a browser

This CLI command should work in the same way as genpdf and gentex commands.

The parameters for this command are:

  • -h / --help to print to the terminal the parameters supported by the command
  • -b / --label to define the problem labels. If omitted, the default label is A
  • -l / --list to list all document classes (templates) available for use
  • -c / --class to define the class (template) of the document that will be used in the compilation. If omitted, the default template will be plain
  • -g / --lang to define the language of the document. If omitted, the default language will be pt_BR
  • -o / --output to define the name of the output file that will be generated. If omitted, the output file will be problem.html
  • -t / --tutorial to generate the problem solution file (in html, of course)
  • --no_autor to omit the problem author in the output file
  • --no_contest to omit the problem contest in the output file

Acceptance criteria:

  • It must document the implemented parameters
  • The files must be standalone

Tasks:

  • Implement a LaTeX to HTML converter or use a external command to make this conversion
  • Use MathJax to display mathematical formulas in HTML
@durvalcarvalho

This comment has been minimized.

@durvalcarvalho

This comment has been minimized.

@edsomjr edsomjr changed the title Implementar o comando genhtml Implement the cp-tools genhtml command Oct 23, 2020
@edsomjr edsomjr changed the title Implement the cp-tools genhtml command Implement the cp-tools genhtml command Oct 23, 2020
@edsomjr edsomjr changed the title Implement the cp-tools genhtml command Implement the 'cp-tools genhtml' command Oct 23, 2020
@edsomjr

This comment has been minimized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants