<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Iraj,<div><br></div><div><div><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; ">=========<br>Generating LaTeX (/var/folders/wl/j3k8p5448xj_wz0059b371400000gn/T/src) ...<span class="Apple-converted-space"> </span><br>CreatingBibliographyWritingFiles\documentclass[10pt,a4paper,titlepage,openbib]{article}<br>\pagestyle{plain}<br>\pagenumbering{arabic}<br>\setlength{\parskip}{5pt}<br>\setlength{\parindent}{0pt}<br>\setlength{\oddsidemargin}{1.5cm}<br>\setlength{\evensidemargin}{1.5cm}<br>\usepackage{graphicx}<br>\usepackage{float}<br>\usepackage{makeidx}<br>\setcounter{secnumdepth}{3}<br><br>\begin{document}<br>\tableofcontents<br><br>\end{document}<br><br>CompilingLaTeX ...<br><br></span></blockquote><br></div><div>This looks like an empty document!?? There should be at least something between \begin{document} and \end{document}!?? Let's try to fix this first. Create a new document and type in a few words, e.g.</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">   </span>This is a test!</div><div><br></div><div>Then press Command-p with the cursor still in this document and click on the brown wheel. The output in the print latex panel should then look like</div><div><br></div><div><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; ">Generating LaTeX (/var/folders/wl/j3k8p5448xj_wz0059b371400000gn/T/src) ... <br></span></blockquote><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; ">\documentclass[10pt,a4paper,titlepage,openbib]{article}<br>\pagestyle{plain}<br>\pagenumbering{arabic}<br>\setlength{\parskip}{5pt}<br>\setlength{\parindent}{0pt}<br>\setlength{\oddsidemargin}{1.5cm}<br>\setlength{\evensidemargin}{1.5cm}<br>\usepackage{graphicx}<br>\usepackage{float}<br>\usepackage{makeidx}<br>\setcounter{secnumdepth}{3}<br><br>\begin{document}<br>\tableofcontents<br>This is a test!</span></blockquote><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; ">\end{document}<br><br>CompilingLaTeX ...<br></span></blockquote></div><div><br></div>Can you confirm this??</div><div><br></div><div>Now if it does not compile get the path of the created temporary directory from the first line of the output. This will be a different directory each time, so choose the one from your output panel. In the above case the directory was</div><div><br></div><div><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; ">/var/folders/wl/j3k8p5448xj_wz0059b371400000gn/T/src</span></blockquote><div><br></div><div>In a terminal session change into this directory with</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">  </span>cd <span class="Apple-tab-span" style="white-space:pre">/var/folders/wl/j3k8p5448xj_wz0059b371400000gn/T/src</span></div><div><br></div><div>and verify you have an output.tex in this directory.</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>cat output.tex</div><div><br></div><div>Now try to compile this manualy by invoking pdflatex on the command line.</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">     </span>pdflatex output.tex</div><div><br></div><div>If this does not work try a complete path like</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">      </span>/usr/local/texlive/2012/bin/universal-darwin/pdflatex output.tex</div><div><br></div><div>Does this work? This should give you a file output.pdf in the temporary directory. Do a </div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">  </span>ls</div><div><br></div><div>to check that. And if the output.pdf is there do </div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">    </span>open output.pdf</div><div><br></div><div>to open it! If this works we are almost there!??</div><div><br></div><div>Thanks,</div><div><br></div><div> Andreas</div><div><br></div></div></body></html>