I am trying to load newtxmath and newtxtext in my work and it is bringing \DeclareRobustCommand{\sustyle}{% error.
I removed amssymb and loaded only newtxmath and newtxtext, it brought \Bbbk is already defined.
I then added \let\Bbbk\relax, it didn't show any effect, it still showed \Bbbk is already defined no matter the position I put \let\Bbbk\relax.
This is my code
\let\Bbbk\relax
\usepackage{newtxtext}
\usepackage{textcomp}
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{newtxmath}
\let\openbox\undefined
It is really giving me headache as I have tried every possible combination.
This is my full code
\documentclass[a4paper, 11pt, openany, oneside]{book}
\usepackage{newtxtext}
\usepackage{textcomp}
\usepackage{float}
\usepackage{amsmath}
\usepackage{amsthm}
\let\Bbbk\relax
\usepackage{newtxmath}
\let\openbox\undefined
\usepackage[urlcolor=blue, colorlinks=true, linkcolor=blue, citecolor=red]{hyperref}
\usepackage[dvipsnames]{xcolor}
\usepackage{tikz}
\usetikzlibrary{patterns}
\usepackage{venndiagram}
\usepackage{fancyhdr}
\usepackage{authblk}
\usepackage{phfthm}
\usepackage[inline]{enumitem}
\usepackage{empheq}
\usepackage{multicol}
\usepackage[Glenn]{fncychap}
\usepackage{currency}
\usepackage{tasks}
\usepackage[urlcolor=blue, colorlinks=true, linkcolor=blue, citecolor=red]{hyperref}
\usepackage{longtable}
\usepackage{caption}
\DeclareMathAlphabet{\mathcal}{OMS}{cmsy}{m}{n}
\usepackage{tabstackengine}
\usepackage{nicematrix}
\makeatletter
\newcommand*{\rom}[1]{\expandafter\@slowromancap\romannumeral #1@}
\makeatother
\title{Title}
\author{Author}
\theoremstyle{definition}
\newtheorem{ex}{Example}
\theoremstyle{definition}
\newtheorem*{sol}{Solution}
\newcommand{\lra}{\Longrightarrow}
\newcommand{\llra}{\Longleftrightarrow}
\newcommand{\call}{\mathcal}
\newcommand{\inl}{\textup}
\def\contentsname{\textbf{CONTENTS}}
\newcommand{\sbs}{\subset}
\begin{document}
Body
\end{document}
This is the full error code
! LaTeX Error: Command `\Bbbk' already defined.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.261 ...ol{\Bbbk} {\mathord}{AMSb}{"7C}
and
! LaTeX Error: Option clash for package textcomp.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.93 \DeclareRobustCommand
{\sustyle}{%
?

\documentclassand containing\begin{document}...\end{document}) and ideally also your.logfile, so we can check your package versions. – moewe Mar 26 '22 at 16:50textcomp, which you no longer need to load. Its commands have been merged into the kernel. – Davislor Mar 26 '22 at 23:22