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

simplebnf package: environment bnf undefined #1245

Closed
lituzou opened this issue Jan 9, 2025 · 0 comments
Closed

simplebnf package: environment bnf undefined #1245

lituzou opened this issue Jan 9, 2025 · 0 comments

Comments

@lituzou
Copy link

lituzou commented Jan 9, 2025

I use simplebnf package to render bnf syntax. But it returns LaTeX Error: Environment bnf undefined.
Initially I thought it is another XeLaTaX compatibility issue, but when I used xelatexmk it successfully render the correct document.

Here is the tex file I used

\documentclass[11pt,a4paper]{article}
\usepackage{simplebnf}

\begin{document}
\begin{center}
    \begin{bnf}
        $e$ : Expr ::=
        | \texttt{num}
        | $e + e$
        | $e - e$
        | $e \times e$
        | $e \div e$
    \end{bnf}
\end{center}
\end{document}

and the tectonic version I am using is 0.15.0

Does anyone have a clue?

@lituzou lituzou closed this as completed Jan 9, 2025
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

1 participant