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
usage of options #19
Comments
I am currently working on v3 of Let's say you had a folder structure like this:
To include these fonts when running latex, you just need to include the path to a toplevel directory which they are in. Something like: const latex = require('node-latex');
const path = require('path');
const fs = require('fs');
const texDocPath = path.join(__dirname, 'doc.tex');
const inputsPath = path.join(__dirname, 'inputs');
const fontsPath = path.join(__dirname, 'fonts');
const input = fs.createReadStream(texDocPath);
const pdf = latex(input, {
fonts: [fontsPath], // You can put multiple paths in here if you have fonts in different places
inputs: [inputsPath] // Same thing for your TEXINPUTS
});
// Do something with pdf... If you still have issues with usage, please comment a code example here and I can help you debug. Closing for now though. |
Thanks for your detailed instruction which is very helpful! |
Hello @saadq ! I use the options.fonts like you described it, but how can I set the main font in my .tex file ? Thanks ! |
Dear saadq, I find that there exist several options to be loaded, but I cannot find any documentations about the usage of these options (a concrete example like how to set fonts will be great).
Thx!
The text was updated successfully, but these errors were encountered: