Mohammadreza Hadizadeh

Latex; How to remove the algorithm number in algorithm captions?

How one can remove the algorithm number in the algorithm caption?
Solution: just add \renewcommand{\thealgorithm}{} after \begin {algorithm}

How one can remove the line number in the algorithm body?
Define a new command:
\def\NoNumber#1{{\def\alglinenumber##1{}\State #1}\addtocounter{ALG@line}{-1}}
and put the text in \NoNumber{}

Sample Latex Code
\def\NoNumber#1{{\def\alglinenumber##1{}\State #1}\addtocounter{ALG@line}{-1}}
\caption{Test Algorithm}\label{euclid}
\Procedure{Euclid}{$a,b$}\Comment{The g.c.d. of a and b}
\State $r\gets a\bmod b$
\While{$r\not=0$}\Comment{We have the answer if r is 0}
\State $a\gets b$
\State $b\gets r$
\State $r\gets a\bmod b$
\State \textbf{return} $b$\Comment{The gcd is b}
\NoNumber{This line will not have a number!}

Using Latexdiff For Marking Changes To Tex Documents

Pasted Graphic 2
Latexdiff is a Perl script, which compares two latex files and marks up the significant differences between them. Various options are available for visual markup using standard latex packages such as "color.sty".
Project webpage:
CTAN page:

An example output
Pasted Graphic 4