{algorithms} is about the presentation, numbering, and layout of algorithms or pseudocode in documents. Popular packages are algorithms, {algorithmicx}, {algorithm2e} and {listings}. For questions about the specific package, use the appropriate tag instead.

learn more… | top users | synonyms (1)

2
votes
1answer
77 views

PDF reference links when using hyperref and (`ruled`) algorithm2e

I was testing some links within my produced PDF file and recognized that all of the links to an algorithm (from the algorithm2e package) will jump to the beginning of the algorithm with skipping half ...
2
votes
0answers
30 views

How to complete the algorithm using algorithm2e

I wanted to write this flowchart using \usepackage[linesnumbered,ruled,vlined]{algorithm2e} However, I couldn't get what I want, please refer to my code in below \begin{algorithm} ...
2
votes
0answers
32 views

The algorithms' captions appear in the list of abbreviations

I have a problem with the list of abbreviations. The problem is that the algorithms' captions appear in the list of abbreviations! I use the loabbrv package for the abbreviations, and by the command ...
2
votes
0answers
106 views

Custom text instead of line numbers in algorithmic

In an algorithm using the algorithmic package, I would like to display for some lines a special symbol (e.g. a +), instead of their line number. Is this possible? Edit: Here's a minimal working ...
2
votes
0answers
130 views

Divide algorithm inside If EndIf

This is a follow-up question to Option in the algorithm with Latex. This is the code: \begin{document} \begin{algorithm} \caption{My algorithme} \begin{algorithmic}[1] \Donnees: My data ...
1
vote
0answers
17 views

Reduce space below an algorithm

I am using the algorithm package for my algorithms in the paper. I find that the space below the algorithm is very large after generating a PDF, so I want to shrink the space. Firstly, I come to add ...
0
votes
0answers
24 views

Increase algorithm distance to margin

I've been using \vspace to increase or decrease the vertical distance of figures to the margin, but I found out it doesn't work inside and algorithm evironment. Is there an alternative or workaround ...
0
votes
0answers
69 views

How to define a list of algorithms?

How can i define a list of algorithms similar a list of tables? i need something like \listofalgorithms similar to \listoffigures but with trackable algorithms
0
votes
0answers
78 views

Reduce whitespace or margin before listofalgorithms command

I'm at my wits end on this one. I have a list of algorithms page that I want formatted the same way as my ToC and ToF. What I have currently is pretty close except that the List of Algorithms title ...
0
votes
0answers
64 views

How to write this algorithm properly

Here I have attached the current code \begin{document} \begin{flushleft} \begin{picture}(10,5) \put(1,1){\line(1,0){450}} \end{picture} \end{flushleft} \textbf{\textit{Algorithm:}} Curves on ...
0
votes
0answers
94 views

How can I change the left and right margins of the list of algorithms?

I am using the algorithm package and have a list of algorithms. How to change the left and right margin of the lists? I'd like both and right margins to be 1pt wide.
0
votes
0answers
111 views

Some algorithm2e questions (line wrap, indentation, lists)

I already had a question about algorithm2e here: algorithm2e indentation / line break I have continued using algorithm2e, but I have multiple problems now: First, I need a finer control over the ...