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
Describe the bug.
I ran into an issue using the appendix list functionality. I'm using the algorithm package, which also uses the loa extension. This meant that the list of appendices would include all algorithms along with the appendices.
To Reproduce.
Add an algorithm using the algorithm package, while setting \showlistofappendices in the main tex file.
Expected behavior.
The algorithms should be included in the list of programs, but at least not included in the list of appendices. Aside from manually modifying the algorithm.sty file (see below), a proper fix would modify the templates \appendix definition to use a different extension.
Screenshots.
N/A
Additional context.
A quick work around for me was to manually modify the file extension in the algorithm.sty file from loa to something else, like loal. The snippet below shows the fix.
The algorithm.sty default float path:
\newfloat{algorithm}{htbp}{loa}
My updated float path (also changed elsewhere in .sty file where needed):
\newfloat{algorithm}{htbp}{loal}
Not Tested!!
I think manually modifying the extension to lop would allow the algorithms to be included in the list of programs.
The text was updated successfully, but these errors were encountered:
Hi @ryhuff, thank you for pointing this out and for doing some exploration to figure out what the cause might be! I typically mark things that are nice-to-have's as feature requests rather bugs, so I'm going to switch the label to that. But thank you, this could be a good first contribution for someone!
meluso
changed the title
[BUG] Algorithms created using the algorithm package appear in the list of appendices due to using the same file extension.
[FEATURE] Algorithm package compatibility
Jan 21, 2025
No problem. I'm wrapping up some final edits, but might take a stab at this once I'm done. Otherwise, there's at least a work-around for anyone else running into this issue!
Describe the bug.
I ran into an issue using the appendix list functionality. I'm using the algorithm package, which also uses the loa extension. This meant that the list of appendices would include all algorithms along with the appendices.
To Reproduce.
Add an algorithm using the algorithm package, while setting \showlistofappendices in the main tex file.
Expected behavior.
The algorithms should be included in the list of programs, but at least not included in the list of appendices. Aside from manually modifying the algorithm.sty file (see below), a proper fix would modify the templates \appendix definition to use a different extension.
Screenshots.
N/A
Additional context.
A quick work around for me was to manually modify the file extension in the algorithm.sty file from loa to something else, like loal. The snippet below shows the fix.
The algorithm.sty default float path:
\newfloat{algorithm}{htbp}{loa}
My updated float path (also changed elsewhere in .sty file where needed):
\newfloat{algorithm}{htbp}{loal}
Not Tested!!
I think manually modifying the extension to lop would allow the algorithms to be included in the list of programs.
The text was updated successfully, but these errors were encountered: