I am making a file in which there are many lines. In every line there is a number. Can I make those numbers decimal alignment?
I am using Latex.
Thanks.
My codes are:
\documentclass[]{article}
\makeatletter
\newcommand\cdotfill{%
\leavevmode\cleaders\hb@xt@.44em{\hss$\cdot$\hss}\hfill\kern\z@
}
\makeatother
\begin{document}
Car\cdotfill 11111.55 dollar\par
House\cdotfill 2222.1 dollar
\end{document}
I want to make 11111.55 and 2222.1 decimal alignment.

tabular? – David Carlisle Sep 11 '21 at 08:12tabularis just a way to make things align, it doesn't have to be used for things that are logically a table (for example article class uses it to set author names) – David Carlisle Sep 11 '21 at 08:22