Showing TEX-Files?

Discuss about plugins that don't have a dedicated forum
Post Reply
OlafSch
Posts: 10
Joined: Thu Jun 02, 2016 1:15 pm

Showing TEX-Files?

Post by OlafSch »

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?
phipslk
Posts: 28
Joined: Sun Oct 29, 2023 7:21 pm

Re: Showing TEX-Files?

Post by phipslk »

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.
User avatar
airsoftsoftwair
Posts: 5589
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Showing TEX-Files?

Post by airsoftsoftwair »

OlafSch wrote: Sun Jun 02, 2024 11:39 pm 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?
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.
Post Reply