jperon / lyluatex

Alternative à lilypond-book pour lualatex
MIT License
56 stars 11 forks source link

Fatal error: missing \begin{document} #278

Closed Brayanokles closed 4 years ago

Brayanokles commented 4 years ago

I tried to make a new booklet. I created this imput:

\documentclass[a5paper,article,12pt]{memoir}

\usepackage{lyluatex}

\begin{document}

% title page \thispagestyle{empty}

\begin{center}

Dit is het begin

\vspace{\fill}

\newpage

\end{document}

In Lualatex I got this:

_This is LuaHBTeX, Version 1.12.0 (TeX Live 2020/W32TeX) system commands enabled. ("./Nieuw Praiosliedboek.tex" LaTeX2e <2020-02-02> patch level 5 L3 programming layer <2020-04-06> (c:/texlive/2020/texmf-dist/tex/latex/memoir/memoir.cls Document Class: memoir 2020/03/25 v3.7k configurable book, report, article docu ment class (c:/texlive/2020/texmf-dist/tex/generic/iftex/iftex.sty) (c:/texlive/2020/texmf-dist/tex/latex/memoir/mem12.clo) (c:/texlive/2020/texmf-dist/tex/latex/tools/array.sty) (c:/texlive/2020/texmf-dist/tex/latex/tools/dcolumn.sty) (c:/texlive/2020/texmf-dist/tex/latex/tools/delarray.sty) (c:/texlive/2020/texmf-dist/tex/latex/tools/tabularx.sty) (c:/texlive/2020/texmf-dist/tex/latex/textcase/textcase.sty)) (./lyluatex.sty

! LaTeX Error: Missing \begin{document}.

See the LaTeX manual or LaTeX Companion for explanation. Type H for immediate help. ...

l.5 < !DOCTYPE html> ?_

What did I do wrong?

jperon commented 4 years ago

I don't get the same error with that one : the error message seems to indicate something before \begin{document} that should be after. Wouldn't you have spurious spaces or other special characters in lines 1 to 5 ?

That said, I do get an error with the document as is : there is a missing \end{center}. The document should be :

\documentclass[a5paper,article,12pt]{memoir}
\usepackage{lyluatex}

\begin{document}

% title page
\thispagestyle{empty}

\begin{center}
Dit is het begin
\end{center}

\vspace{\fill}

\newpage

\end{document}

Just a tip : when you copy/paste some code, you should surround it with `` before and after, to get a code box like above. You may even addlatex` after the first backticks, to get syntax color.

Brayanokles commented 4 years ago

Thanks for your reply. This was the only text I put into this file. The \end{center} is in the document now, but I still get the same error.

I tried this one:

\documentclass[a5paper,article,12pt]{memoir}

\usepackage{lyluatex}

\begin{document}

Dit is het begin

\newpage

\end{document}

Same result.

uliska commented 4 years ago

@jperon do you already run tl20? I recall someone having a steange problem with LuaHBsomething (HarfBuzz). Maybe there's indeed a problem with new Lua tools?

jperon commented 4 years ago

Here is what I get when calling lualatex :

This is LuaHBTeX, Version 1.12.0 (TeX Live 2020/Debian) 
 system commands enabled.
(./test.tex
LaTeX2e <2020-02-02> patch level 5
 L3 programming layer <2020-03-06>

I'm not on vanilla TeXLive, but on the version found on Debian sid.

Brayanokles commented 4 years ago

Would it be a good idea, reinstalling TL2018?

jperon commented 4 years ago

Or 2019, waiting for a fix, if you can have both in parallel… But if there's a bug, I'd like to fix it ! Could you please try a cut-paste from this message into a new document, and compile it ?

Brayanokles commented 4 years ago

I put it into another folder and now it seems to work. How is that possible?

jperon commented 4 years ago

Just guessing, but it could be a non-printable character (unbreakable space or such), or perhaps an encoding problem (utf-8 vs other) ? Whatever be it, I'll close those issues ; feel free to re-open (or open new ones) if there are other problems.

Brayanokles commented 4 years ago

Thank you for your help and a blessed Easter.

jperon commented 4 years ago

Blessed Easter to you !

Le 18 avril 2020 23:10:28 GMT+02:00, Erik notifications@github.com a écrit :

Thank you for your help and a blessed Easter.

-- You are receiving this because you modified the open/close state. Reply to this email directly or view it on GitHub: https://github.com/jperon/lyluatex/issues/278#issuecomment-615950140