Hi,
I want to write code such that its output generate something like in the attachment.
Math & Science ⇒ Formatting for Algorithm
Formatting for Algorithm
- Attachments
-
- algorithm-format.png (110.5 KiB) Viewed 4463 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.
Reason: Preferably no external links (see Board Rules). Attachments go onto the forum server where possible.
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
Have a look at packages like algorithms or algorithm2e.
Best regards and welcome to the board
Thorsten
Best regards and welcome to the board
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: Formatting for Algorithm
Hi,
How to generate line 13 of this algorithm that has long length
How to generate line 13 of this algorithm that has long length
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Re: Formatting for Algorithm
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.
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Formatting for Algorithm
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.