sfranzen / chordbox

LaTeX package for chord diagrams
2 stars 1 forks source link

Two errors compiling #1

Open bloff opened 4 years ago

bloff commented 4 years ago

Hey I have two issues.

When I try to compile a tex file with any chord, for example \chordbox{C}{0,3,2,0,1,0} I get the error undefined control sequence \n.

If I do \newcommand{\n}{6}\chordbox{C}{0,3,2,0,1,0} then the chord is drawn, which leads me to think that this issue has something to do with parsing of the comma-separated args.

When I try to compile a bar chord, I get an issue even when I define \n. For example, \newcommand{\n}{6}\bchordbox{F}{0,3,2,0,1,0}{2} gives me the compilation error Package pgf Error: No shape named end is known..

bloff commented 4 years ago

It may or may not have something to do with this recent change to pgf: https://github.com/pgf-tikz/pgf/issues/702

bloff commented 4 years ago

Yes, I can confirm this. The first bug is because of the recent change to pgf. The code is using the \n variable outside of the foreach loop. This used to be allowed but is no longer. I'm working on a patch.