<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>Hi Iraj,</div><div><br></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; "><div>Can you please elaborate (for the non-expert) these few lines you wrote:</div><div><br></div><blockquote style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 40px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><div><blockquote type="cite"><font color="#e32400">However, Cassiopeia can work with any LaTeX distribution. One just has to edit the two scripts</font></blockquote></div><div><blockquote type="cite"><font color="#e32400"><br></font></blockquote></div><div><blockquote type="cite"><span class="Apple-tab-span" style="white-space: pre; "><font color="#e32400"> </font></span></blockquote><font color="#e32400"><span class="Apple-tab-span" style="white-space: pre; "> </span>/Library/Frameworks/SDMFoundation.framework/Resources/generateLaTeXPDF</font></div><div><blockquote type="cite"><span class="Apple-tab-span" style="white-space: pre; "><font color="#e32400"> </font></span></blockquote><font color="#e32400"><span class="Apple-tab-span" style="white-space: pre; "> </span>/Library/Frameworks/SDMFoundation.framework/Resources/generateLaTeXPDFWithIndex</font></div><div><blockquote type="cite"><font color="#e32400"><br></font></blockquote></div><div><blockquote type="cite"><font color="#e32400">that have content like</font></blockquote></div><div><blockquote type="cite"><font color="#e32400"><br></font></blockquote></div><div><blockquote type="cite"><font color="#e32400">#!/bin/csh</font></blockquote></div><div><blockquote type="cite"><font color="#e32400">setenv PATH /usr/local/teTeX/bin/powerpc-apple-darwin-current:...</font></blockquote></div><div><blockquote type="cite"><font color="#e32400">pdflatex $1</font></blockquote></div><div><blockquote type="cite"><font color="#e32400">bibtex $1</font></blockquote></div><div><blockquote type="cite"><font color="#e32400">pdflatex $1</font></blockquote></div><div><blockquote type="cite"><font color="#e32400">pdflatex $1</font></blockquote></div><div><blockquote type="cite"><font color="#e32400"><br></font></blockquote></div><div><blockquote type="cite"><font color="#e32400">and add the path to the bin directory of the LaTeX distribution in use.</font></blockquote></div></blockquote></span></blockquote></div><div><br></div><div>If you open the print panel of Cassiopeia and click on the brown wheel in the top right corner of the panel the following happens:</div><div><br></div><div>• a temporary directory is created</div><div>• Cassiopeia generates LaTeX code for your document and stores it in a file output.tex in this temporary directory prefixed with the preamble of the chosen document class</div><div>• it then does a change dir to this temporary directory and executes the script /Library/Frameworks/SDMFoundation.framework/Resources/generateLaTeXPDF with output.tex as the only parameter</div><div><br></div><div>The script first sets an environment variable PATH to make sure the binary pdflatex (part of your LaTeX distribution) is found. It then executes pdflatex with output.tex as the first parameter. This should compile the generated LaTeX code in output.tex and generate a file output.pdf. The following calls of bibtext and pdflatex are just to make sure that bibtext references are resolved correctly. Whatever, at the end of the script execution there should be a file output.pdf in the temporary directory. If so this file is automatically opened (-> Preview.app).</div><div> </div><div>So far so good. If you want to make Cassiopeia work with another LaTeX distribution (not the one provided on the essentials package) you first have to find out where your pdflatex is installed. Executed the following command in a terminal sesion (/Applications/Utilities/Terminal.app).</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre"> </span>find /usr -name pdflatex</div><div><br></div><div>Let me/us know what you get. Then just add the path to your pdflatex binary to the second line of the script. You can edit the script e.g. with pico. In a terminal session do</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre"> </span>pico /Library/Frameworks/SDMFoundation.framework/Resources/generateLaTeXPDF</div><div><br></div><div>You might need to do </div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre"> </span>sudo pico <span class="Apple-tab-span" style="white-space:pre">/Library/Frameworks/SDMFoundation.framework/Resources/generateLaTeXPD</span>F</div><div><br></div><div>depending on your privileges.</div><div> </div><div>Please let me know if this works for you! If you have trouble editing the script try to find out the path to your pdflatex using</div><div><br></div><div><span class="Apple-tab-span" style="white-space: pre; "> </span>find /usr -name pdflatex</div><div>or</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>which pdflatex</div><div><br></div><div>and I will provide you with a modified generateLaTeXPDF script.</div><div><br></div><div>Thanks,</div><div><br></div><div> Andreas</div><div><br></div></body></html>