Skip to content
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

Named-figure indentation is permanent #3

Closed
kingjon3377 opened this issue Oct 28, 2017 · 2 comments
Closed

Named-figure indentation is permanent #3

kingjon3377 opened this issue Oct 28, 2017 · 2 comments
Assignees
Milestone

Comments

@kingjon3377
Copy link
Owner

Figures within a named figure are indented so that their bars field aligns with the figure-description field of normal figures; that is by design. However, as currently implemented, once a named figure is used, every subsequent figure (including in subsequent dances) is similarly indented.

It looks like the (etoolbox?) bool mechanism I'm using is "immutable once set." I spent several hours yesterday trying to fix this, but the most promising solution (starting with \newif) caused example documents to fail to compile.

(I may end up dropping the notion of complex "named figures" anyway, to simplify the implementation and use of both this documentclass and the GUI; the Ball program that prompted me to develop this package included such an explanation of the Targe for The Clansman, but plainly typeset it with the bars merely joining the description in the larger second column.)

@kingjon3377 kingjon3377 self-assigned this Oct 28, 2017
This was referenced Oct 29, 2017
@kingjon3377 kingjon3377 added this to the 1.0.0 milestone Nov 17, 2017
@kingjon3377
Copy link
Owner Author

It suddenly occurred to me that the standard way of handling this would be a counter: the \namedfigure command or namedfigure environment would increment it at the beginning, then decrement it at the end, and the \scfigure command would (if nested named figures aren't supported) test whether it's equal to 0 or not.

@kingjon3377
Copy link
Owner Author

Fixed in 9a00204.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant