Discussion:
setting the viewer on Aquamacs
David Romano
2007-07-09 00:49:45 UTC
Permalink
I've just installed Aquamacs and am having trouble figuring out how change
the pdf viewer that gets called (by AUCTeX) by default (i.e., Preview).
Any suggestions?

Thanks for the help!
David Romano
---------------------------- Info -----------------------------
List Post: <mailto:macosx-***@email.esm.psu.edu>
List Archives: <http://dir.gmane.org/gmane.emacs.macintosh.osx>
Alex Hamann
2007-07-09 08:07:31 UTC
Permalink
well, which one do you want to call? For Skim (my favourite), PdfView
and TeXniscope you will find helpful instructions on the related
websites and wikis.
If you need further help you should probably provide some more
information to the list (which viewer, where you get stuck in the
customization menues, etc.)
This is the wiki for Skim with customizations for emacs. http://skim-
app.sourceforge.net/wiki/index.php/LaTeX_and_PDFSync

Good luck

Alex
Post by David Romano
I've just installed Aquamacs and am having trouble figuring out how
change the pdf viewer that gets called (by AUCTeX) by default
(i.e., Preview). Any suggestions?
Thanks for the help!
David Romano
---------------------------- Info -----------------------------
List Archives: <http://dir.gmane.org/gmane.emacs.macintosh.osx>
=============================================
please avoid sending me word attachements; see
http://www.gnu.org/philosophy/no-word-attachments.html
for details and background


---------------------------- Info -----------------------------
List Post: <mailto:macosx-***@email.esm.psu.edu>
List Archives: <http://dir.gmane.org/gmane.emacs.macintosh.osx>
Peter Dyballa
2007-07-09 09:41:48 UTC
Permalink
Post by David Romano
I've just installed Aquamacs and am having trouble figuring out how
change the pdf viewer that gets called (by AUCTeX) by default
(i.e., Preview). Any suggestions?
I'd recommend to change a private copy the texdoc script from your
TeX distribution in ~/bin to use the right viewer. Then you'll have a
versatile command line tool + the same tool in GNU Emacs/AUCTeX. The
change can be achieved via customising AUCTeX:

menu LaTeX -> Customizing AUCTeX -> Browse Options
then TeX Command in *Customize* buffer

I have:

'(TeX-output-view-style (quote (("^dvi$" ("^landscape$" "^pstricks$\
\|^pst-\\|^psfrag$") "%(o?)dvips -t landscape %d -o && texdoc %f")
("^dvi$" "^pstricks$\\|^pst-\\|^psfrag$" "%(o?)dvips %d -o && texdoc %
f") ("^dvi$" ("^a4\\(?:dutch\\|paper\\|wide\\)\\|sem-a4$" "^landscape
$") "%(o?)xdvi %dS -paper a4r -s 0 %d") ("^dvi$" "^a4\\(?:dutch\\|
paper\\|wide\\)\\|sem-a4$" "%(o?)xdvi %dS -paper a4 %d") ("^dvi
$" ("^a5\\(?:comb\\|paper\\)$" "^landscape$") "%(o?)xdvi %dS -paper
a5r -s 0 %d") ("^dvi$" "^a5\\(?:comb\\|paper\\)$" "%(o?)xdvi %dS -
paper a5 %d") ("^dvi$" "^b5paper$" "%(o?)xdvi %dS -paper b5 %d")
("^dvi$" "^letterpaper$" "%(o?)xdvi %dS -paper us %d") ("^dvi$"
"^legalpaper$" "%(o?)xdvi %dS -paper legal %d") ("^dvi$"
"^executivepaper$" "%(o?)xdvi %dS -paper 7.25x10.5in %d") ("^dvi$"
"." "%(o?)xdvi %dS %d") ("^pdf$" "." "texdoc %o") ("^html?$" "."
"netscape %o"))))

which can be insufficient for DVI output.

--
Greetings

Pete

Got Mole problems?
Call Avogadro 6.02 x 10^23


