Skip to content

Automagically uploads questions to Lambda Feedback so you don’t have to.

License

Notifications You must be signed in to change notification settings

lambda-feedback/in2lambda

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

91 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

content-conversion

A Python library and CLT for converting LaTeX documents into Lambda Feedback format.

Installation

First, ensure that pandoc is installed.

PyPi

$ pip install https://github.com/lambda-feedback/content-conversion/archive/main.zip
$ tex2lambda --help

It can also be installed via pipx.

Usage

$ tex2lambda --help

 Usage: tex2lambda [OPTIONS] TEX_FILE {Materials}

 Takes in a TEX_FILE for a given SUBJECT and produces Lambda Feedback
 compatible json/zip files.

╭─ Options ─────────────────────────────────────────────────────────────────╮
│ --out   -o  PATH  Directory to output json/zip files to. [default: ./out] │
│ --help            Show this message and exit.                             │
╰───────────────────────────────────────────────────────────────────────────╯

 See the docs at https://lambda-feedback.github.io/user-documentation/ for
 more details.

For instance, the following takes in a Materials question sheet and produces JSON/ZIP files to ./out:

$ tex2lambda problemsA_v2.7.tex Materials

Warnings will be generated if the image directory isn't in the correct location relative to the LaTeX file.

Local Development

You can obtain the development version by cloning the repository:

$ git clone https://github.com/lambda-feedback/content-conversion
$ cd content-conversion

The project can then be installed such that any local changes are applied automatically.

Poetry

Install poetry and then run the following:

$ poetry install
$ poetry shell
$ tex2lambda --help

pip

First, we create and activate a virtual environment:

$ python -m venv env
$ source env/bin/activate

Then we install in editable mode:

$ pip install -e .
$ tex2lambda --help

About

Automagically uploads questions to Lambda Feedback so you don’t have to.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors 9