<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Dear Roussanka,<div class=""><br class=""></div><div class="">It is a general problem that publishers insist on their own style files, while authors want to use their personal macros. It depends very much on the publisher what they allow to change.</div><div class=""><br class=""></div><div class="">To solve your special problem just write</div><div class="">\<font color="#ff4013" class="">re</font>newcommand{\R}{\mathbb{R}}</div><div class="">instead of </div><div class="">\newcommand{\R}{\mathbb{R}}</div><div class="">This will overwrite the previous definition.</div><div class=""><br class=""></div><div class="">Sometimes, it may be advisable to keep the original meaning before redefining it. This can be done by</div><div class="">\let\Rorig=\R</div><div class="">\renewcommand\R{…}</div><div class="">Then the “old” \R is still available under the name \Rorig.</div><div class=""><br class=""></div><div class="">The command \R is apparently introduced by the package “program” included in the publisher's cls file, see the README at</div><div class=""><a href="https://ctan.org/pkg/program?lang=en" class="">https://ctan.org/pkg/program?lang=en</a></div><div class="">If you don’t need program documentation in your article you could comment out the</div><div class=""><div class="">\usepackage{program}%</div></div><div class="">from the sn-jnl.cls file and get rid of the predefined \R. I, personally, use the \R command just in your sense.</div><div class=""><br class=""></div><div class="">Best regards,</div><div class="">Manfred</div><div class=""><div><br class=""><blockquote type="cite" class=""><div class="">On 19. Sep 2022, at 03:50, Roussanka Loukanova <<a href="mailto:rl.stpuu@gmail.com" class="">rl.stpuu@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">Dear All,<br class=""><br class="">I have a question that is off the list, but I hope to get it resolved<br class="">with your help.<br class=""><br class="">I have to use Springer's style for journals  <sn-jnl.cls> from the<br class="">Springer package:<br class="">sn-article-template<br class="">downloadable at:<br class=""><a href="https://www.springernature.com/gp/authors/campaigns/latex-author-support#c17590862" class="">https://www.springernature.com/gp/authors/campaigns/latex-author-support#c17590862</a><br class=""><br class="">I have my own style file of defined \newcommand{...}{...} and<br class="">\DeclareMathOperator{...}{...}.<br class=""><br class="">Typesetting (by pdflatex) .tex files that use Springer's cluster<br class="">\documentclass[sn-mathphys]{sn-jnl}<br class="">produces errors adding my own definitions in .tex files, by:<br class=""> \usepackage{exadefs} / or /imput{exdefs.sty}<br class=""><br class="">I get the error even if I add a single definition<br class="">\newcommand{\R}{\mathbb{R}}<br class="">in the preamble of Springer's  template file  <sn-article.tex>.<br class=""> I get the following error:<br class=""><br class="">==<br class="">ERROR: LaTeX Error: Command \R already defined.<br class=""><br class="">--- TeX said ---<br class="">               Or name \end... illegal, see p.192 of the manual.<br class="">==<br class=""><br class="">I would appreciate help.<br class=""><br class="">Best Regards,<br class="">Roussanka<br class="">----------- Please Consult the Following Before Posting -----------<br class="">TeX FAQ: https://www.tug.org/mactex/faq/index.html<br class="">List Reminders and Etiquette: https://sites.esm.psu.edu/~gray/TeX/<br class="">List Archives: http://dir.gmane.org/gmane.comp.tex.macosx<br class="">                https://email.esm.psu.edu/pipermail/macosx-tex/<br class="">TeX on Mac OS X Website: https://www.tug.org/mactex/index.html<br class="">List Info: https://email.esm.psu.edu/mailman/listinfo/macosx-tex<br class=""></div></div></blockquote></div><br class=""></div></body></html>