---------------------------- Info -----------------------------
List Post: <mailto:macosx-***@email.esm.psu.edu>
List Archives: <http://dir.gmane.org/gmane.emacs.macintosh.osx>
José Miguel Figueroa-O'Farrill
2007-07-09 12:53:54 UTC
Permalink
Post by Peter Dyballa
Post by David Romano
I've just installed Aquamacs and am having trouble figuring out
how change the pdf viewer that gets called (by AUCTeX) by default
(i.e., Preview). Any suggestions?
I'd recommend to change a private copy the texdoc script from your
TeX distribution in ~/bin to use the right viewer. Then you'll have
a versatile command line tool + the same tool in GNU Emacs/AUCTeX.
menu LaTeX -> Customizing AUCTeX -> Browse Options
then TeX Command in *Customize* buffer
'(TeX-output-view-style (quote (("^dvi$" ("^landscape$" "^pstricks
$\\|^pst-\\|^psfrag$") "%(o?)dvips -t landscape %d -o && texdoc %
f") ("^dvi$" "^pstricks$\\|^pst-\\|^psfrag$" "%(o?)dvips %d -o &&
texdoc %f") ("^dvi$" ("^a4\\(?:dutch\\|paper\\|wide\\)\\|sem-a4$"
"^landscape$") "%(o?)xdvi %dS -paper a4r -s 0 %d") ("^dvi$" "^a4\\
(?:dutch\\|paper\\|wide\\)\\|sem-a4$" "%(o?)xdvi %dS -paper a4 %d")
("^dvi$" ("^a5\\(?:comb\\|paper\\)$" "^landscape$") "%(o?)xdvi %dS -
paper a5r -s 0 %d") ("^dvi$" "^a5\\(?:comb\\|paper\\)$" "%(o?)xdvi %
dS -paper a5 %d") ("^dvi$" "^b5paper$" "%(o?)xdvi %dS -paper b5 %
d") ("^dvi$" "^letterpaper$" "%(o?)xdvi %dS -paper us %d") ("^dvi$"
"^legalpaper$" "%(o?)xdvi %dS -paper legal %d") ("^dvi$"
"^executivepaper$" "%(o?)xdvi %dS -paper 7.25x10.5in %d") ("^dvi$"
"." "%(o?)xdvi %dS %d") ("^pdf$" "." "texdoc %o") ("^html?$" "."
"netscape %o"))))
which can be insufficient for DVI output.
I have rather more pedestrian needs and have found the following
lines in my .emacs do what I need:

(setq TeX-output-view-style
(quote (("^dvi$" "." "open -a Skim %o")
("^pdf$" "." "open -a Skim %o")
("^html?$" "." "open %o")
)) )

which basically instructs AUCTeX to use Skim for both PDF and DVI and
to open any HTML file using the default browser. You can of course,
customise the variable as well.

Cheers, José



Prof José Figueroa-O'Farrill
School of Mathematics
University of Edinburgh



---------------------------- Info -----------------------------
List Post: <mailto:macosx-***@email.esm.psu.edu>
List Archives: <http://dir.gmane.org/gmane.emacs.macintosh.osx>
Axel E. Retif
2007-07-11 08:31:31 UTC
Permalink
Post by José Miguel Figueroa-O'Farrill
[...]
I have rather more pedestrian needs and have found the following
(setq TeX-output-view-style
(quote (("^dvi$" "." "open -a Skim %o")
("^pdf$" "." "open -a Skim %o")
("^html?$" "." "open %o")
)) )
This is definitively the route I prefer ---*so* much *easier* to read
than AUCTeX Customize output. I had customized with LaTeX-mode-hook
TeXniscope as my dvi viewer, but now that I'm trying to learn plain
TeX, I have tried your code for using TeXniscope as a TeX viewer as
well, and it works perfectly.

Thank you.


Axel

