Consider the following code/picture:
\documentclass{article}
\usepackage{graphicx}
\usepackage{amsmath}
\begin{document}
\noindent
\begin{tabular}{@{}p{2.62cm}@{}p{9.5cm}@{}}
$\varliminf,\varlimsup$ & test test test test test test test test test test test \dotfill 123\\
$\varliminf,\varlimsup$ & test test test test test test test test test test test test \dotfill 123\\
$\varliminf,\varlimsup$ & test test test test test test test test test test test test test \dotfill 123\\
$\varliminf,\varlimsup$ & test test test test test test test test test test test test test test \dotfill 123\\
$\varliminf,\varlimsup$ & test test test test test test test test test test test test test test test \dotfill 123\\
$\liminf,\limsup$ & idem \dotfill 123 \\
\end{tabular}
\end{document}
I'm not satisfied with the item 3 and 4 of 6: too few space(filled with dots!) before the number in 3, and in 4 the dots are missing. I tried to adapt this post, but without success. I just do not understand how it works.
\zdotfillshould not introduce unfilled space (unfilled=without dots), it should just have a minimal length of 1cm (filled with dots) and everything else should be as by\dotfill.
Wrong code:
\documentclass{article}
\usepackage{graphicx}
\usepackage{amsmath}
\newcommand{\zdotfill}{\hskip 1cm plus 1fill\dotfill}
\begin{document}
\noindent
\begin{tabular}{@{}p{2.62cm}@{}p{9.5cm}@{}}
$\varliminf,\varlimsup$ & test test test test test test test test test test test \zdotfill 123\\
$\varliminf,\varlimsup$ & test test test test test test test test test test test test \zdotfill 123\\
$\varliminf,\varlimsup$ & test test test test test test test test test test test test test \zdotfill 123\\
$\varliminf,\varlimsup$ & test test test test test test test test test test test test test test \zdotfill 123\\
$\varliminf,\varlimsup$ & test test test test test test test test test test test test test test test \zdotfill 123\\
$\liminf,\limsup$ & idem \zdotfill 123 \\
\end{tabular}
\end{document}


\zdotfill, because thedotfillmodule of the zref package already has a\zdotfill, which works differently. – frougon May 18 '19 at 07:49\zdotfill/\mindotfilldefinition: 1) The\nolinebreakdoesn't need to be in the group where\hfillis redefined; 2)\relaxis better than the space token to prevent taking stuff such asminus 1cmfrom what follows in\dotfill's definition (this doesn't happen with the current def, but is better in principle). – frougon May 18 '19 at 08:02\relaxhere is debatable. Adding it makes the expansion of the new\hfillcontain more than just a 〈skip〉, even if it doesn't change the output; not adding it makes us rely on how it is used, i.e., on the fact that in\dotfill's definition, the\hfillis not followed by aplusor aminuskeyword. This is probably a reasonably safe assumption, and I assume that is the reason why David Carlisle didn't add the\relax. – frougon May 18 '19 at 08:14