PetePupalaikis / uspatent

Tools for drafting a U.S. Patent Application using LaTeX and/or LyX
7 stars 3 forks source link

Arbitrary annotation numbers #3

Open fledder opened 5 years ago

fledder commented 5 years ago

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 commented 5 years ago

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

remygithub commented 2 years ago

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?