I would like to display all inline maths expressions in displaystyle, but without typing \displaystyle{...} everytime I insert a math expression into a block of text. How can we do that at the preamble level?
I would also need a command to temporarily turn off the automatic displaystyle in some cases, if a math expression is a bit to big for the text.
Here's a MWE to try:
\documentclass[11pt,letterpaper,twoside]{book}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage[total={6in,10in},left=1.5in,top=0.5in,includehead,includefoot]{geometry}
\usepackage{microtype}
\usepackage[nodisplayskipstretch]{setspace}
\setstretch{1.1}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{mathtools}
\usepackage{tensor}
\begin{document}
This is a simple test; $\sqrt{y(x)} = x_1^3 - a , x^2$ or $\displaystyle{\sqrt{y(x)} = x_1^3 - a , x^2}$. Or again this is a test: $c^{-2}$ is of order $\displaystyle{c^{-2}}$. This is a tensor: $\tensor{T}{{\mu \nu}^{\lambda}}$ or $\displaystyle{\tensor{T}{{\mu \nu}^{\lambda}}}$.
\end{document}

\displaystyledoes not take an argument, so you can already dispense with the braces{ }. If you really wanted that,\everymath{\displaystyle}in the preamble. – Steven B. Segletes Feb 18 '21 at 15:22$\displaystyle...$not$\displaystyle{....}otherwise white space will be wrong for inline math. This is a duplicate though see https://tex.stackexchange.com/a/323375/1090 – David Carlisle Feb 18 '21 at 17:42