Hi Pete,

You have given me very good lesson on Emacs-Latex, etc. commands.

You have to choose one of the commands from the
Commands menu! Everything else AUCTeX does not understand. If you
want to use dvips you would need to add a dvips command first. This
might work from LaTeX -> Customize AUCTeX -> Browse Options

I've looked at:
LaTeX -> Customize AUCTeX -> Browse Options
and then (Go to Group) at:

Tex Command group: -> Go to Group
Calling external commands from AUCTeX.

Then:

Latex Command: Hide Value latex

I guess, I have to replace "latex" with the dvips, ps2pdf commands, but what exactly should I type there?

Again, since you need to add a command to the Commands menu, think of
adding a shell script as a PSTricks command. Herb Schulz' ps4pdf
engine script goes (a bit edited by me):

        #!/bin/sh
        basefname=`basename "$1" .tex`
        # process the figures
        latex --shell-escape "$1"
        dvips -Ppdf -o "${basefname}-pics.ps" "${basefname}.dvi"
        ps2pdf -dAutoRotatePages=/None "${basefname}-pics.ps" "${basefname}-
pics.pdf"
        pdfcrop "${basefname}-pics.pdf"
        mv "${basefname}-pics-crop.pdf" "${basefname}-pics.pdf"
        # remove intermediate files
        rm "${basefname}-pics.ps" "${basefname}.dvi"
        # process the file
        pdflatex "$1"

Do I have to copy and paste this code in some file? (sorry for the stupid question: I've never done such things up to now).


This is the short version of the ps4pdf scripts that come with the
teTeX or TeX Live i-Packages.

I've tried ps4pdf from the shell, it seems working, I've got:

$ ps4pdf lec2.tex
/usr/local/teTeX/bin/i386-apple-darwin-current/ps4pdf: running latex lec2.tex
/usr/local/teTeX/bin/i386-apple-darwin-current/ps4pdf: running dvips -Ppdf -o 
lec2-pics.ps lec2.dvi
/usr/local/teTeX/bin/i386-apple-darwin-current/ps4pdf: running ps2pdf 
-dAutoRotatePages=/None lec2-pics.ps lec2-pics.pdf
/usr/local/teTeX/bin/i386-apple-darwin-current/ps4pdf: running pdflatex lec2.tex

The lec2-pics.pdf is the good one with the trees drawn properly, but of course lec2.pdf (created with pdflatex) lacks the lines of the trees.

dvips. Anyway, it's now obvious: there is no output from dvips
because there is no dvips command yet in AUCTeX that could be launched.

It seems some of need it, at least I do :)

accommodate the texdoc script to use particular applications for
particular file formats – and texdoc is in my AUCTeX the Viewer. To
save my custom texdoc script from being erased by an i-Package update
I've put into my ~/bin directory, which is in the search path for
executables.

I will create such too, but what exactly to put in it?
It seems I've understood the lesson quite ok, but without being able to do something pragmatical :(

that they are asked to display DVI and so they /automatically/
convert DVI to PDF. Try with some DVI file on the command line:

        open -a TeXShop <the DVI file>

I've tried it and it works, but I prefer the Preview program for viewing and even for presentations because it gives me good control over jumping over pages back and forth (I even prefer Preview instead of Acrobat reader).

I have to get some sleep now (having lecture tomorrow), but hope to find more help after the lecture :)
Roussanka
_______________________________________________
macemacsjp-english mailing list
[email protected]
http://lists.sourceforge.jp/mailman/listinfo/macemacsjp-english

Reply via email to