<div dir="ltr">Hi Win,<br><br>I did the 1st option: I configure AUCTeX to use the extra option with ps2pdf either using the Customize interface within Aquamacs. It works. It seems to me that it would be good if the new upgrade of Aquamacs comes with this as the default. <br><br>Thanks!<br><br>Best Regards,<br>Roussanka<div dir="ltr"><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, May 1, 2021 at 8:59 PM Win Treese <<a href="mailto:treese@acm.org">treese@acm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">Hi, Roussanka.<br>
<br>
You can configure AUCTeX to use the extra option with ps2pdf either using the Customize interface or Emacs Lisp.<br>
<br>
Customize<br>
———————<br>
1. From the menu: Options->Customize Aquamacs->All Settings Matching…<br>
2. Search for TeX-command-list<br>
3. In the buffer that comes up, search forward for Ps2Pdf<br>
4. In the box with the ps2pdf command, make it say<br>
<br>
        ps2pdf -dALLOWPSTRANSPARENCY %f<br>
<br>
5. Go back up to the top up of buffer and click “Apply” to try it out or “Apply and Save” to keep it for future use.<br>
6. Try it out to make sure it works.<br>
<br>
With Emacs Lisp<br>
——————————<br>
In your configuration file, put<br>
(push <br>
    '("Ps2pdf" "ps2pdf -dALLOWPSTRANSPARENCY %f" TeX-run-ps2pdf nil t :help "Convert PostScript file to PDF”)<br>
    TeX-command-list)<br>
