Skip to content

Research outputs

fs379 edited this page Jul 11, 2018 · 7 revisions

Tips and tricks when working with various outputs from research files (not specific to a particular programming language)

EPS files

EPS (encapsulated postscript) was widely used for graphics before the advent of PNG images and PDF files (the norm today). There is no native Windows viewer.

  • Try dragging them into a Word document to view them.
  • Change the Stata code to save PDF or PNG files.
  • (if Adobe tools are installed) if you right-click the file you can usually convert it to a PDF

TeX tables on Ciser

Sometimes the code provided by the authors outputs TeX code for tables, and in order to compile it we need to follow these steps:

  1. Move the mk_tex_table.sh file provided in the template folder into the folder that contains the TeX code that needs to be compiled.

  2. Run it in Powershell by typing (after moving into the correct folder): sh mk_tex_table.sh

  3. It may prompt you to install some packages: click OK (it may take a while).

  4. You may encounter errors such as:

    ! Undefined control sequence

    l.10 \toprule

    In this case, Google "LaTeX \toprule package", or whatever the unrecognized command is, and find what package is needed in order to compile that line correctly.

  5. Open the mk_tex_table.sh file with Notepad and add a new line: \usepackage{packagename} right after the last \usepackage command you see in the code. In the previous example, I would add \usepackage{booktabs}

  6. You may be prompted to install that package: click OK again

  7. In some cases, if you encounter other types of errors, it may be ok to type s and press Enter, essentially ignoring the error. Verify that the output is readable in this case (it may not be formatted exactly as in the paper).

Clone this wiki locally