I am using the scrreprt documentclass and I keep getting the warning:
Usage of deprecated font command `\rm'!(scrreprt) You should note, that in 1994 font command `\rm' has(scrreprt) been defined for compatiblitiy to Script 2.0 only.
Using a MWE, it comes out that the warning is generated from the commands \tableofcontents{} , \listoftables{} and \listoffigures{}
While digging a little bit further, my scrreprt.cls already contains \scr@DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm}
Does any one knows how to get rid of this warning?
Update: Here is a the MWE: Remark: I just found out that using the package fncychap is causing the warning. I use it to generate decoration rectangles at the beginning of chapters:
% !TeX spellcheck = en_US
\documentclass[11pt,headings=small,fleqn]{scrreprt} % highest level is chapter
\usepackage[Glenn]{fncychap} %To add a rectangle at the beginning of each chapter
\usepackage[greek,english]{babel} % for English text only
\begin{document}
\pagenumbering{roman} \setcounter{page}{1}
%%-----------Table of Contents------------------
\renewcommand{\contentsname}{Table of Contents}
\tableofcontents{}
\addcontentsline{toc}{section}{Table of Contents}
%%------------List of Tables----------------------
\listoftables{}
\addcontentsline{toc}{section}{List of Tables}
%%------------List of Figures----------------------
\listoffigures{}
\addcontentsline{toc}{section}{List of Figures}
%maintain Roman numerals on the previous page
\clearpage%set pagination to Arabic
\pagenumbering{arabic}
\chapter{Chapter1}
\end{document}
\rm': I'm not quite sure what you are looking for, really. – Joseph Wright Sep 28 '15 at 07:43fncychap(which provides the ugliest chapter styles I've ever seen) uses those obsolete commands. – egreg Sep 28 '15 at 08:19fncychapis the one using those commands. Just for the defense of the package, saying that it provides the ugliest chapter styles is a personal opinion. – user2536125 Sep 28 '15 at 08:27