Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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 example.

\documentclass{article}

\usepackage{algorithm}
\usepackage{algorithmic}

\begin{document}

\begin{algorithm}[tb]
  \caption{My algorithm}
\begin{algorithmic}[1]
  \STATE{foo}
  \STATE{bar}
\end{algorithmic}
\end{algorithm}

\end{document}
share|improve this question
    
Have you found a solution to your problem? –  Mark Heckmann Aug 10 at 13:39
    
@MarkHeckmann Unfortunately, I have not. –  3lectrologos Aug 10 at 19:07

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.