We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e73d968 commit 5657aaeCopy full SHA for 5657aae
1 file changed
vrdu/order_annotation.py
@@ -104,6 +104,26 @@ def generate_cross_reference_order(self):
104
}
105
)
106
107
+ # generate reference for float environments
108
+ for block in self.annotations["annotations"]:
109
+ if config.category2name[block.category] not in ["Table", "Algorithm"]:
110
+ continue
111
+ block.references = [
112
+ x
113
+ for group in re.findall(ref_patterns, block.source_code)
114
+ for x in group
115
+ if x
116
+ ]
117
+ for _label in block.references:
118
+ if _label in label_to_block_id:
119
+ annotations.append(
120
+ {
121
+ "type": "explicit-cite",
122
+ "from": block.block_id,
123
+ "to": label_to_block_id[_label],
124
+ }
125
+ )
126
+
127
self.annotations["orders"].extend(annotations)
128
129
def generate_float_envs_order(self):
0 commit comments