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

Postby Coco256 » Tue Oct 05, 2021 7:29 pm

Hi!

Please help me: the Springer latex template is not working when I compile the file.

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{...............}

\affil*[1]{\orgdiv{Institute of Mathematics}, \orgname{ Academy}, \orgaddress{\street{no 598}, \city{Valencia}, \postcode{00000000}, \country{Spain}}}

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

\keywords{Uniqueness}

\maketitle

\section{Introduction}

Let us denote
\begin{equation}
\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{equation}
\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

Recommended reading 2021:

LaTeXguide.org • LaTeX-Cookbook.net
LaTeX Beginner's Guide LaTeX Cookbook

Return to “Math & Science”

Who is online

Users browsing this forum: No registered users and 5 guests