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

Arbitrary annotation numbers #3

Open
fledder opened this issue Dec 16, 2018 · 2 comments
Open

Arbitrary annotation numbers #3

fledder opened this issue Dec 16, 2018 · 2 comments

Comments

@fledder
Copy link

fledder commented Dec 16, 2018

I like to use a 100, 102, 104, 200, 202, 204, etc. annotation style. I was able to get the annotations to be numbered the way I want to by setting the anno number before each definition, but the annotation list only goes until it finds an invalid number. I was able to solve this by keeping track of the maximum number used for an annotation and looping up to that number. I set up the annotationDefinition to take a second argument to set the annotation number, since that is defined at definition time. I don't know if that's the best way or not, but it worked out for what I was doing.

It's not terribly backward compatible, though, at least the way I was doing it. It could probably be made so with an optional argument, but that might break the multi-definition macro that is there for defining the var name and anno name at the same time.

Thoughts?

@fledder
Copy link
Author

fledder commented Dec 16, 2018

Per our conversation, I will work on this after the PDF/A output feature.

@rgh256
Copy link

rgh256 commented Jan 28, 2022

I also like to use the 100, ...., 200. annotation style. Using \setannotationnumber at the beginning of each figure definition solves this problem.

Unfortunately, somehow, it also prevents the Annotation List section to appear in Draft mode. In my rudimentary approach I would need to know the actual figure number and multiply it by 100 to get the correct (i.e. to my liking) new annotation number.

One way to include the above option in the class could be to define a figureAnnotationMultiplier global variable to be used in calculating the annotationNumber accordingly for each figure at compile time. Unfortunately I have too little tex expertise to do that.

@fledder you suggested a modified \annotationDefinition as a solution. Care to share it?

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

No branches or pull requests

2 participants