## LaTeX forum ⇒ Math & Science ⇒ \mathbf in sn-jnl

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Coco256
Posts: 1
Joined: Tue Oct 05, 2021 7:15 pm

### \mathbf in sn-jnl

Hi!

Latex error is:
\mathbf allowed only in math mode

\documentclass[sn-mathphys]{sn-jnl}% Math and Physical Sciences Reference Style

\usepackage{amssymb}
\usepackage{eufrak}
\usepackage{amsmath}
\usepackage{amsxtra}
\usepackage{graphicx}

\jyear{2021}%

\theoremstyle{thmstyleone}%
\newtheorem{theorem}{Theorem}%  meant for continuous numbers
%%\newtheorem{theorem}{Theorem}[section]% meant for sectionwise numbers
%% optional argument [theorem] produces theorem numbering sequence instead of independent numbers for Proposition
\newtheorem{proposition}[theorem]{Proposition}%
%%\newtheorem{proposition}{Proposition}% to get separate numbers for theorem and proposition etc.

\theoremstyle{thmstyletwo}%
\newtheorem{example}{Example}%
\newtheorem{remark}{Remark}%

\theoremstyle{thmstylethree}%
\newtheorem{definition}{Definition}%

\raggedbottom

\begin{document}

\title[Article]{Article}

\author*[1,2]{\fnm{First} \sur{D. Marc}}\email{...............}

\abstract{......................}

\keywords{Uniqueness}

\maketitle

\section{Introduction}

Let us denote
$$\xi = |\mathbf{G} - \mathbf{\overline{G}}| + |\mathbf{C} - \overline{\mathbf{C}}| + |\mathbf{H} - \overline{\mathbf{H}}| + |\dot{\mathbf{G}} - \dot{\overline{\mathbf{G}}}| + |\dot{\mathbf{C}} - \dot{\overline{\mathbf{C}}}| + |\dot{\mathbf{H}} - \dot{\overline{\mathbf{H}}}| + |T -\overline{T}|,$$
\end{document}

Thank you!
Last edited by Stefan Kottwitz on Wed Oct 06, 2021 10:37 am, edited 1 time in total.
Reason: code marked