David Strozzi | 7 Feb 2007 22:35
Picon

pdf, latex, and aquamacs

Hi,

I'm having a little trouble using aquamacs 0.9.9d to work with latex
files.  I'd like to use pdflatex and get pdf, rather than plain latex
and dvi.  I can compile fine, and view the pdf with apple's preview
fine.  But when I re-compile, then I hit problems.  I can't seem to
get the nice xdvi behavior, where if you re-compile and then go to
xdvi you can just his reload, and an updated version appears.

Can I replicate this behavior in pdf-land?

Thanks,
David
---------------------------- Info -----------------------------
List Post: <mailto:macosx-emacs <at> email.esm.psu.edu>
List Archives: <http://dir.gmane.org/gmane.emacs.macintosh.osx>

Kamen Nedev | 7 Feb 2007 23:10
Picon

Re: pdf, latex, and aquamacs

David,

Preview.app is indeed a fantastic, lightning-fast viewer for almost  
any kind of PS, PDF, and bitmap file. But I don't find it  
particularly useful for previewing LaTeX output - it simply lacks  
some of the features one needs for that (re-reading the file at every  
compilation is one of them, as you mention; zooming in or out is also  
cumbersome, and use of LaTeX source-specials is absolutely out of the  
question).

I have looked at a number of alternatives for viewing LaTeX output  
myself, and the two best options I have found so far are the following:

TeXniscope  (http://www2.ing.unipi.it/~d9615/homepage/ 
texniscope.html) is by far the best option for me. It is a fantastic  
viewer, with a great interface, and it can handle source-specials  
(via the PDFsync package). Above all, it handles both PDF and DVI  
output, which makes it ideally suited for LaTeX. Just ignore the  
rather poor icon ;-).

