Here is my code:
\documentclass[11pt]{llncs}
\usepackage[utf8]{inputenc}
\usepackage{parskip}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{dsfont}
\usepackage{float}
\usepackage{multicol}
\usepackage{fixltx2e}
\usepackage{multicol}
\newcommand\blfootnote[1]{%
\begingroup
\renewcommand\thefootnote{}\footnote{#1}%
\addtocounter{footnote}{-1}%
\endgroup
}
\usepackage[T1]{fontenc}
\usepackage{comment}
\usepackage{amsmath} %
\setcounter{MaxMatrixCols}{20}
\usepackage[margin=1in]{geometry}
\usepackage[noend, boxruled, linesnumbered]{algorithm2e}
\usepackage{xcolor}
\usepackage{setspace}
\usepackage{hyperref}
\definecolor{bl}{rgb}{0.0,0.2,0.6}
\definecolor{dark-red}{rgb}{0.4,0.15,0.15}
\definecolor{dark-blue}{rgb}{0.15,0.15,0.4}
\definecolor{medium-blue}{rgb}{0,0,0.5}
\usepackage{sectsty}
\hypersetup{
colorlinks, linkcolor={dark-red},
citecolor={dark-blue}, urlcolor={medium-blue}
}
\usepackage{graphicx}
\usepackage[compact]{titlesec}
\newtheorem{observation}{\textsc{Observation}}
%%% Start of the document
\begin{document}
\begin{algorithm}[H]
\label{alg:seed}
\SetAlgoLined
\SetKwInOut{Input}{input}
\Input{\textsc{Graph} $G$}
line number outside the box\;
another line\;
a third line\;
what is going on?\;
\caption{\textsc{Caption}}
\end{algorithm}
\end{document}
And here is the output:
Which command sends line numbers outside of the box?
Best Answer
You can use
algorithm2e
andparskip
in the same document if you loadalgorithm2e
first:Code: