I'm writing some math(s) stuff and wanted the equations to be on the left side of the document using the array environment inside equation*, but for some reason it doesn't seem to work. Here is the code:
\usepackage{amsmath}
\begin{document}
$t_n(x)$ is a function that truncates $x$ to the $n$-th digit
\begin{equation*}\begin{array}{l}
t_n (x) \equiv \left\lfloor \frac{x}{10^n} \right\rfloor 10^n % This should be on the left
\end{array}\end{equation*}
\end{document}
My other packages are relsize, amsfonts and utf8 inputenc (maybe they are interfering or something like that?) and I'm using Overleaf as my online compiler.
Thanks, M.T.
lin array: each row of the array will be left-alignedw.r.t. the array, but rhe array itself will centred. To get what you want, either use thefleqoption of your document class (all equations will be aligned on the left), or, for a punctual usage, use thefleqn*environment, fromamsmath. – Bernard Sep 05 '16 at 01:21\documentclass[fleq]{article}, but the following error appeard:LaTeX Warning: Unused global option(s): [fleq].and thefleqn*environment is undefined (yes, I'm usingamsmath) – Nada F. Sep 05 '16 at 01:36[fleqn]. Sorry for not having checked. For the environmentsfleqn(*), I'm surprised: are you sure amsmath was loaded when you used the environment? – Bernard Sep 05 '16 at 08:28