A tool to build multi-file LaTeX projects that also need lhs2tex.
Create a .tex-build
file, then run lhs2tex-build
in the root directory.
-
Install lhs2TeX:
cabal install lhs2tex
-
Install TeX Live: https://www.tug.org/texlive/acquire-netinstall.html
-
Clone lhs2TeX-build
-
Install lhs2TeX-build:
cd lhs2tex-build && cabal install
Here is a simple example of how to use the build tool.
Create a .tex-build
file, for example dissertation.tex-build
:
mainFile: dissertation.lhs
outputName: dissertation
lhsFiles: [dissertation.lhs
, chapters/introduction.lhs
, chapters/background.lhs
, chapters/the-language.lhs
, chapters/implementation.lhs
, chapters/benchmarks.lhs
, chapters/examples.lhs
, chapters/conclusion.lhs]
To include files in the LaTeX document, use the subfiles
package along with the \subfileinclude
command.