Skip to content

Commit

Permalink
Add support for \autoref figure references. (#256)
Browse files Browse the repository at this point in the history
  • Loading branch information
mgskjaeveland authored Mar 12, 2024
1 parent ad98a18 commit c9abf44
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public List<Advice> evaluate(AnnotatedString s)
// Step 2: find references to these figures
for (String fig_name : figure_defs.keySet())
{
if (s.find("\\\\(C|c){0,1}ref\\s*\\{.*" + fig_name + ".*?\\}") == null)
if (s.find("\\\\(C|c|auto){0,1}ref\\s*\\{.*" + fig_name + ".*?\\}") == null)
{
// This figure is not referenced
int start_pos = figure_defs.get(fig_name);
Expand Down

0 comments on commit c9abf44

Please sign in to comment.