I have a problem with scrarticle (and its option parskip=half
), fontenc and algorithm2e:
\documentclass[parskip=half]{scrartcl}
\usepackage{fontenc}
\usepackage[boxed]{algorithm2e}
\begin{document}
\begin{algorithm}
\KwData{test}
\end{algorithm}
\end{document}
If you compile this document (with pdflatex), then there is no padding between the text and the frame of the algorithm. If you remove parskip=half
or \usepackage{fontenc}
(or both), then everything is fine.
What is happening here? Did I do anything wrong? How to fix this problem?
fontenc
without option(s).T1
.fontenc
afteralgorithm2e
works too.\usepackage{fontenc}
by\selectfont
and you will observe the same...