Giter VIP home page Giter VIP logo

ptyx-mcq's People

Contributors

wxgeo avatar

Watchers

 avatar  avatar

ptyx-mcq's Issues

Rename `mcq update` to `mcq include`.

Create several subcommands:
mcq include update -> add all found .ex files.
mcq include clean -> clean all imports
mcq include resolve -> import code from included files.

Add to function to compare LaTeX expressions and test if there will be rendered identically

The function would be used to avoid proposing the (visually) same answer twice.

The heuristic could be the following : every answer will be converted to a canonic form (which may not be valid LaTeX code), used for comparison.
This function will of course give false negatives, but it will still be better than cuurent basic LaTeX code comparison.

The canonic form would be generated by applying the following rules :

  • seems safe : \, \; \. \quad \qquad -> space
  • seems safe : several spaces or tabs -> one space : s = re.sub("\s+", " ", s)
  • not so safe : recursively : {} -> empty string. This one may lead to false positives though : \command{}text -> \commandtext.
    Should we accept the risk, or take more precautions (test if there is a command r"\\\w+ before {})?

Note that false positives or negatives are not very damaging as long as the error message is very explicit and provide tips to fix it.

Add a title to each exercise

Default title would be the filename of the exercise.

In the .json.config file, a field should be added to get the exercise title for each question: {q: "title"}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.