[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [AUCTeX] preview \cite

From: emacs user
Subject: Re: [AUCTeX] preview \cite
Date: Sat, 15 Jan 2011 19:57:12 +0200

thanks for the response.  I get a question mark with this example too.
 here is the latex version, I am using mac os X snow leopard.  problem
occurs with gnu emacs 23.2 as well.  it does not go away when I turn
off pdf mode.  anything else I can do to help diagnose this?  best, E

~ $ pdflatex --version
pdfTeX 3.1415926-1.40.11-2.2 (TeX Live 2010)
kpathsea version 6.0.0
Copyright 2010 Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX).
There is NO warranty.  Redistribution of this software is
covered by the terms of both the pdfTeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the pdfTeX source.
Primary author of pdfTeX: Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX).
Compiled with libpng 1.2.40; using libpng 1.2.40
Compiled with zlib 1.2.3; using zlib 1.2.3
Compiled with xpdf version 3.02pl4

On Fri, Jan 14, 2011 at 5:41 PM, Ralf Angeli <address@hidden> wrote:
> * emacs user (2011-01-13) writes:
>> Hi all, I am trying to have \cite commands be previewed, so I can see
>> the actual reference.  I put in the preamble of the latex file
>> \usepackage[sections,displaymath,textmath,graphics,floats]{preview}
>> \PreviewMacro[!]{\cite}
>> and then I have ... \cite{myauthor}
>> previewing this in gnu emacs (24.0.50), I get a question mark instead
>> of the reference.  c-c c-l shows that latex complains about the
>> reference being undefined.  I tried to run bibtex before doing the
>> preview, doesn't help.   The reference comes out fine in the pdf file
>> produced by latex.
>> any suggestions as to what I may be doing wrong?
> FWIW, the following example is running fine with a development Emacs on
> GNU/Linux with TeX Live 2009:
> --8<---------------cut here---------------start------------->8---
> \begin{filecontents}{test.bib}
> @Book{jones:99,
>  author       = {Jones, Steve},
>  title        = {My Life So Far},
>  publisher    = {ACME, Inc.},
>  year         = 1999
> }
> \end{filecontents}
> \documentclass{article}
> \usepackage[sections,displaymath,textmath,graphics,floats]{preview}
> \PreviewMacro[!]{\cite}
> \begin{document}
> foo\cite{jones:99} bar
> \bibliographystyle{plain}
> \bibliography{test}
> \end{document}
> %%% Local Variables:
> %%% mode: latex
> %%% TeX-master: t
> %%% TeX-PDF-mode: t
> %%% End:
> --8<---------------cut here---------------end--------------->8---
> The only problem I encountered was that the source for the preview is
> not opened when point is moved over it.  This could be a regression in
> Emacs.
> With respect to your problem, does it work if you disable TeX PDF mode?
> Or asked another way: What's your Ghostscript version?
> --
> Ralf

reply via email to

[Prev in Thread] Current Thread [Next in Thread]