title: LaTeX - two columns within the same listing?
body: <p>I'm trying to achieve the following but with no problems in spacing. </p>
  
  <p>The image is what I'm trying to achieve but without the spacing problems : </p>
  
  <p><img src="https://i.stack.imgur.com/0A0PI.png" alt="enter image description here"></p>
  
  <p>At the moment it's just a normal listing with tabbing. </p>
  
  <p>I want to avoid tabbing by introducing two columns. Is that possible?</p>
  
  <p>Current code:</p>
  
  <pre><code>\begin{lstlisting}[caption=Elements of time in the background knowledge, label=btime]
  
  year(Y):-                       hour(H):-
     Y in 2000..2011.                 H in 0..23.
  
  month(M):-                  minute(M):-
     M in 1..12.                      M in 0..59.
  
  day_of_month(D):-               seconds(S):-
      D in 1..31.                     minute(S).
  
  date([D, M, Y]):-                   time([H,M]):-
      year(Y),                            hour(H),
      month(M),                       minute(M).
      day_of_month(D).                            
  
  \end{lstlisting}
  </code></pre>