Code Monkey home page Code Monkey logo

Comments (4)

mmeyn avatar mmeyn commented on September 17, 2024

However I found a workaround for this case: I build the markup in Scheme.

#(markup #:center-column ("abc" "def"))

from lyluatex.

jperon avatar jperon commented on September 17, 2024

Should be fixed in 9b415a1. All I hope is it won't introduce other bugs, but I don't think so.
The problem was that lualatex separates what it sees as a command (\center) from what it sees as an argument (-column). The fix deletes the spurious space, but as a consequence, it is impossible to see wether the source had \center-column or \center -column : in either case, the fix will delete the space.

from lyluatex.

mmeyn avatar mmeyn commented on September 17, 2024

This fixes only \center-column, \left-column, \right-column, and \dir-column but there are a whole bunch of other commands containing dashes, e. g. \center-align, \with-color and \fret-diagram. One could do a similar “fix” for all these other commands but IMO that would be a really ugly hack.

However, if I didn’t miss something (and I went through the whole LilyPond command index, the only commands with dashes are markup and markuplist commands, so they can be input as in my workaround from August 14th (see above).

If no less ugly fix can be found I would suggest to document this limitation of lyluatex with a hint to the workaround.

from lyluatex.

jperon avatar jperon commented on September 17, 2024

Oops ! I had forgotten to change it after my tests. It will work now. I agree that the fix is quite ugly, but thinking about it, I think it's better than not using it : I don't see so many cases where anyone would use a \command followed by a space and -something, and in such rare cases, there would be workarounds.

from lyluatex.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.