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.
\textbf
is meant for text mode, not for content in math mode. You can try{\boldmath $M_s$}
$\mathbf{M_s}$
for upright M or\boldmath $M_s$\unboldmath