---------------------------- Info -----------------------------
List Post: <mailto:macosx-***@email.esm.psu.edu>
List Archives: <http://dir.gmane.org/gmane.emacs.macintosh.osx>
David Romano
2007-07-09 22:04:24 UTC
Permalink
Thanks everyone for your suggestions. I've found that my troubles seem to
come from the following.
1) There seem to be two choices for customizing Aquamacs Emacs: Changing
one's .emacs file or using the Customization menu and entering the
appropriate information for the appropriate variables.
At present, I have no .emacs file and am a little worried I'd mess
things up if I create one. (I can copy someone else's but I would simply
be operating as a human cut-and-paste function -- I have no understanding
of Lisp.) In terms of the customization menu approach, I can mimic what I
see in the default variable values, but I don't know what I'm doing there
either: e.g., I installed PDFView and inserted the following in the
Customization buffer:

Extension: ^pdf$
Choice: Value Menu Regexp: ^PDFView$
Command: open -a PDFView.app %o.

So in either case, ignorance is the problem, and reading the
manuals and archived list messages is only slightly ameliorating it.

2) A more fundamental(?) problem may be that my machine is running OS
10.3.9, and so PDFView and Skim may simply not be avaible to me as
alternatives to Preview. Are there others that would be?

If anyone has any advice about 1) or 2), I would be grateful for it.

Thanks again,
David Romano
Post by David Romano
I've just installed Aquamacs and am having trouble figuring out how change
the pdf viewer that gets called (by AUCTeX) by default (i.e., Preview). Any
suggestions?
Thanks for the help!
David Romano
---------------------------- Info -----------------------------
List Archives: <http://dir.gmane.org/gmane.emacs.macintosh.osx>
---------------------------- Info -----------------------------
List Post: <mailto:macosx-***@email.esm.psu.edu>
List Archives: <http://dir.gmane.org/gmane.emacs.macintosh.osx>
Peter Dyballa
2007-07-09 22:22:12 UTC
Permalink
Post by David Romano
2) A more fundamental(?) problem may be that my machine is running
OS 10.3.9, and so PDFView and Skim may simply not be avaible to me
as alternatives to Preview. Are there others that would be?
TeXShop.

--
Greetings

Pete

The light at the end of the tunnel has been turned off due to budget
cuts.


---------------------------- Info -----------------------------
List Post: <mailto:macosx-***@email.esm.psu.edu>
List Archives: <http://dir.gmane.org/gmane.emacs.macintosh.osx>
Alex Hamann
2007-07-10 07:27:39 UTC
Permalink
Hi David,
Post by David Romano
Thanks everyone for your suggestions. I've found that my troubles
seem to come from the following.
Changing one's .emacs file or using the Customization menu and
entering the appropriate information for the appropriate variables.
At present, I have no .emacs file and am a little worried I'd
mess things up if I create one. (I can copy someone else's but I
would simply be operating as a human cut-and-paste function -- I
have no understanding of Lisp.) In terms of the customization menu
approach, I can mimic what I see in the default variable values,
but I don't know what I'm doing there either: e.g., I installed
Extension: ^pdf$
Choice: Value Menu Regexp: ^PDFView$
Command: open -a PDFView.app %o.
So in either case, ignorance is the problem, and reading the
manuals and archived list messages is only slightly ameliorating it.
2) A more fundamental(?) problem may be that my machine is running
OS 10.3.9, and so PDFView and Skim may simply not be avaible to me
as alternatives to Preview. Are there others that would be?
Not 100% sure but TeXniscope should work
(on the website it says : "The current version (v0.3) does not work
in OSX 10.2." Implies that with 10.3 you should be safe, right?

Alex
Post by David Romano
If anyone has any advice about 1) or 2), I would be grateful for it.
Thanks again,
David Romano
Post by David Romano
I've just installed Aquamacs and am having trouble figuring out
how change the pdf viewer that gets called (by AUCTeX) by default
(i.e., Preview). Any suggestions?
Thanks for the help!
David Romano
---------------------------- Info -----------------------------
List Archives: <http://dir.gmane.org/gmane.emacs.macintosh.osx>
---------------------------- Info -----------------------------
List Archives: <http://dir.gmane.org/gmane.emacs.macintosh.osx>
---------------------------- Info -----------------------------
List Post: <mailto:macosx-***@email.esm.psu.edu>
List Archives: <http://dir.gmane.org/gmane.emacs.macintosh.osx>
M A
2007-07-10 15:29:43 UTC
Permalink
h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=SgrfGZM+msNcDLchSknIAI9hXzFozLaaciZYbT3RJz48JVnsEWGbMgVcuJum+6HpRlT/d9hSMkB7JJFwDup7QWhutjb4lJGRFCjOp/pGWcHmD/omxErfR4V/hyYjZ+WmvEubUX5II2Wsay3RHHCgtQmt8xZbKF4QSO7+JgbuGYw=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta;

