GeneralPseudocode line numbering

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
devito
Posts: 2
Joined: Fri Jan 18, 2008 12:59 pm

Pseudocode line numbering

Post by devito »

Does anyone know if it is possible to put before each line in pseudocode (using the pseudocode package) the line number?

How can it be done? If not possible what other 'automatic' approaches are there?

Tks

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

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Pseudocode line numbering

Post by localghost »

An answer has already been given in another forum. It would be very nice (and polite in particular), if you would mention when you do a cross posting.


Best regards
Thorsten
rplantz
Posts: 16
Joined: Mon Jan 21, 2008 12:35 am

Pseudocode line numbering

Post by rplantz »

devito wrote:Does anyone know if it is possible to put before each line in pseudocode (using the pseudocode package) the line number?

How can it be done? If not possible what other 'automatic' approaches are there?

Tks
Will the listings package work for your needs? I haven't used it for pseudocode, only real code.
Post Reply