Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Algorithm package compatibility #25

Open
ryhuff opened this issue Jan 20, 2025 · 2 comments
Open

[FEATURE] Algorithm package compatibility #25

ryhuff opened this issue Jan 20, 2025 · 2 comments
Labels
enhancement New feature or request

Comments

@ryhuff
Copy link

ryhuff commented Jan 20, 2025

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.

@ryhuff ryhuff added the bug Something isn't working label Jan 20, 2025
@meluso meluso added enhancement New feature or request and removed bug Something isn't working labels Jan 21, 2025
@meluso
Copy link
Owner

meluso commented Jan 21, 2025

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 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
@ryhuff
Copy link
Author

ryhuff commented 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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants