23

Command \Bbbk' already defined. ...ol{\Bbbk} {\mathord}{AMSb}{"7C} when I try to run the mnras_template.tex

It worked at first and then is updated some of the packages and now it will not run without commenting out some of the packages.

5
  • 2
    Welcome to TeX.SE.. Can you provide a MWE of your code, i.e., from \documentclass to \end{document} in a workable format...
    – MadyYuvi
    Sep 28, 2020 at 5:11
  • 1
    you have answered your own question: you have two packages defining this command, the easiest way to find them (and fix the problem) is removing or commenting out one of the packages. It appears you have done that already and without seeing the code no one can really help further. Sep 28, 2020 at 7:25
  • I am trying to format a paper for the Royal Astronomical Society. They direct me to a template mnras_template.tex that may be found on ctan.org/tex-archive/macros/latex/contrib/mnras. Sep 28, 2020 at 15:05
  • The full code for mnras_template.tex is too large to put in this window. Can I `Stop' a copy of Bbbk before the error is generated? Sep 28, 2020 at 15:15
  • Since I work with the MNRAS template too, I tried to include the MWE here but it was declined by 2/3 editors, who knows why tex.stackexchange.com/review/suggested-edits/202209 For MWE, see my answer below, then. Nov 30, 2020 at 17:10

2 Answers 2

24

The issue is in their template file (the MWE is below because when I tried to include the MWE in the question, my edit was rejected).

My solution:

Comment out or better delete the line saying \usepackage{amssymb} because it clashed with the updated version of the MNRAS package.

Solution proposed by the MNRAS publishers:

Move the line

\usepackage{newtxtext,newtxmath}

to the end of the preamble. This works with or without loading amssymb separately. Hopefully, a new version of the template on CTAN will reflect this change as well.

MWE:

\documentclass[fleqn,usenatbib]{mnras}

% MNRAS is set in Times font. If you don't have this installed (most LaTeX
% installations will be fine) or prefer the old Computer Modern fonts, comment
% out the following line
\usepackage{newtxtext,newtxmath}
% Depending on your LaTeX fonts installation, you might get better results with one of these:
% \usepackage{mathptmx}
% \usepackage{txfonts}

% Use vector fonts, so it zooms properly in on-screen viewing software
% Don't change these lines unless you know what you are doing
\usepackage[T1]{fontenc}
% \usepackage[utf8]{inputenc}

% Allow "Thomas van Noord" and "Simon de Laguarde" and alike to be sorted by "N" and "L" etc. in the bibliography.
% Write the name in the bibliography as "\VAN{Noord}{Van}{van} Noord, Thomas"
\DeclareRobustCommand{\VAN}[3]{#2}
\let\VANthebibliography\thebibliography
\def\thebibliography{\DeclareRobustCommand{\VAN}[3]{##3}\VANthebibliography}


%%%%% AUTHORS - PLACE YOUR OWN PACKAGES HERE %%%%%

% Only include extra packages if you really need them. Common packages are:
\usepackage{graphicx}   % Including figure files
\usepackage{amsmath}    % Advanced maths commands
\usepackage{amssymb}    % Extra maths symbols  <----- DELETE THIS LINE

\title[Short title, max. 45 characters]{MNRAS \LaTeXe\ template -- title goes here}

\author[authors running]{
First Author$^{1}$\thanks{E-mail: email}
\\
% List of institutions
$^{1}$Institution
}

% These dates will be filled out by the publisher
\date{Accepted XXX. Received YYY; in original form ZZZ}

% Enter the current year, for the copyright statements etc.
\pubyear{2020}

% Don't change these lines
\begin{document}
\label{firstpage}
\pagerange{\pageref{firstpage}--\pageref{lastpage}}
\maketitle

\begin{abstract}
Abstract...
\end{abstract}

\begin{keywords}
keyword1 -- keyword2 -- keyword3
\end{keywords}

\section{Introduction}

Text...


\bibliographystyle{mnras}
\bibliography{example} % if your bibtex file is called example.bib

% Don't change these lines
\bsp    % typesetting comment
\label{lastpage}
\end{document}
3
  • Both solutions work but some symbols (e.g. \ltimes) have changed appearance w.r.t. what they looked like before the error first occurred.
    – dremodaris
    Feb 16, 2021 at 14:38
  • I'm trying to understand exactly what happened here. MNRAS changed the formatting or something in these few months at the end of 2020?
    – Swike
    Mar 3, 2021 at 22:43
  • MNRAS changed a lot of things lately, and dealing with their current publishing office was by far the worst experience I had among the journals ever Jun 3, 2021 at 15:20
13

As both newtxmath and amssymb pkgs define \Bbbk, you simply need to add \let\Bbbk\relax in between them to disable the preceding definition. Say you want to keep the definition in newtxmath, then the following should do.

\usepackage{amssymb}
\let\Bbbk\relax
\usepackage{newtxmath}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.