In my Latex source file, I put \everymath{\displaystyle} in the preamble.
So every formula within $...$ will in displaymath style. In this circumstance, how to get an inline math style?
Asked
Active
Viewed 8,031 times
2
Knt
- 166
$...$will still be typeset as inline math,\displaystyleonly changes the way some parts of the math code are displayed, e.g. subscripts below operators instead of the normal subscript positioning. You can undo your global setting for a certain inline math by using$\textstyle ...$. But you probably shouldn't use your global setting in the first place; use\[ ... \]or$\displaystyle ...$where appropriate. – siracusa Jul 07 '19 at 05:07\displaystyleand\textstyle. – Mico Jul 07 '19 at 06:47\everymath{\displaystyle}as it makes inline math unusable for its intended purpose but if you do do that you can use\displaystyleat the start of the expression to get back to normal https://tex.stackexchange.com/questions/323367/i-have-a-question-about-the-displaystyle-command/323375#323375 – David Carlisle Jul 07 '19 at 07:02\textstyle" – David Carlisle Jul 07 '19 at 19:34\textstylewould work, if you have some code that does not work as you expect then it is always best to include a small complete document that reproduces the problem. However as I say in this case it is best simply not to use\everymath{\displaystyle}or only use it in a very restricted local group – David Carlisle Jul 08 '19 at 06:46