2

I used the ‎\documentclass[11pt,twoside,fleqn]{book}‎ for set formulas left, but I want to put formulas to center in some cases like original type without [fleqn]. What command do I use? %%%%%%%%%%%%%% ‎

\documentclass[11pt,twoside,fleqn]{book}‎‎
‎‎\usepackage{amsmath,amsfonts,amssymb,amsthm}‎
\begin{document}
‎\begin{align*}‎‎%This is in left 
‎y=f(x)
‎\end{align*}‎‎
\begin{align*}‎‎%This should be at the center
\centering
‎y=g(x)
‎\end{align*}‎
\end{document}
6

You can use the package nccmath and the environment ceqn to get centered equations.

\begin{ceqn}\begin{align*} ‎y=g(x) ‎\end{align*}‎\end{ceqn}
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.