Open dunnl opened 1 year ago
Thanks for the report. The issue was fixed in 40ff2af86a56376dd6d00b8e6954159f8ae9558a , which hasn't been part of an actual release yet.
For context, it was due to the (somewhat) recent release of pygments 2.12.0, which (in commit 231366c7106f66f67f3f27c86ee51434419fcda2), started recognizing the nowrap
option: previously, all latex generated by pygments was wrapped in {Verbatim}
tags, which Alectryon had to remove.
I will try to make a new release soon. However, I'd also like to patch a few things for compatibility with more recent sphinx versions. Please ping me if nothing has happened within a week or so.
(In the meantime, pip can install from a git repository, or you can downgrade pygments using pip install 'pygments<2.12.0'
Hi @cpitclaudel, it seems there hasn't been a new release after all, so this is the requested ping. In the meantime I'm fine using an old pygments
version.
I haven't been able to use the
snippets-latex
backend with any frontend due to a failing assertion. For example, based on the line here, I think I should be able to successfully run the following command in therecipes
directory.alectryon fragments.v.json --backend snippets-latex
But an assertion in the LaTeX syntax highlighter fails https://github.com/cpitclaudel/alectryon/blob/8a1f3054c97fc86d628413800cfef75577c43485/alectryon/pygments.py#L206
I don't understand the purpose of this assertion. Am I invoking the backend incorrectly? (In which case, how should I invoke it?) The documentation on
snippets-latex
is scant, but perhaps I could add some if I can get it working.