# Mid-line “And” and “Or” in Display Equations

For display-style equations that contains a list of equations, I found it tedious to write `\quad \text{and} \quad`

before the last item in the list. Instead, I defined a `\midand`

macro.

**Definition**

### Examples

Code | Output |
---|---|

x \geq -1 \midand x \leq 1 |
$$x \geq -1 \quad \text{and} \quad x \leq 1$$ |

x \leq -1, \quad x = 0, \midor x \geq 1 |
$$x \leq -1, \quad x = 0, \quad \text{or} \quad x \geq 1$$ |