I want to right-align everything, but it does not seem to work inline:
\documentclass[12pt]{article}
\usepackage{a4wide, fancyhdr}
\usepackage[ngerman]{babel}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\usepackage{epstopdf}
\usepackage{mathtools}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{url}
\usepackage[parfill]{parskip}
\usepackage{enumerate}
\usepackage{framed}
\usepackage{xcolor}
\begin{document}
Matrix $A=\left(\begin{smallmatrix}[rr] 2 & -2\\ -1 & 4 \\ 0 & 6\end{smallmatrix}\right)$
or this $\vec{a}=\left(\begin{smallmatrix}[r] x \\ -3 \\ 5\end{smallmatrix}\right)$ ...text...
\end{document}
Any thoughts? This does not help...
mathtools, if you are you are not asking it to be right aligned. As mentioned, provide a full minimal exmaple not just a sniplet – daleif Oct 18 '18 at 11:27mathtoolsexplictly, you are not using it.... simple as that – daleif Oct 18 '18 at 11:28a4wideis not a recommended package. – daleif Oct 18 '18 at 11:29