h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=VSJzvMUJi/V6JLS4E1VYTUrKvi/dz7+AKsKfCt+LRtNBt4d0wXxBiKoCp2SpUOPsbNavQhO6rLkJvqukJQmQtoU1WHYNJkffKPqMxA5avvq8tZQFRWuvPQeXVrnzmxPeZyzwn4+zX5kHwF5RRCvH56xLOzxSBjLf9o0wXmVtb+Q=
In-Reply-To: <***@euler.math.grinnell.edu>
Content-Disposition: inline
Sender: <macosx-***@email.esm.psu.edu>
Precedence: List
List-Software: LetterRip Pro 4.07 by LetterRip Software, LLC.
List-Subscribe: <mailto:macosx-emacs-***@email.esm.psu.edu>
List-Digest: <mailto:macosx-emacs-***@email.esm.psu.edu>
List-Unsubscribe: <mailto:macosx-emacs-***@email.esm.psu.edu>
X-LR-SENT-TO: mail.engr.psu.edu
X-OriginalArrivalTime: 10 Jul 2007 15:32:20.0021 (UTC) FILETIME=[81064E50:01C7C307]
Archived-At: <http://permalink.gmane.org/gmane.emacs.macintosh.osx/3172>
Post by David Romano
Thanks everyone for your suggestions. I've found that my troubles seem to
come from the following.
1) There seem to be two choices for customizing Aquamacs Emacs: Changing
one's .emacs file or using the Customization menu and entering the
appropriate information for the appropriate variables.
At present, I have no .emacs file and am a little worried I'd mess
things up if I create one. (I can copy someone else's but I would simply
be operating as a human cut-and-paste function -- I have no understanding
of Lisp.) In terms of the customization menu approach, I can mimic what I
see in the default variable values, but I don't know what I'm doing there
either: e.g., I installed PDFView and inserted the following in the
Extension: ^pdf$
Choice: Value Menu Regexp: ^PDFView$
Command: open -a PDFView.app %o.
So in either case, ignorance is the problem, and reading the
manuals and archived list messages is only slightly ameliorating it.
It's certainly true that the documentation in the customizations menu
gives you some information, but it can be very difficult to parse. In
your case, you should change the line:

Choice: Value Menu Regexp: ^PDFView$

to

Choice: Value Menu Regexp: .

(a period instead of ^PDFView$). Then, be sure to push the "Save for
future sessions" button near the top of the customizations. FYI, the
"Choice: Value Menu Regexp: ..." is meant to match against options in
the documentclass. The idea is more relevant for dvi output than pdf
where emacs tries to figure out the page size and orientation so that
the dvi viewer will give you the correct layout.
Post by David Romano
2) A more fundamental(?) problem may be that my machine is running OS
10.3.9, and so PDFView and Skim may simply not be avaible to me as
alternatives to Preview. Are there others that would be?
If PDFView and Skim do not work on 10.3.9 then you could do as either
Alex or Peter suggested and try Texniscope of TexShop in the "Command:
" portion of the customization menu.

Mark A
---------------------------- Info -----------------------------
List Post: <mailto:macosx-***@email.esm.psu.edu>
List Archives: <http://dir.gmane.org/gmane.emacs.macintosh.osx>
David Romano
2007-07-13 21:03:42 UTC
Permalink
I've managed to install TeXShop to use as a pdf viewer for Aquamacs
(AUCTeX), but I can't seem to get it to perform an inverse search (i.e.,
to find the point in source file that corresponds to where I click
on the viewed pdf file.) I'm not sure what I'm doing wrong: I've set all
the variables as described in the AUCTeX manual (I think!); any help
would be greatly appreciated!

