-
-
Notifications
You must be signed in to change notification settings - Fork 97
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
simple macro with \section fails to compile... unless written in xml flavour #535
Comments
I know why this is happening. I am not sure why it is not happening with XML. It should still be broken with XML! What's going on is that:
In essence, not only can I'm not sure what the right answer is to this, other than maybe rewrite how |
For reference, here's how to do this in Lua. SILE.registerCommand("mois", function (options, content)
SILE.call("section", { numbering = false }, content)
end) Of course it's best if you stick this sort of thing in a separate Lua file, but if you need to stick this in your document your can do it inline as well. In XML: <script>
<!--- Lua code here -->
</script> The current SILE release doesn't have the parsing chops to do this in TeX-like markup, but the the development version does. You can do this: \begin{script}
-- Lua code here
\end{script} Even better, if this is always the way you want too call SILE.setCommandDefaults("section", { numbering = false }) Then you can keep using the |
Thank you for your replies.
@alerque Thank you, i wil luse lua scripts then, avoiding macros. |
Edit: Please ignore this, it’s unrelated, I just didn’t know my included file should have a Just stumbled upon a variant of this.
gives a stack underflow error, but including the same file in XML format doesn’t. Inlining the |
when using the folowing macro:
sile fails by:
mois.txt
in xml the compilation works nice.
The text was updated successfully, but these errors were encountered: