I am listing a bunch of itens that are left-aligned (actually, I am using the \hspace
command); then, for one of them, I need to do a definition by cases, so i'm using the equation
mode and, inside it, the case
mode. My problem is: when I do it like that this item comes centered, and I can't seem to find a way to put it left-align. Any suggestions?
EDIT: I'd like to have this implemented in a local-way; that is, generically equations would still be centered but in this particular case I'd like to be able to have them left-aligned...
MWE
\documentclass[11pt,a4paper]{book}
\usepackage[portuguese]{babel}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{indentfirst}
\begin{document}
\hspace{1.5cm} $ x = something....$
\hspace{1.5cm} $ y = something...$
\begin{equation*}
z =
\begin{cases}
1 & \text{if } x > 0 \\
-1 & \text{if } x \leq 0.
\end{cases}
\end{equation*}
\end{document}
\end{cases}
?equation
environment to usecases
. Just do thez
equation like the others:\hspace{1.5cm} $ z = \begin{cases}
, etc. However, I would recommend some version of the itemizeenvironment
(as in the answer by Peter Grill), rather than\hspace
, to get the indentation.itemize
because i don't want any numbering/ bullet point/ things like that - but i am sure there's a way to avoid this, i'll look into it.