The contents of the algorithms thinks that an algorithm that uses algorithm is one algorithm and an algorithm that uses algorithm2e is another algorithm, not the second of what was imported with the other package, but a different entity or something, which, in my opinion is not OK.
I would like this:
1 algo 1..................... page of algo 1
1 algo 2..................... page of algo 2
to be changed to this:
1 algo 1..................... page of algo 1
2 algo 2..................... page of algo 2
Alignment and numbering were changed above.
Here is the minimal example, based on this question:
\documentclass{article}
\usepackage{algorithm}
\usepackage{algorithmic}
\usepackage[algo2e]{algorithm2e}
\renewcommand{\listalgorithmname}{List of Algorithms}
\addtocontents{loa}{\protect\thispagestyle{empty}}
\begin{document}
\listofalgorithms
\smallskip
\begin{algorithm}%>- from algorithm package
test
\caption{algo 1}
\end{algorithm}
\begin{algorithm2e}%>- from algorithm2e package
test
\caption{algo 2}
\end{algorithm2e}
\end{document}
Output:

Chronicle
I had my thesis ready. However, just last night we submitted a paper based on it. I must submit my thesis too and I would like to include some of the algorithms written to the paper into the thesis. For several reasons, I have come into a situation where someone will give a solution to my problem, or I will just leave the the thesis without the paper-algorithms, which of course lead to a heartbroken thesis. :)
The algorithms of the paper are written with algorithm2e, while the algorithms of the thesis are written with algorithm and algorithmic. I have to submit it first thing tomorrow morning, thus I have no time to re-write them (I am editing my thesis now in other sections), that's why I will either hear a solution from the community here, or will leave the algorithms of the paper outside of my thesis!
algorithmpackage? – Carlos Viegas Apr 23 '15 at 19:06