AguaClara / aide_document-DEPRECATED

This module is no longer being maintained due to the transition to Onshape.
MIT License
0 stars 0 forks source link

Implement Prototype #2

Closed matanp closed 6 years ago

matanp commented 6 years ago

Write code to transform data from a json file to a latex header file.

Use hardcoded keys and variable names to start.

This will act as a proof of concept for the data flow from json to latex.

matanp commented 6 years ago

Implemented to test viability and practice parsing json:

Converting a simple key value pair. The key is referenced in the python code, and writes the value into the latex header file. This dynamically updates the value in the latex file that 'includes' the header file and uses the hard coded variable name.

Converting a list of lists into a table. Loop through the lists in python and write them into a latex table. Write the latex table to a hardcoded latex variable.

Passing a path to an image from the json to the latex header file. Latex file displays the image at the path.

output latex header file input json file latex template