I am using \boldsymbol{} and \textit{}, but they are not recognized. The document preamble is the following:
\documentclass{book}
\usepackage[spanish]{babel}
\selectlanguage{spanish}
\usepackage[utf8]{inputenc}
\setcounter{tocdepth}{4}
\setcounter{secnumdepth}{4}
\usepackage{parskip}
\usepackage{graphicx}
\usepackage{multirow}
\usepackage{amsmath, calc}
\usepackage[margin=1.5in]{geometryit is}
\usepackage{hyperref}
\usepackage{textcomp}
\usepackage{listings}
\usepackage[svgnames]{xcolor}
\usepackage{fontspec}
\usepackage{mathptmx}
\usepackage[nottoc,notlot,notlof]{tocbibind}
\usepackage[numbers]{natbib}
\begin{document}
For example, I'm using $\boldsymbol{x}_t$ and
\textit{vector de estados} within a paragraph.
\end{document}
Which lines concern the font or the commands that are not working? What should I change?



\usepackage[margin=1.5in]{geometryit is}... that's completely irrelevant to your question, but it remains a problem. – Werner Dec 13 '17 at 22:53\usepackage[margin=1.5in]{geometry}since there's no package calledgeometryit is. – Werner Dec 13 '17 at 22:57\textitis available by default and\boldsymbolis supplied byamsmath(even though\bmfrombmis a suggested improvement/alternative). – Werner Dec 13 '17 at 22:58\usepackage{amsmath, calc}, why is\boldsymbol{}not working? And if\textit{}is default, why is it not working either? – Alfie González Dec 13 '17 at 22:59\textitbeing disable/unavailable based on your code snippet. So the problem must be somewhere else... – Werner Dec 13 '17 at 23:16geometryit ismissing package). – Werner Dec 13 '17 at 23:19$\boldsymbol{x}_t$and\textit{vector de estados}within a paragraph. Is something wrong with that? – Alfie González Dec 13 '17 at 23:36\documentclassto\end{document}– David Carlisle Dec 14 '17 at 00:11mathptmxwhich does not have bold math fonts, so that explains\boldsymbol(try newtxtext,newtxmath instead – David Carlisle Dec 14 '17 at 00:16inputencandmathptmxand the bold symbols and italics appeared. – Alfie González Dec 14 '17 at 00:49