kosmikus / lhs2tex

Preprocessor for typesetting Haskell sources with LaTeX
Other
99 stars 28 forks source link

lhs2tex on Windows 10 #70

Closed thalesad closed 6 years ago

thalesad commented 6 years ago

Has anyone installed lhs2tex on Windows 10? I've looked for tutorials for all Windows versions, but I've got no success. Thanks.

donya commented 6 years ago

On Windows 10 I have used pre-2018 versions of Haskell Platform and "cabal install lhs2tex" to install it with no issues; it was very simple. I used it successfully with 8.0.1 for a long time and I think it worked up through 8.2.2 as well. It will not work with 8.4.2 or 8.4.3 though (someone already made a separate issue on that).

thalesad commented 6 years ago

Thank you, Donya. I installed HP version 8.0.1 and lhs2tex using "cabal install" as you suggested. However, I could not make Texstudio recognize .lhs files.

donya commented 6 years ago

I have not used Texstudio, so I don't know if lhs2tex can integrate with it easily. Whenever I have worked with lhs2tex, I have always used a very lightweight editor like TexWorks and then used a batch file to compile everything to pdf this way:

lhs2tex --poly SubSection.lhs > SubSection.tex
lhs2tex --poly MainFile > MainFile.tex
bibtex MainFile
makeindex MainFile
pdflatex MainFile

where MainFile.lhs has \include{SubSection} somewhere within it.

thalesad commented 6 years ago

Thanks a lot, Donya! Your approach worked fine here. I'm gonna close this issue. Thanks!