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

Seeing "EOFError" for two lines where we have math equations in Latex file sample #153

Open
maheshbansode opened this issue Jan 23, 2024 · 0 comments

Comments

@maheshbansode
Copy link

**Latex content sample: **

  •   (1) & $ \frac{\beta}{e(1-q)}$ & $\frac{\gamma}{2}e^2$  & $\Big(\frac{b_C\beta b_qV}{\gamma^2}\Big)^{0.2}$ & $1-\Big(\frac{b_C^2 \beta^2 \gamma}{b_q^3V^3}\Big)^{0.2}$ & $\frac{1}{1+\alpha\Big[(\frac{\overline{\beta}^{0.4}}{\beta^{0.4}}-1)+0.4(1-\frac{\underline{\beta}}{\hspace{2pt} \beta \hspace{2pt}}) \Big]}$ \\ [0.6cm]
    
  •   (2) & $\frac{(1-e)\beta}{1-q}$ & $\frac{\gamma}{1-e}$ & $1-\Big(\frac{\gamma^2}{b_C\beta b_qV}\Big)^{1/3}$ & $1-\Big(\frac{b_C\beta \gamma}{b_q^2V^2}\Big)^{1/3}$ & $\frac{1}{1+\alpha\Big[(\frac{\overline{\beta}^{\frac{1}{3}}}{\beta^{\frac{1}{3}}}-1)+\frac{1}{3}(1-\frac{\underline{\beta}}{\hspace{2pt} \beta \hspace{2pt}}) \Big]}$\\ [0.6cm]
    

**Error detail: **

src = <TexSoup.utils.Buffer object at 0x11060dd50>, expr = TexMathModeEnv('$')
end = None

def unclosed_env_handler(src, expr, end):
    """Handle unclosed environments.

    Currently raises an end-of-file error. In the future, this can be the hub
    for unclosed-environment fault tolerance.

    :param Buffer src: a buffer of tokens
    :param TexExpr expr: expression for the environment
    :param int tolerance: error tolerance level (only supports 0 or 1)
    :param end str: Actual end token (as opposed to expected)
    """
    clo = CharToLineOffset(str(src))
    explanation = 'Instead got %s' % end if end else 'Reached end of file.'
    line, offset = clo(src.position)
  raise EOFError('[Line: %d, Offset: %d] "%s" env expecting %s. %s' % (
        line, offset, expr.name, expr.end, explanation))

E EOFError: [Line: 0, Offset: 5141] "$" env expecting $. Reached end of file.

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