Math & ScienceFormatting for Algorithm

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
rezap405
Posts: 3
Joined: Sat Sep 21, 2013 2:57 am

Formatting for Algorithm

Post by rezap405 »

Hi,

I want to write code such that its output generate something like in the attachment.
Attachments
algorithm-format.png
algorithm-format.png (110.5 KiB) Viewed 4461 times
Last edited by localghost on Sat Sep 21, 2013 9:30 am, edited 1 time in total.
Reason: Preferably no external links (see Board Rules). Attachments go onto the forum server where possible.

Recommended reading 2024:

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

NEW: TikZ book now 40% off at Amazon.com for a short time.

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

Formatting for Algorithm

Post by localghost »

Have a look at packages like algorithms or algorithm2e.


Best regards and welcome to the board
Thorsten
rezap405
Posts: 3
Joined: Sat Sep 21, 2013 2:57 am

Re: Formatting for Algorithm

Post by rezap405 »

Hi,
How to generate line 13 of this algorithm that has long length
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Re: Formatting for Algorithm

Post by localghost »

I don't know. Never had to typeset algorithms. What about reading the respective package manual and start your own approach? At the moment I don't have the time to read up on that matter.
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Formatting for Algorithm

Post by Johannes_B »

Nevertheless, a minimal working example might help us to test a possible solution.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Post Reply