Thanks,
David Romano
---------------------------- Info -----------------------------
List Post: <mailto:macosx-***@email.esm.psu.edu>
List Archives: <http://dir.gmane.org/gmane.emacs.macintosh.osx>
Alex Hamann
2007-07-14 07:15:36 UTC
Permalink
pdf-source syncing is not dependent on your AUCTeX settings but on
your TeXShop settings. Did you configure TeXShop to work with an
external editor?

A.
Post by David Romano
I've managed to install TeXShop to use as a pdf viewer for Aquamacs
(AUCTeX), but I can't seem to get it to perform an inverse search
(i.e., to find the point in source file that corresponds to where I
I've set all the variables as described in the AUCTeX manual (I
think!); any help would be greatly appreciated!
Thanks,
David Romano
---------------------------- Info -----------------------------
List Archives: <http://dir.gmane.org/gmane.emacs.macintosh.osx>
=============================================
please avoid sending me word attachements; see
http://www.gnu.org/philosophy/no-word-attachments.html
for details and background


---------------------------- Info -----------------------------
List Post: <mailto:macosx-***@email.esm.psu.edu>
List Archives: <http://dir.gmane.org/gmane.emacs.macintosh.osx>
David Romano
2007-07-14 11:05:32 UTC
Permalink
pdf-source syncing is not dependent on your AUCTeX settings but on your
TeXShop settings. Did you configure TeXShop to work with an external
editor?

I did; at least, I checked that preference in TeXShop, but I don't know if
more needs to be done. I do get automatic updates of the pdf when I
re-typeset the source file, though.

Thanks for straightening me out on which program is responsible -- I'll
dig around in the TeXShop documentation to see what I can find.

Thanks again,
David
Post by David Romano
I've managed to install TeXShop to use as a pdf viewer for Aquamacs
(AUCTeX), but I can't seem to get it to perform an inverse search (i.e., to
find the point in source file that corresponds to where I click on the
viewed pdf file.) I'm not sure what I'm doing wrong: I've set all the
variables as described in the AUCTeX manual (I think!); any help would be
greatly appreciated!
Thanks,
David Romano
---------------------------- Info -----------------------------
List Archives: <http://dir.gmane.org/gmane.emacs.macintosh.osx>
=============================================
please avoid sending me word attachements; see
http://www.gnu.org/philosophy/no-word-attachments.html
for details and background
---------------------------- Info -----------------------------
List Archives: <http://dir.gmane.org/gmane.emacs.macintosh.osx>
---------------------------- Info -----------------------------
List Post: <mailto:macosx-***@email.esm.psu.edu>
List Archives: <http://dir.gmane.org/gmane.emacs.macintosh.osx>
Alex Hamann
2007-07-14 12:18:51 UTC
Permalink
Just had a quick look around and found this: http://www.nabble.com/
pdfsync-and-TeXShop-t4019657.html
If that's true (something I am not sure about) you might want to
think about switching to skim.app...

A.
Post by David Romano
Post by Alex Hamann
pdf-source syncing is not dependent on your AUCTeX settings but on
your
TeXShop settings. Did you configure TeXShop to work with an external
editor?
I did; at least, I checked that preference in TeXShop, but I don't
know if
more needs to be done. I do get automatic updates of the pdf when I
re-typeset the source file, though.
Thanks for straightening me out on which program is responsible --
I'll
dig around in the TeXShop documentation to see what I can find.
Thanks again,
David
Post by Alex Hamann
Post by David Romano
I've managed to install TeXShop to use as a pdf viewer for
Aquamacs (AUCTeX), but I can't seem to get it to perform an
inverse search (i.e., to find the point in source file that
corresponds to where I click on the viewed pdf file.) I'm not
sure what I'm doing wrong: I've set all the variables as
described in the AUCTeX manual (I think!); any help would be
greatly appreciated!
Thanks,
David Romano
=============================================
please avoid sending me word attachements; see
http://www.gnu.org/philosophy/no-word-attachments.html
for details and background


---------------------------- Info -----------------------------
List Post: <mailto:macosx-***@email.esm.psu.edu>
List Archives: <http://dir.gmane.org/gmane.emacs.macintosh.osx>

Loading...