Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conflicts between OCaml and ML files? #3

Open
wenting-zhao opened this issue Dec 13, 2016 · 1 comment
Open

Conflicts between OCaml and ML files? #3

wenting-zhao opened this issue Dec 13, 2016 · 1 comment

Comments

@wenting-zhao
Copy link

In the exts dictionary, "ml" is mapped to "ML". So I think the syntax highlighting wouldn't work quite well for OCaml... And I have found OCaml.ml in the hello_world folder, maybe you meant OCaml in the first place? I'm not sure when loading "ML" in the syntax package what LaTeX would actually give you, but it seems to fail in my case where I tried to convert an OCaml script into a tex file.

Thanks!

@liffiton
Copy link
Owner

The listings package doesn't list OCaml in its table of predefined languages, only ML. The inclusion of Ocaml.ml as an example file was likely a mistake on my part.

What do you mean by "fail" here? I can't make it highlight OCaml without changing to an entirely different package*, but I'd like to fix any major bugs or crashes, if that's what "fail" means. If it just means that the highlighting was worthless, then I'll remove the OCaml example.

* From this StackOverflow question, it looks like either minted or using Pygments directly would be more comprehensive. I'd welcome any pull requests adding an option to use one of those. 😀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants