General ⇒ using algorithmic package
using algorithmic package
I am trying to use the algorithmic package in my latex. I am using the old command
\documentstyle[epsf,graphicx,algorithm,algorithmic]{report} for now I do not want to change it. Now here there is no problem, but when I add these commands:
\begin{algorithm}
\begin{algorithmic}
\end{algorithmic}
\end{algorithm}
it gives me lots of error. Any help is appreciated.
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
- countbela666
- Posts: 64
- Joined: Thu Apr 26, 2007 2:44 pm
using algorithmic package
you are using the ancient/obsolete LaTeX2.09 command \documentstyle to set up a LaTeX document, and you don't want to change it. So far, so bad. In doing so you will be forced to use LaTeX2.09 packages only, but unfortunately the algorithms package is -- as the most other packages as well -- a dedicated LaTeX2e package, which you can recognise from its first line of code: \NeedsTeXFormat{LaTeX2e}.
So there are only two possibilities:
- forget about \documentstyle and create a LaTeX2e document by using \documentclass, or
- don't use the algorithms package
Marcel
a thousand worlds for you to see here, take my hand and follow me...