[OS X Emacs] problems: LaTeX + dvips+ps2pdf

Win Treese treese at acm.org
Sat May 1 14:59:03 EDT 2021


Hi, Roussanka.

You can configure AUCTeX to use the extra option with ps2pdf either using the Customize interface or Emacs Lisp.

Customize
———————
1. From the menu: Options->Customize Aquamacs->All Settings Matching…
2. Search for TeX-command-list
3. In the buffer that comes up, search forward for Ps2Pdf
4. In the box with the ps2pdf command, make it say
 
	ps2pdf -dALLOWPSTRANSPARENCY %f

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.
6. Try it out to make sure it works.

With Emacs Lisp
——————————
In your configuration file, put
(push 
    '("Ps2pdf" "ps2pdf -dALLOWPSTRANSPARENCY %f" TeX-run-ps2pdf nil t :help "Convert PostScript file to PDF”)
    TeX-command-list)
to be run after AUCTeX is loaded.

If you need more detail on either of them, let me know.

Best,

- Win


> ps2pdf -dALLOWPSTRANSPARENCY 
> On Apr 18, 2021, at 5:10 PM, Roussanka Loukanova <rl.stpuu at gmail.com> wrote:
> 
> Dear All, Dear Win,
> 
> I've upgraded to TeX Live 2021. I'll appreciate help for typesetting .tex files that require pstricks via Aquamacs.
> 
> These files used to be typeset finely with:
> 
> - latex->dvips->ps2pdf, up to some point of TeX Live 2020 (Autumn)
> - XeLaTeX in the latest TeX Live 2020
> 
> Now, with TeX Live 2021, neither of these engines work in Aquamacs. It seems the commands require new options for Ghostscript 9.53.3.
> 
> The following commands work finely from the command line of Terminal, with the options:
> 
> - latex > dvips (from Aquamacs and from Terminal) 
> Then:
> $ ps2pdf -dALLOWPSTRANSPARENCY test-file.ps
> 
> 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.
> 
> - XeLaTeX in Terminal: 
> $ xelatex -output-driver="xdvipdfmx -i dvipdfmx-unsafe.cfg -q -E" test-file.tex
> 
> Aquamacs displays the correct pdf, via Ctrl-c Ctrl-v from the test-file.tex
> 
> But I do not know, any longer with the newer versions, how to set them in AucTeX in Aquamacs.
> 
> If somebody knows how to get how to set the necessary commands in Aquamacs / AucTeX, I'll appreciate instructions, very much.
> 
> For information: I can typeset files requiring pstricks finely in TeXShop, by special engines for GhostscriptTransparency written by Herbert Schulz for TeXShop.
> 
> Best Regards,
> Roussanka
> 
> On Wed, Mar 3, 2021 at 2:42 AM Win Treese <treese at acm.org> wrote:
> 
> 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!
> 
> Best,
> 
> - Win
> 
> > On Mar 1, 2021, at 4:21 PM, Roussanka Loukanova <rl.stpuu at gmail.com> wrote:
> > 
> > Dear Win,
> > 
> > After advices from the TeXShop list, in the same Thread, I get 
> > 
> > (1) the drawings that require pstricks look finley, by XeLaTeX, in one typeset run (+ BibTeX + latex, if needed) after having selected:
> > 
> > Aquamacs > Command > Use XeTeX engine
> > Aquamacs > Command > TeXing Options > Generate PDF
> > Aquamacs > Command > TeXing Options > DVI and PDF > dvips + ps2pdf
> > 
> > %% for Aquamacs at the end of the tex file for automatic (latex+dvi+ps2pdf) with XeLaTeX engine
> > %%% Local Variables:
> > %%% mode: latex
> > %%% TeX-engine: xetex
> > %%% TeX-master: t
> > %%% End:
> > 
> > (2) but an option for the transparency doesn't go well, by the XeTeX output, and in the log:
> >  %%%% WARNING: Transparency operations ignored - need to use -dALLOWPSTRANSPARENCY
> > 
> > I hope these can be preset in the upgrade of Aquamacs.
> > -- 
> > Best Regards,
> > Roussanka
> > 
> > On Sun, Feb 28, 2021 at 11:49 PM Roussanka Loukanova <rl.stpuu at gmail.com> wrote:
> > Dear Win, Dear All,
> > 
> > I have some beamer presentations with drawings for which I use 
> > \usepackage{pstricks}
> > They require typesetting via:
> > 
> > Aquamacs > Command > TeXing Options > Generate PDF
> > Aquamacs > Command > TeXing Options > DVI and PDF > dvips + ps2pdf
> > 
> > I used to typeset these presentations finely with Aquamacs, at least up to a certain time in 2020. Now the typesetting produces wrong slides:
> > 
> > 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.
> > 
> > The same problem was by typesetting the files in TeXShop. I wrote to the TeXShop list:
> > https://email.esm.psu.edu/pipermail/macosx-tex/
> > Thread:
> > [OS X TeX] TeX and DVI in beamer problem  
> > https://email.esm.psu.edu/pipermail/macosx-tex/2021-February/057653.html
> > 
> > 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.
> > 
> > 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.
> > 
> > I hope you can fix that in Aquamacs, or perhaps find and tell what option and how to pass it to ps2pdf.
> >  
> > Best Regards,
> > Roussanka
> > 
> > 
> > 
> > 
> > 
> > 
> > _____________________________________________________________
> > MacOSX-Emacs mailing list
> > MacOSX-Emacs at email.esm.psu.edu
> > https://email.esm.psu.edu/mailman/listinfo/macosx-emacs
> > List Archives: http://dir.gmane.org/gmane.emacs.macintosh.osx
> 



More information about the MacOSX-Emacs mailing list