3 votes

Why does \hfill work in math mode but not \vfill?

$ is inline math, which is why vfill won't work. But you can also use an array to do something similar. Here's an MWE: \documentclass{article} \begin{document} \[\arraycolsep=10pt\def\arraystretch{3}...
Kenneth Odle's user avatar
2 votes

Fill empty space inside a tcolorbox

With sidebyside align=bottom EDIT : With totalheight instead of width, we can calculate the vertical space to insert before the last line \documentclass[12pt]{article} \usepackage[a4paper, total={...
pascal974's user avatar
  • 4,817
1 vote

Why does \hfill work in math mode but not \vfill?

The \vfill primitive inserts \par before it if it is in horizontal mode and it causes error in math mode. TeX suggests to close the math mode by inserting $ and \vfill is "to be read again" ...
wipet's user avatar
  • 74.7k

Only top scored, non community-wiki answers of a minimum length are eligible