Here’s an example of an equation I’m trying to align (I have lots throughout my 50-page NT paper):
$$\frac{5x^2}{4}+\frac{17x^4}{16}+\frac{65x^6}{64}+\frac{257x^8}{256}+\ldots \hspace{9.5cm}$$
I want to be able to get rid of the hspace.
It’d be really frustrating if all LaTeX has is this hspace thingy plus manual trial-and-error adjustments. And no, I don’t want to default left-alignment for all equations across the document, no.
Here’s my settings:
\documentclass[12pt]{article}
\usepackage{amsmath}
\usepackage{setspace}
\usepackage{amssymb}
\usepackage{indentfirst}
\usepackage[superscript]{cite}
Here’s the codes that are creating the centered formatting:
\[\frac{5x^2}{4}+\frac{17x^4}{16}+\frac{65x^6}{64}+\frac{257x^8}{256}+\ldots \]
\begin{flalign*}
\frac{5x^2}{4}+\frac{17x^4}{16}+\frac{65x^6}{64}+\frac{257x^8}{256}+\ldots
\end{flalign*}
I'm editing this question, so @egreg sees my code, which is not working to create equation numbering:
\documentclass[12pt]{article}
\usepackage{amsmath}
\usepackage{nccmath}
\usepackage{setspace}
\usepackage{amssymb}
\usepackage{indentfirst}
\usepackage[superscript]{cite}
\usepackage{geometry}
\geometry{top=15mm,left=15mm}
\newenvironment{eqleft*}
{\begin{equation*}}
{\hspace{10000pt minus 1fil}\end{equation*}
\ignorespacesafterend}
\begin{document}
\begin{eqleft*}
\frac{5x^2}{4}+\frac{17x^4}{16}+\frac{65x^6}{64}+\frac{257x^8}{256}+\dotsb
\end{eqleft*}
\begin{ceqn}
\begin{align} \label{eq:eq:k_div_n_closed}
A=\sum_{j=1}^{k}\tan{\frac{2\pi nj}{k}}
\end{align}
\end{ceqn}\\
\indent The above summation can be rewritten as a closed-form as follows:
\end{document}




equation, of course, but this should not be a problem. Please, avoid comments in all caps or boldface. – egreg Aug 17 '18 at 17:53.logto see if there is a version issue. If you are not seeing them in your 'real' document, can you try to start from the demo and 'build up' until you can pin down the problematic part, so a suggestion can be made. – Joseph Wright Aug 17 '18 at 19:31eqleftnumbers the equation, whereaseqleft*doesn't. If you useeqleft*it's obvious you don't get a number. – egreg Aug 17 '18 at 20:09