Generalusing algorithmic package

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
zizozizo
Posts: 4
Joined: Sun Jun 10, 2007 8:23 pm

using algorithmic package

Post by zizozizo »

Hi;
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.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

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

Post by countbela666 »

Hello,

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:
  1. forget about \documentstyle and create a LaTeX2e document by using \documentclass, or
  2. don't use the algorithms package
Regards
Marcel
Listen to me children of the night, beyond the doors of darkness you will find
a thousand worlds for you to see here, take my hand and follow me...
Post Reply