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

Roussanka Loukanova rl.stpuu at gmail.com
Sun Apr 18 17:10:07 EDT 2021


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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://email.esm.psu.edu/pipermail/macosx-emacs/attachments/20210418/a55b24cb/attachment.htm>


More information about the MacOSX-Emacs mailing list