I have something like
What's the best way to do it? I tried this method but it doesn't work.
\begin{array}{r}[[0.86455156], \\ [-0.82104237], \\ [4.12186079]]\end{array}
Getting,
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It only takes a minute to sign up.
Sign up to join this communityI have something like
What's the best way to do it? I tried this method but it doesn't work.
\begin{array}{r}[[0.86455156], \\ [-0.82104237], \\ [4.12186079]]\end{array}
Getting,
Something like this?
This solution works in both text mode and math mode.
\documentclass{article} % or some other suitable document class
\usepackage{array}
\begin{document}
\begin{tabular}{@{} >{\ttfamily}r @{}}
[[ 0.86455156], \\ \relax
[-0.82104237], \\ \relax
[ 4.12186079]]
\end{tabular}
\end{document}
\\{}