Hello,
great Latex plugin
propably stupid question but perhaps there is a simple solution
I want integrate tex file support in my distribution. For that I want to read a .tex file and then show it with hollywood (or save it to pdf or png). Is there a simple code I could use for that?
Showing TEX-Files?
Re: Showing TEX-Files?
just a quick guess without having tried it yet:
in your code, require the tex-plugin, load a .tex file with Readfile() and then display it as a TextObject.
This should work if I understood the manual right.
in your code, require the tex-plugin, load a .tex file with Readfile() and then display it as a TextObject.
This should work if I understood the manual right.
- airsoftsoftwair
- Posts: 5589
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
Re: Showing TEX-Files?
Tex files can have multiple pages but hTeX only supports rendering of single pages so you'd have to come up with a parser that scans the tex file, puts the individual pages in a table and then renders those pages using TextOut() as described in the hTeX manual. Shouldn't be too difficult to implement.