1

I installed lhs2TeX from Linux Mint 17.1 repositories and get the following error when trying to convert the file.

`code' is not defined;
perhaps you forgot to include "lhs2TeX.fmt"?

Error line reported is first line of code in haskell

The calling line is:

lhs2TeX file.lhs -o file.tex
nmiculinic
  • 2,224
  • 3
  • 24
  • 39

1 Answers1

3
\documentclass{article}
%include polycode.fmt
\begin{document}

The %include line is required, you could include code.fmt instead, but it will result uglier code blocks.

phadej
  • 11,947
  • 41
  • 78