5

when I use the following document class i got the error "old font command '\rm' ". any suggestion how to solve this.

\documentclass[12pt,a4paper,chapterprefix=true,
               twoside,openright,listof=totoc, 
               BCOR7.5mm]{scrreprt}
Johannes_B
  • 24,235
  • 10
  • 93
  • 248
  • 2
    Don't use \rm but \rmfamily. Or type h at the error then you will get a message in the terminal and the log what you can also do. – Ulrike Fischer Oct 07 '17 at 21:59
  • see https://tex.stackexchange.com/questions/151897/always-textrm-never-rm-a-counterexample – Zarko Oct 07 '17 at 22:00
  • 2
    This command has been obsolete for more than 20 years! You should use \rmfamily for a switch ot \textrm{...} for a delimited scope. – Bernard Oct 07 '17 at 22:00
  • 2
    OFF-Topic: with scrreprt the right option is bcor=7.5mm ... – Mensch Oct 07 '17 at 22:02
  • If you don't care about using commands that are deprecated for over 20 years or using packages with those old commands, this is the way to go: enabledeprecatedfontcommands – Johannes_B Oct 08 '17 at 06:39
  • 1
    All questions that could be a duplicate have quite pointless answers that address the reason and provide fixes, but none explains the error message and how to reactivate old commands. Well, some do, but not in the expected way. – Johannes_B Oct 08 '17 at 06:42
  • 1
    @Johannes_B Old commands should never be used in a document. In case the problem stems from a poorly written package, workarounds can be devised, but in my opinion reactivating the deprecated commands is out of the question or the very last resource. – egreg Oct 08 '17 at 08:33
  • @egreg But we have the memoir equivalent somewhere in an answer. – Johannes_B Oct 08 '17 at 08:34
  • 1
    @Johannes_B correct, but egregs comment also applies to memoir. Users should be forced to give up those old and bad habits. I regularly see users make \newtheorem{example} [theorem] {Example} in articles and start every example environment by \rm to make it upright. They generally should be forced to learn how to thi gs correctly – daleif Oct 08 '17 at 09:48
  • 1
    @daleif i don't think we can force people to learn anything by omitting information. We can certainly not help many by adding answers to individuals without eliminating bad souces #wikibooks but this completely off-topic here. – Johannes_B Oct 08 '17 at 11:49
  • 2
    @Johannes_B sure, but it us important to note to users that using that enable feature us not a good idea, otherwise those enable answers will be the predominant answers in searches for those problems. – daleif Oct 08 '17 at 11:51
  • @egreg if you are unhappy about people using this command, you should talk to mathscinet. I personally have not typed "\rm" in a latex file once, yet virtually all my articles implicitly contain it because mathscinet references use it. Also I don't see the point of being condescending about people using "old commands": commands that stop being commands are a problem of language design, not a user error. – Stefan Witzel Jan 31 '20 at 13:03
  • @StefanWitzel MathSciNet is a very particular case, because they used (or still use) AMS-TeX. – egreg Jan 31 '20 at 13:05
  • @egreg maybe particular, but definitely ubiquitous. I suppose you'd say "get your bibtex data from a source that uses LaTeX"? – Stefan Witzel Feb 03 '20 at 08:37

0 Answers0