I'm using using algorithm2e
package with the following settings:
\usepackage[ruled,vlined,linesnumbered,noresetcount]{algorithm2e}
But for some subset of algorithms in the same document, I want to use this setting:
\usepackage[boxed]{algorithm2e}
Is there a way to override the default setting just for a subset?
I found a similar question:
algorithm2e with 'ruled' but with caption underneath?
Here newenvironment
is used to override the default setting of an option. But I want to override the option itself.
I wish there was a way to load a package several times with different options for each instance.
Best Answer
You have to adjust the settings manually: