Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
generalites:erreurs:command_already_defined [2020/12/12 17:19] – Guillemets en chevrons dbitouze | generalites:erreurs:command_already_defined [2021/01/12 23:29] (Version actuelle) – Suppression après fusion avec "generalites/erreurs/c/command_already_defined". jejust | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | ====== Package reports « command already defined » ====== | ||
- | |||
- | |||
- | You load a pair of packages, and the second reports that one of the | ||
- | commands it defines is already present. | ||
- | [[ctanpkg> | ||
- | (and '' | ||
- | |||
- | <code latex> | ||
- | ... | ||
- | \usepackage{txfonts} | ||
- | \usepackage{amsmath} | ||
- | </ | ||
- | produces a string of error messages of the form: | ||
- | |||
- | <code latex> | ||
- | ! LaTeX Error: Command \iint already defined. | ||
- | Or name \end... illegal, see p.192 of the manual. | ||
- | </ | ||
- | As a general rule, things that [[ctanpkg> | ||
- | well; however, there is a good case for using the [[ctanpkg> | ||
- | version of '' | ||
- | double integral symbol that doesn' | ||
- | [[ctanpkg> | ||
- | symbol packages, every one of which defines the same symbol, you are | ||
- | likely to experience the problem in a big way ('' | ||
- | victim). | ||
- | |||
- | There are similar cases where one package redefines another' | ||
- | but no error occurs because the redefining package doesn' | ||
- | '' | ||
- | because you assume the definition given by the first package. | ||
- | [[ctanpkg> | ||
- | [[ctanpkg> | ||
- | |||
- | You may deal with the problem by saving and restoring the command. | ||
- | Macro programmers may care to do this for themselves; for the rest of | ||
- | us, there' | ||
- | |||
- | <code latex> | ||
- | \usepackage{savesym} | ||
- | \usepackage{amsmath} | ||
- | \savesymbol{iint} | ||
- | \usepackage{txfonts} | ||
- | \restoresymbol{TXF}{iint} | ||
- | </ | ||
- | does the job; restoring the [[ctanpkg> | ||
- | and making the [[ctanpkg> | ||
- | '' | ||
- | |||
- | Documentation of [[ctanpkg> | ||
- | commands are '' | ||
- | |||
- | |||
- | ----- | ||
- | |||
- | //Source:// [[faquk> | ||
- | |||
- | {{htmlmetatags> | ||
- | metatag-og: | ||
- | metatag-og: | ||
- | }} | ||