I am a bit new to LaTeX etc. so please excuse me if this is a beginner question.
I would like to cite references within my document in the following style:
According to Powell et al. (2007)...
This is the best way to do it (Powell et al., 2007)
And so forth. To the best of my understanding, I want to use authoryear style to achieve this. The problem I'm having is getting the first result with the year in parentheses.
Here is my code:
\documentclass[12pt]{article}
\usepackage{lmodern}
\usepackage[english]{babel}
\usepackage{csquotes}
\usepackage{filecontents}
\addbibresource{\jobname.bib}
\usepackage[
backend=biber,
style=authoryear,
maxcitenames=2,
bibencoding=latin1
]
{biblatex}
\begin{filecontents}{\jobname.bib}
@article{powell2007fastfood,
title={The availability of fast-food and full-service restaurants in
the United States: associations with neighborhood characteristics},
author={Powell, Lisa M and Chaloupka, Frank J and Bao, Yanjun},
journal={American journal of preventive medicine},
volume={33},
number={4},
pages={S240--S245},
year={2007},
publisher={Elsevier}
}
\end{filecontents}
\begin{document}
Here you see \cite{powell2007fastfood}
Here you can also see \parencite{powell2007fastfood}
Also, you have \textcite{powell2007fastfood}
\printbibliography
\end{document}
So the first two, \cite and \parencite, work. They produce the desired results of:
Here you see Powell et al. 2007
Here you can also see (Powell et al. 2007)
For \textcite, I have to manually type it in (using Texmaker provides an autocomplete or autosuggestion option) and then once I have typed the command, I also have to manually type the citation ID. Then when I compile, it gives me the error message "undefined control sequence." It's like the \textcite command is simply not recognized at all. What could cause this?
As an aside, I would prefer a style that put a comma between the author/et al. and year, so
Powell et al., 2007
But I am also trying to explore different citation styles to get what I want.

\textciteshould work. You'll have to show us a complete example with the problem. Take a look at minimal working example with bibliography (MWEB) and minimal working example (MWE) to have an idea on how to prepare one. – gusbrs Feb 15 '19 at 21:42\citet(t at the ending of the command!) and\citepare defined withnatbibTo be able to use them add optionnatbibtobiblatex. – Mensch Feb 15 '19 at 21:54natbiboption. – Bkk Feb 16 '19 at 17:46\textcite. – moewe Feb 16 '19 at 17:51\textciteit still does not offer me a list of references to choose from like the other commands. But at least it is compiling as desired now. – Bkk Feb 16 '19 at 18:35