2

Instead of the "Algorithm" which gets automatically added when used with \usepackage{algorithm}, I want it to display as "Pseudocode", How can I do this? : this

Like the "Pseudocode" written in this: enter image description here

The latex code for Fig 1 is as follows:

\documentclass[a4paper]{article}

\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usepackage{algorithm}
\usepackage[noend]{algpseudocode}

\begin{document}

\begin{algorithm}
\caption{Euclid’s algorithm}\label{alg:euclid}
\begin{algorithmic}[1]
\Statex Input: Something
\end{algorithmic}
\end{algorithm}

\end{document}
  • Welcome to TeX.SX! Could you please make your example compilable? – TeXnician May 6 '18 at 8:12
  • Please check now @TeXnician – Vasu Mistry May 6 '18 at 8:41
1

This works:

\documentclass[a4paper]{article}

\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usepackage{algorithm}
\usepackage[noend]{algpseudocode}
\floatname{algorithm}{Pseudocode}

\begin{document}

\setcounter{algorithm}{2}
\begin{algorithm}
\caption{Euclid’s algorithm}\label{alg:euclid}
\begin{algorithmic}[1]
\Statex Input: Something
\end{algorithmic}
\end{algorithm}

\end{document} 

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.