PDFView, (http://pdfview.sourceforge.net/) which is my default PDF  
viewer now, is another option, and a fairly nice one, too. It only  
reads PDF, but since most LaTeX output nowadays ends up as a PDF  
file, it's good as far as it goes -  and it syncs with the file at  
every recompilation. Here's some instructions on how to set it up to  
work with source-specials:

http://pdfview.sourceforge.net/latex.html

I'm not sure, but I believe at least TeXniscope is included in the  
(Continue reading)

Martin Henry H. Stevens | 9 Feb 2007 23:15

Re: pdf, latex, and aquamacs

Hi David,
It works for me with Preview, and I just close the Preview window  
(apple-w) before (or after) re-compile. It isn't great... but I use it.
Hank
On Feb 7, 2007, at 4:35 PM, David Strozzi wrote:

> Hi,
>
> I'm having a little trouble using aquamacs 0.9.9d to work with latex
> files.  I'd like to use pdflatex and get pdf, rather than plain latex
> and dvi.  I can compile fine, and view the pdf with apple's preview
> fine.  But when I re-compile, then I hit problems.  I can't seem to
> get the nice xdvi behavior, where if you re-compile and then go to
> xdvi you can just his reload, and an updated version appears.
>
> Can I replicate this behavior in pdf-land?
>
> Thanks,
> David
> ---------------------------- Info -----------------------------
> List Post: <mailto:macosx-emacs <at> email.esm.psu.edu>
> List Archives: <http://dir.gmane.org/gmane.emacs.macintosh.osx>
>

Dr. Hank Stevens, Assistant Professor
338 Pearson Hall
Botany Department
Miami University
Oxford, OH 45056

(Continue reading)

Steve Peter | 9 Feb 2007 23:41
Favicon

Re: pdf, latex, and aquamacs


>> I'm having a little trouble using aquamacs 0.9.9d to work with latex
>> files.  I'd like to use pdflatex and get pdf, rather than plain latex
>> and dvi.  I can compile fine, and view the pdf with apple's preview
>> fine.  But when I re-compile, then I hit problems.  I can't seem to
>> get the nice xdvi behavior, where if you re-compile and then go to
>> xdvi you can just his reload, and an updated version appears.
>>
>> Can I replicate this behavior in pdf-land?

David,

You can probably replicate this behavior, but using PDFView (http:// 
pdfview.sourceforge.net/), you will get one difference: you won't  
have to hit reload.

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

Christopher Menzel | 11 Feb 2007 21:03
Picon
Favicon

Re: pdf, latex, and aquamacs

On 9 Feb, at 4:15 , Martin Henry H. Stevens wrote:
> On Feb 7, 2007, at 4:35 PM, David Strozzi wrote:
>
>> Hi,
>>
>> I'm having a little trouble using aquamacs 0.9.9d to work with latex
>> files.  I'd like to use pdflatex and get pdf, rather than plain latex
>> and dvi.  I can compile fine, and view the pdf with apple's preview
>> fine.  But when I re-compile, then I hit problems.  I can't seem to
>> get the nice xdvi behavior, where if you re-compile and then go to
>> xdvi you can just his reload, and an updated version appears.
>>
>> Can I replicate this behavior in pdf-land?
>
> Hi David,
> It works for me with Preview, and I just close the Preview window  
> (apple-w) before (or after) re-compile.  It isn't great...

To say the least, since, in addition to having to switch to the  
Preview window first and then switch back to Emacs, you then have to  
find your place in the document -- manually at that, without the  
benefit of source to preview sync.  We are admittedly spoiled in  
these days of fast hardware and sophisticated software, but going  
through that cumbersome and distracting procedure every time you want  
to preview would seem to me to have a significant negative impact on  
the quality of one's work environment.

> but I use it.

But *why* put up with it when vastly superior, easily installed/ 
(Continue reading)

Joseph C. Slater | 13 Feb 2007 19:51
Picon

Re: pdf, latex, and aquamacs


On Feb 11, 2007, at 3:03 PM, Christopher Menzel wrote:

> On 9 Feb, at 4:15 , Martin Henry H. Stevens wrote:
>> On Feb 7, 2007, at 4:35 PM, David Strozzi wrote:
> <snip>
> To say the least, since, in addition to having to switch to the  
> Preview window first and then switch back to Emacs, you then have  
> to find your place in the document -- manually at that, without the  
> benefit of source to preview sync.  We are admittedly spoiled in  
> these days of fast hardware and sophisticated software, but going  
> through that cumbersome and distracting procedure every time you  
> want to preview would seem to me to have a significant negative  
> impact on the quality of one's work environment.
>
>> but I use it.
>
> But *why* put up with it when vastly superior, easily installed/ 
> configured options exist on which previewing is seamlessly  
> integrated with Emacs and nearly instantaneous -- notably, PDFView,  
> TeXniscope, and TeXShop (configured for use with an external editor)?
>

Have you gotten PDFView to work with emacs? The info on the website  
didn't work for me. Would someone please send me a working .emacs  
file that enables synchronization from emacs to the pdf file? Putting  
the PDFView sync command as the View command doesn't even work for me.
Thanks,
Joe
---------------------------- Info -----------------------------
(Continue reading)

Christopher Menzel | 13 Feb 2007 20:58
Picon
Favicon

Re: pdf, latex, and aquamacs

On Feb 13, 2007, at 12:51 PM, Joseph C. Slater wrote:
> Have you gotten PDFView to work with emacs? The info on the website  
> didn't work for me. Would someone please send me a working .emacs  
> file that enables synchronization from emacs to the pdf file?

Hm, I'm a bit mystified.  I have sync working great on my Macbook,  
but I just got my Intel iMac back from the shop and am using  
*exactly* the same .emacs and .customizations.el files (I'm using  
Aquamacs Emacs) and syncing works on the Macbook but it doesn't work  
at all on the iMac.  Not sure if it works under GNU Emacs on the  
MacBook, but it doesn't on the iMac for sure.  I have no idea what's  
going on there.  I will have to use TeXniscope on the iMac til I can  
figure that one out.  I'll let you know if I do.

Chris Menzel

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

Joseph C. Slater | 13 Feb 2007 21:18
Picon

Re: pdf, latex, and aquamacs


On Feb 13, 2007, at 2:58 PM, Christopher Menzel wrote:

> On Feb 13, 2007, at 12:51 PM, Joseph C. Slater wrote:
>> Have you gotten PDFView to work with emacs? The info on the  
>> website didn't work for me. Would someone please send me a  
>> working .emacs file that enables synchronization from emacs to the  
>> pdf file?
>
> Hm, I'm a bit mystified.  I have sync working great on my Macbook,  
> but I just got my Intel iMac back from the shop and am using  
> *exactly* the same .emacs and .customizations.el files (I'm using  
> Aquamacs Emacs) and syncing works on the Macbook but it doesn't  
> work at all on the iMac.  Not sure if it works under GNU Emacs on  
> the MacBook, but it doesn't on the iMac for sure.  I have no idea  
> what's going on there.  I will have to use TeXniscope on the iMac  
> til I can figure that one out.  I'll let you know if I do.

Would you send me your .emacs file to play with? I'm using:
http://homepage.mac.com/zenitani/emacs-e.html
I'll try aquamacs now.

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

Joseph C. Slater | 13 Feb 2007 21:48
Picon

Re: pdf, latex, and aquamacs


On Feb 13, 2007, at 2:58 PM, Christopher Menzel wrote:

> On Feb 13, 2007, at 12:51 PM, Joseph C. Slater wrote:
>> Have you gotten PDFView to work with emacs? The info on the  
>> website didn't work for me. Would someone please send me a  
>> working .emacs file that enables synchronization from emacs to the  
>> pdf file?
>
> Hm, I'm a bit mystified.  I have sync working great on my Macbook,  
> but I just got my Intel iMac back from the shop and am using  
> *exactly* the same .emacs and .customizations.el files (I'm using  
> Aquamacs Emacs) and syncing works on the Macbook but it doesn't  
> work at all on the iMac.  Not sure if it works under GNU Emacs on  
> the MacBook, but it doesn't on the iMac for sure.  I have no idea  
> what's going on there.  I will have to use TeXniscope on the iMac  
> til I can figure that one out.  I'll let you know if I do.
>

Well, I stripped down my .emacs file and have synchronization  
working, but nothing else. The suggested osascript to raise emacs to  
the top doesn't work. If I leave it in then when a latex file is  
opened emacs freezes. 
---------------------------- Info -----------------------------
List Post: <mailto:macosx-emacs <at> email.esm.psu.edu>
List Archives: <http://dir.gmane.org/gmane.emacs.macintosh.osx>

Joseph C. Slater | 13 Feb 2007 21:51
Picon

Re: pdf, latex, and aquamacs


On Feb 13, 2007, at 3:48 PM, Joseph C. Slater wrote:

>
> On Feb 13, 2007, at 2:58 PM, Christopher Menzel wrote:
> <snip>
>
> Well, I stripped down my .emacs file and have synchronization  
> working, but nothing else. The suggested osascript to raise emacs  
> to the top doesn't work. If I leave it in then when a latex file is  
> opened emacs freezes.

The freeze only happens if the latex file is opened by being  
commanded from PDFView, not using C-x C-f. Once the file is open it  
works fine, although I've lost all my other settings in the mean time. 
---------------------------- Info -----------------------------
List Post: <mailto:macosx-emacs <at> email.esm.psu.edu>
List Archives: <http://dir.gmane.org/gmane.emacs.macintosh.osx>


Gmane