Graphics, Figures & TablesAlgorithms under List of Figures

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
sabahmed
Posts: 36
Joined: Thu Aug 04, 2011 8:55 pm

Algorithms under List of Figures

Post by sabahmed »

Hi All,
i have the following code of an algo. So far i was making separate index for algorithms but now i want them to come under figure index.

Code: Select all

\algsetup{                                                                            
linenosize=\small,                                                               
linenodelimiter=.                                                                     
}                                                                                     
\floatname{algorithm}{Algorithm}                                                      
\begin{algorithm}                                                                     
                                                                                      
\caption{get\_partition}                                                              
                                                                                      
\label{algo1}                                                                         
%\algsetup{indent=2em}                                                                
\begin{algorithmic}[1]                                                                
bla bla ...                                                     
\end{algorithmic}                                                                     
                                                                                      
\end{algorithm}           
Last edited by sabahmed on Thu Oct 06, 2011 3:22 pm, edited 1 time in total.

Recommended reading 2024:

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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

sabahmed
Posts: 36
Joined: Thu Aug 04, 2011 8:55 pm

Re: Algorithms under List of Figures

Post by sabahmed »

Hi all,

can any one please help me out to solve my problem.
badly in need for a solution.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Algorithms under List of Figures

Post by localghost »

Just get used to always providing a minimal example and you will enormously increase your chance for instant help.


Thorsten
alipk
Posts: 1
Joined: Wed Oct 05, 2011 4:16 pm

Algorithms under List of Figures

Post by alipk »

Dear Latex MEMBERS,
i am new to this forum. I am also facing the same problem as that of sabahmed. i read the comments by localghost. Sir what i understand by minimal example(as its hard to read it want to complete my work at earliest)....anyhow im putting my query as under:
i have

Code: Select all

\listofalgorithms            
and instead of that i want to include an algorithm in 2e environment under

Code: Select all

\listoffigures
let the algorithm be the same as that posted ealier in this post.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

Algorithms under List of Figures

Post by Stefan Kottwitz »

Hi,

perhaps use a figure environment for it, or use the caption package and the command

Code: Select all

\captionof{figure}{Your algorithm caption}
Stefan
LaTeX.org admin
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Algorithms under List of Figures

Post by localghost »

alipk wrote:[…] what i understand by minimal example(as its hard to read it want to complete my work at earliest) […]
If you just follow the link in my last reply, you will get detailed instructions. I couldn't tell you better how to build it.
sabahmed
Posts: 36
Joined: Thu Aug 04, 2011 8:55 pm

Algorithms under List of Figures

Post by sabahmed »

Stefan_K wrote:Hi,

perhaps use a figure environment for it, or use the caption package and the command

Code: Select all

\captionof{figure}{Your algorithm caption}
Stefan
Dear Stefan thanks a lot for your kind help it solve my problem although i have to work out as it introduce some formatting issues but its almost solved again thanks:)
Post Reply