You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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?
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?
The text was updated successfully, but these errors were encountered: