You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, thanks for writing this module. Here is an example of how I am using this:
varfs=require('fs');varlatex=require('latex');varstring=getTexDocument();// Returns a string of .tex codevarwriteStream=fs.createWriteStream('doc.pdf');latex(string).pipe(writeStream);
This works for most situations, but what do I need to do if the string is a TeX document that wants to use a CLS file? Is there something I can do to pass CLS code as a string as well to make this work? Thanks!
The text was updated successfully, but these errors were encountered:
For now, this module allows you to pass a path to your TEXINPUTS like if you have fonts or .cls files. Example:
varlatex=require('node-latex')varpath=require('path')varpdfStream=latex(texDoc,{inputs: path.resolve(__dirname,'path','to','inputs')})// Do something with pdfStream
Hi, thanks for writing this module. Here is an example of how I am using this:
This works for most situations, but what do I need to do if the
string
is a TeX document that wants to use a CLS file? Is there something I can do to pass CLS code as a string as well to make this work? Thanks!The text was updated successfully, but these errors were encountered: