-
Notifications
You must be signed in to change notification settings - Fork 31
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
Compilation errors using MiKTeX and lualatex on Windows #492
Comments
This is an interesting Windows-specific bug. You should be able to hotfix it by typing The proper fix is to deactivate tokens in the macro |
Thank you for your answer @Witiko. Maybe it's important to notice I am using a virtual machine With main.tex as such: \documentclass{article}
\def\markdownOptionOutputDir{_build}
\usepackage{markdown}
\begin{document}
\begin{markdown}
Hello *world*!
\end{markdown}
\end{document} Error:
complete log file "main.log" The exact same error when using If you need more information do not hesitate. |
According to the logs, you used Markdown v3.6.2-0-g6c30af7e. In this version of the package, line 3237 of |
@Witiko Thank you for your answer. I did read this issue #458 before opening this issue and tested. By adding a file named "UnicodeData.txt" with the content you give.
This issue happens now on every environment (Windows, Ubuntu, Arch) since I added |
At lines 107–109 in the file local f = io.open(kpse.find_file"UnicodeData.txt")
assert(file:match(f:read'*a'))
f:close() Apparently, your file Can you take a peek at what's inside your file
Regardless, we will be getting rid of the dependency on |
I have used the content from this link, you sent. Thus, the content of my file starts the same. Would it be easier to update my markdown package (which is installed in "portable") with the update you made in #486 ? |
Strange! How does it end? Mine ends as follows:
It's weird that You should be able to hotfix the issue by renaming the file
Later today, I will release version 3.7.0, which includes #486. In this version,
When I say "upcoming release", I mean version 3.7.1, to be released by the end of September. |
Mine ends with the same lines.
Do you mean from my part ? Could it be coming from me ?
It works. I can compile on Ubuntu now with this fix. I have other Issues on Windows but not this one anymore.
I will test when updating my package in 3.7.0 and close the issue if it works. Thank you for your answers ! |
Possibly, depending on how you downloaded it. For example, if you opened the file in your browser and then copy-and-pasted its contents into the Notepad and saved, then this would have saved the file with an incorrect encoding of line endings, which might confuse the parser. I am not saying that this is what happened but since both @Yggdrasil128 and I were able to use the downloaded file |
Okay I understand. For now it is fixed, thanks to you. Since in the next version Thanks a lot for the help ! @Witiko |
I am happy to help. However, let's keep this ticket open, please. #492 (comment) and #492 (comment) mention a bug that should be fixed before closing the ticket. |
The issue from #492 (comment) should be fixed after PR #501, to be released in Markdown 3.7.1 by the end of September. @l0th3r: I tested the changes on a Windows VM but I will appreciate your feedback before the release. Here are the compiled sources of the Markdown package after the change. |
Hi,
I am new to Tex and LaTex, especially on Windows.
Recently I needed to be able to compile a project I had on Linux, on Windows.
(never done Tex on Windows before)
On Linux, I was using a portable install of the markdown package.
Linux compilation command:
lualatex --shell-escape -interaction=nonstopmode --output-directory=_build main.tex
(0 error and PDF file content is as expected)
Windows installation process:
MiKTeX Console
programhttps://ctan.mines-albi.fr
as package repositorymarkdown
packageExecuted in the directory with powershell:
lualatex --shell-escape -interaction=nonstopmode --output-directory=_build main.tex
Some dialog window showed up to ask to install some packages and said yes to all.
(6 errors and no PDF file produced)
Errors:
Complete log file
main.tex:
Thanks in advance for taking the time to answer.
The text was updated successfully, but these errors were encountered: