I'm trying to write the following but in bold: $M_s$ so that the "s" becomes next to "M" but low and i have the following code:
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{tikz}
\title{Fundamentals of informatics A4}
\author{some name}
\date{January 2018}
\setlength{\parindent}{0pt}
\begin{document}
% some text
into a new Turing machine \textbf{$M_s$} with the following behavior:
%some more text
\end{document}
The problem is that the M_s wouldn't appear bold no matter what i try
edit1: \textbf{} works perfectly with just text but when using the dollar signs, it doesn't.
Best Answer
Use the
bm
package and type$\bm{M_s}$
to get what you want. The command\textbf
is for ordinary text, not for mathematical text.