Helper script for making Lab Reports
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
labs-core
labs-fitter
labs-integration
labs-plot
labs-table-maker
labs-web
my-labs
.gitignore
README.md
index.js
package.json
test.sh
yarn.lock

README.md

Labs

Disclaimer: this is still WIP. Any help is welcome!

This simple set of js scripts can help you to write your Latex Lab Report.

They are very simple to use. Just load all files in a js enviroment, and use the following commands to setup:

const { Env, EnvBuilder } = require('labs');

// Create a new env
let env = new Env({
	n: ['N'],
	x: ['x', 'm'],
	mu: ['\\mu', 'm', 'x * n']
	// name: [ latex_name, unit, formula_if_derived ]
});

// Add values for variable n
env.add('n', ['1', '2', '3'], '0.5');

env.add('x', [
	['1', '0.1'],
	['2', 'n', '0.02'],
	'3'
]);

/*
 * env.add(variable, [ ..., [ value, multiplier, error ], ... ], default_multiplier, default_error);
 */

// Display the table (return the table Latex as string)
env.latexTable(['n', 'x', 'f']);