1

我从 Linux Mint 17.1 存储库安装了 lhs2TeX,并在尝试转换文件时收到以下错误。

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

报告的错误行是 haskell 中的第一行代码

调用线路是:

lhs2TeX file.lhs -o file.tex
4

1 回答 1

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

%include行是必需的,您可以code.fmt改为包含,但它会导致更丑陋的代码块。

于 2015-01-14T17:14:02.670 回答