First let me just point out that I am new to LaTeX and I searched for an answer to the question but I could not find anything I could use. So if you already know where I can find my answer just point me in the direction and I will remove this thread.

Now, I have a problem getting two examples of text next to each other. It is an example of a template and I would like to show two variants side by side. This is the text:

openstack {  
    tenant <some name>  
    image <image name>  
    flavor <flavor type>  
    keypair <keypair>  
 network eth0 {  
        net <net>  
host <hostname> {  
    superclass common  
    network eth0 {  
           floating-ip auto ext_net  

Does anyone know how I could do this is in a neat fashion?

  • 1
    Welcome to TeX.sx! You may want to check my question from last month. Possible duplicate?! – masu Oct 7 '13 at 14:45
  • Use two minipages. If they have widths that total less than the current line width, and there is no blank line between them, they will be side-by side. – Dan Dec 7 '13 at 3:16

You can find very useful stuff about multi-column pages at the LaTeX Wiki:


In short, you can use the code below for a two-column text:

lots of text

Just don't forget to add


at the preamble of your code.

Good Luck :)

  • You're welcome @Jonas. You may accept this answer as accepted, if it helped you. – Omid1989 Apr 10 '16 at 12:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.