to be run after AUCTeX is loaded.<br>
<br>
If you need more detail on either of them, let me know.<br>
<br>
Best,<br>
<br>
- Win<br>
<br>
<br>
> ps2pdf -dALLOWPSTRANSPARENCY <br>
> On Apr 18, 2021, at 5:10 PM, Roussanka Loukanova <<a href="mailto:rl.stpuu@gmail.com" target="_blank">rl.stpuu@gmail.com</a>> wrote:<br>
> <br>
> Dear All, Dear Win,<br>
> <br>
> I've upgraded to TeX Live 2021. I'll appreciate help for typesetting .tex files that require pstricks via Aquamacs.<br>
> <br>
> These files used to be typeset finely with:<br>
> <br>
> - latex->dvips->ps2pdf, up to some point of TeX Live 2020 (Autumn)<br>
> - XeLaTeX in the latest TeX Live 2020<br>
> <br>
> Now, with TeX Live 2021, neither of these engines work in Aquamacs. It seems the commands require new options for Ghostscript 9.53.3.<br>
> <br>
> The following commands work finely from the command line of Terminal, with the options:<br>
> <br>
> - latex > dvips (from Aquamacs and from Terminal) <br>
> Then:<br>
> $ ps2pdf -dALLOWPSTRANSPARENCY <a href="http://test-file.ps" rel="noreferrer" target="_blank">test-file.ps</a><br>
> <br>
> If I open the test-file.pdf with Skim it's properly typeset. But Aquamacs can't display the pdf, via Ctrl-c Ctrl-v from the .tex: it replies no default viewer.<br>
> <br>
> - XeLaTeX in Terminal: <br>
> $ xelatex -output-driver="xdvipdfmx -i dvipdfmx-unsafe.cfg -q -E" test-file.tex<br>
> <br>
> Aquamacs displays the correct pdf, via Ctrl-c Ctrl-v from the test-file.tex<br>
> <br>
> But I do not know, any longer with the newer versions, how to set them in AucTeX in Aquamacs.<br>
> <br>
> If somebody knows how to get how to set the necessary commands in Aquamacs / AucTeX, I'll appreciate instructions, very much.<br>
> <br>
> For information: I can typeset files requiring pstricks finely in TeXShop, by special engines for GhostscriptTransparency written by Herbert Schulz for TeXShop.<br>
> <br>
> Best Regards,<br>
> Roussanka<br>
> <br>
> On Wed, Mar 3, 2021 at 2:42 AM Win Treese <<a href="mailto:treese@acm.org" target="_blank">treese@acm.org</a>> wrote:<br>
> <br>
> Hi, Roussanka. Thanks for the detailed report and the follow up on it. I’ll take a look at this for Aquamacs 3.6, especially if there’s a way to make it generally work better for most Aquamacs users. Unfortunately, LaTeX setup varies a lot on different systems!<br>
> <br>
> Best,<br>
> <br>
> - Win<br>
> <br>
> > On Mar 1, 2021, at 4:21 PM, Roussanka Loukanova <<a href="mailto:rl.stpuu@gmail.com" target="_blank">rl.stpuu@gmail.com</a>> wrote:<br>
> > <br>
> > Dear Win,<br>
> > <br>
> > After advices from the TeXShop list, in the same Thread, I get <br>
> > <br>
> > (1) the drawings that require pstricks look finley, by XeLaTeX, in one typeset run (+ BibTeX + latex, if needed) after having selected:<br>
> > <br>
> > Aquamacs > Command > Use XeTeX engine<br>
> > Aquamacs > Command > TeXing Options > Generate PDF<br>
> > Aquamacs > Command > TeXing Options > DVI and PDF > dvips + ps2pdf<br>
> > <br>
> > %% for Aquamacs at the end of the tex file for automatic (latex+dvi+ps2pdf) with XeLaTeX engine<br>
> > %%% Local Variables:<br>
> > %%% mode: latex<br>
> > %%% TeX-engine: xetex<br>
> > %%% TeX-master: t<br>
> > %%% End:<br>
> > <br>
> > (2) but an option for the transparency doesn't go well, by the XeTeX output, and in the log:<br>
> >  %%%% WARNING: Transparency operations ignored - need to use -dALLOWPSTRANSPARENCY<br>
> > <br>
> > I hope these can be preset in the upgrade of Aquamacs.<br>
> > -- <br>
> > Best Regards,<br>
> > Roussanka<br>
> > <br>
> > On Sun, Feb 28, 2021 at 11:49 PM Roussanka Loukanova <<a href="mailto:rl.stpuu@gmail.com" target="_blank">rl.stpuu@gmail.com</a>> wrote:<br>
> > Dear Win, Dear All,<br>
> > <br>
> > I have some beamer presentations with drawings for which I use <br>
> > \usepackage{pstricks}<br>
> > They require typesetting via:<br>
> > <br>
> > Aquamacs > Command > TeXing Options > Generate PDF<br>
> > Aquamacs > Command > TeXing Options > DVI and PDF > dvips + ps2pdf<br>
> > <br>
> > I used to typeset these presentations finely with Aquamacs, at least up to a certain time in 2020. Now the typesetting produces wrong slides:<br>
> > <br>
> > All beamer boxes get  their shadows in black, and the headers of the theorem-like boxes are covered with black banners.  Below is a test file and its pdf on my MacBook Air, macOS Big Sur V.11.2.2, TeXLife 2020, with everything updated.<br>
> > <br>
> > The same problem was by typesetting the files in TeXShop. I wrote to the TeXShop list:<br>
> > <a href="https://email.esm.psu.edu/pipermail/macosx-tex/" rel="noreferrer" target="_blank">https://email.esm.psu.edu/pipermail/macosx-tex/</a><br>
> > Thread:<br>
> > [OS X TeX] TeX and DVI in beamer problem  <br>
> > <a href="https://email.esm.psu.edu/pipermail/macosx-tex/2021-February/057653.html" rel="noreferrer" target="_blank">https://email.esm.psu.edu/pipermail/macosx-tex/2021-February/057653.html</a><br>
> > <br>
> > Herbert Schulz explained that the problem is in transparency with gs 9.53.3. Ghostscript version 9.51 and later (gs, ps2pdf) treat transparency differently.  A new option has to be passed to ps2pdf to allow transparency.<br>
> > <br>
> > Herbert Schulzand helped by some specially developed engines, pointed in the Thread above. I downloaded them, installed, and now the typesetting goes finely in TeXShop. Because my drawings are large, you can try with the test file by Herbert Schulz, which I included in the above Thread too, together with the content of the problematic .log.<br>
> > <br>
> > I hope you can fix that in Aquamacs, or perhaps find and tell what option and how to pass it to ps2pdf.<br>
> >  <br>
> > Best Regards,<br>
> > Roussanka<br>
> > <br>
> > <br>
> > <br>
> > <br>
> > <br>
> > <br>
> > _____________________________________________________________<br>
> > MacOSX-Emacs mailing list<br>
> > <a href="mailto:MacOSX-Emacs@email.esm.psu.edu" target="_blank">MacOSX-Emacs@email.esm.psu.edu</a><br>
> > <a href="https://email.esm.psu.edu/mailman/listinfo/macosx-emacs" rel="noreferrer" target="_blank">https://email.esm.psu.edu/mailman/listinfo/macosx-emacs</a><br>
> > List Archives: <a href="http://dir.gmane.org/gmane.emacs.macintosh.osx" rel="noreferrer" target="_blank">http://dir.gmane.org/gmane.emacs.macintosh.osx</a><br>
> <br>
<br>
</blockquote></div></div></div>