Lately I've been writing my own review homework/tests in LaTeX to store in my digital notes. All this time I just wrote all my problems vertically, like so (Suppose w, x, y, and z are arbitrary equations):

enter image description here

and I realize now that doesn't look good and it wastes a lot of space, so I figured writing my problems horizontally would be better. Here's what my code looks like

    \usepackage{amsmath, amsfonts, amyssymb}
1) w$ \hspace*{2cm} 2) $x$

\vspace{1cm} 3) $y$ \hspace*{2cm} 4) $z$


Resulting in:

enter image description here

Even though I got pretty much what I was looking for, is there a "better" or more "professional" way of doing this?

  • 1
    You have many list environment, or you can have a look at exam-related packages.
    – user156344
    Apr 15, 2019 at 12:03
  • 1
    Have a look at the tasks package.
    – TeXnician
    Apr 15, 2019 at 12:10
  • 1
    You could put each problem into a \parbox, minipage or \makebox with a given width, using \hfil or \hfill to fill in the gaps. Back when I was doing this, I used custom commands for everything. See elfsoft2000.com/worksheets/coordinate%20pairs.pdf for example. Apr 15, 2019 at 15:05
  • @JohnKormylo Do you know how to add horizontal spacing within a \parbox? I've been looking and can't find anything on that
    – Lex_i
    Apr 15, 2019 at 16:43

1 Answer 1


Easier to show than explain.

\setlength{\parindent}{0pt}% or use \noindent a lot

\newlength{\mylength}% compute once, use often
\setlength{\mylength}{\dimexpr 0.5\textwidth - 0.5\columnsep}% two columns separated by \columnsep

\parbox[t]{\mylength}{1) $w$}\hfill% expands to fill gap
\parbox[t]{\mylength}{2) $x$}\par\vfil% expands the same as the bottom of the page
\parbox[t]{\mylength}{3) $y$}\hfill
\parbox[t]{\mylength}{4) $z$}

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .