-
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
Support ConTeXt standalone #402
Comments
Hello, thank you for the report. What is your example document and what command are you using to compile it? |
Sorry for the wait. I've made an MWE repo so you can investigate locally: https://github.com/andreiborisov/witiko-markdown-issue-402 Please let me know if I can help in any other way 🙏🏻 |
@Witiko, did you have the chance to look into it? It seems the issue is with a particular file:
|
I haven't had time to look into it yet but from your description, it seems that ConTeXt standalone does not contain the expl3 programming language, which is used extensively throughout since around version 2.15.0. Therefore, you may need to either place the .tex files of expl3 into your working directory or into your ConTeXt standalone installation. |
Oh, thank you, that makes sense! 🙏🏻 I'll look into it and report my findings. |
Thanks. I'd like to install ConTeXt standalone and test this out before the end of the month but I will appreciate your report. |
In addition to expl3, we require a number of libraries that are only available in TeX Live / LuaTeX and not in ConTeXt standalone / LuaMetaTeX, so full support of ConTeXt Standalone and LMTX is a larger undertaking but your effort should help us implement the support sooner. At the moment, only ConTeXt with LuaTeX and in TeX Live is officially supported. |
Tried installing
Can you draft a list of other missing packages so I can check if installing them is enough? |
Interesting. The message indicates that the error is with your installation of expl3 (
Please, see Section 1.1 (Requirements) of the technical documentation of the Markdown package. Namely, in addition to expl3, we require the |
I am seeing the same error in the Witiko/lt3luabridge repo. As discussed in Witiko/lt3luabridge#25, this error is due to expl3 and LuaMetaTeX. Namely, since TeX Live 2024, expl3 no longer works with LuaMetaTeX. I opened an issue for this in latex3/latex3#1518. Are you also using LuaMetaTeX? Please note that even after the issue with expl3 and LuaMetaTeX has been fixed, the Markdown package has relied on the Selene Unicode package since Markdown 3.0.0. Selene Unicde is compiled into LuaTeX but unavailable in LuaMetaTeX. Until we can get rid of the dependency on Selene Unicode, LuaMetaTeX is not supported out-of-box at the moment. |
@andreiborisov As you can see, the Markdown package for TeX would benefit from an active developer who uses ConTeXt and who would push for better compatibility with ConTeXt standalone. I don't use ConTeXt standalone myself, so it's less of a priority for me. |
Yes (it's the default engine for ConTeXt now). I'll try to roll back to ConTeXt Mark IV for my purposes, but LuaMetaTeX support would still be great to have in the long run: #436
Is it better to bundle it with the Markdown package or list it as a dependency? If it's just a single file that is not part of any separately available package, perhaps it would make sense to bundle it up since it would be difficult for ConTeXt users to install it.
I'm glad to help where I can, but I'm afraid I might not be proficient enough in raw TeX to be awfully useful 🥲 At the very least, I want to make it work with ConTeXt Mark IV standalone. Would it be useful if I make a PR with a manual on installing the package in ConTeXt Mark IV standalone? Or is it better to provide a |
We can definitely include them in the In the long run, it might be best to only use the file
That's not necessarily an issue, most of the work necessary is in Lua and bugging me about the open issues. 😉
Extending Section 1.2.1 (Local Installation) of the user manual with extra steps necessary with ConTeXt standalone seems useful. Having a |
So, I've installed everything mentioned and getting a new error now:
|
ConTeXt has its own stub library for KPathSea, which is insufficient for the Markdown Package for TeX. The real KPathSea library needs to be loaded and initialized before loading the Markdown package, see the example document for ConTeXt: markdown/examples/context-mkiv.tex Lines 6 to 11 in e7c6a5b
The reason why we don't do this automatically inside the module is because the KPathSea library cannot be initialized multiple times, so there is a potential for issues if multiple modules tried to initialize KPathSea. Furthermore, it seems impossible to determine whether the current |
We are almost out of high-priority tickets, so I am hoping to start work on reducing external dependencies and making the Markdown package smaller and more self-sufficient in the following months. This should make the use with ConTeXt standalone much easier and your research in this ticket will be the basis for the work. |
Important In version 3.7.1 of the Markdown package, to be released by the end of September, there is a new file |
Pull request #529 has removed the files |
👋🏻
I have trouble to make the package work with ConTeXt standalone distribution starting
2.15.0
.I'm installing the package the same way, however, compiles arbrubtly stop since
2.15.0
without any further issues printed in the log.Any suggestions on what it can be or instructions for me to diagnose the issue further?
The issue seems to persist up to
3.4.0
.The text was updated successfully, but these errors were encountered: