Dear Statalist

I try to make some tables for my bachelor thesis, but have trouble making them look nice. I have tried to use outreg2, but it causes som problems.

I have a mac and have a problem with getting the output as pdf.

My code is:

regress Matematik_score Relativ_alder Født_i_DK ressourcer1 ressourcer3 ressourcer4
outreg2 using mydoc.pdf, replace

regress Matematik_score Relativ_alder_til_tiden født_i_DK ressourcer1 ressourcer3 ressourcer4
outreg2 using mydoc.pdf, append

shellout using `"mydoc.doc"'

When I then try to open the table as .pdf, it say that the file is damaged and cannot open...

How do i solve this problem and get my table output as pdf?