From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Giacomo Boffi Newsgroups: gmane.emacs.help Subject: Re: bad interaction: beamer, amsmath, preview-latex Date: Wed, 12 May 2010 14:57:34 +0200 Organization: One Step Beyond Message-ID: <86632ttgzl.fsf@aiuole.stru.polimi.it> References: <86eihh1mj1.fsf@aiuole.stru.polimi.it> <87vdat4e2t.fsf@lola.goethe.zz> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1291828014 24334 80.91.229.12 (8 Dec 2010 17:06:54 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 8 Dec 2010 17:06:54 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 08 18:06:47 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PQNTV-00065d-IH for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Dec 2010 18:06:41 +0100 Original-Received: from localhost ([127.0.0.1]:59984 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQNTU-0008AI-S3 for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Dec 2010 12:06:40 -0500 Original-Path: usenet.stanford.edu!newsserver.news.garr.it!newsserver.cilea.it!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 54 Original-NNTP-Posting-Host: donzauker.stru.polimi.it Original-X-Trace: newsserver.cilea.it 1273669040 13231 131.175.189.147 (12 May 2010 12:57:20 GMT) Original-X-Complaints-To: news@cilea.it Original-NNTP-Posting-Date: 12 May 2010 12:57:20 GMT User-Agent: Gnus/5.1008 (Gnus v5.10.8) XEmacs/21.5-b29 (linux) Cancel-Lock: sha1:J9f+baoLT5RrczU79pjfZJucIJw= Original-Xref: usenet.stanford.edu gnu.emacs.help:178152 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:75666 Archived-At: David Kastrup writes: > Giacomo Boffi writes: > >> _[xposted, followup set to gnu.emacs.help]_ >> >> i have two files, one (yb.tex) that uses the beamer class and another >> (nb.tex) that uses the article class >> >> when i use preview-latex to generate inline pictures of my equation, >> in the first case it does not work, while in the second case it works >> as usual > > You'll need some decisions about what kind of previews you want -- > whole slides, just equations or something. And then you need to > configure preview.sty to deal with what you want. Should be > described in the manual. but it's not easy to be spotted... i used ... \usepackage[displaymath,textmath,sections]{preview} \begin{document} ... but math in ams environments was not rendered in emacs then i added a preview environment to an AMS display \begin{preview} \begin{align*} \mat{U}\,\vet{x}_{n+1}&=\vet{z}_{n+1}\\ \mat{L}\,\vet{z}_{n+1}&=\vet{w}_{n} \end{align*} \end{preview} i got what i wanted, yes, but i felt that going back to every AMS environment i used was a little too much, but finally i used ... \usepackage[displaymath,textmath,sections]{preview} \PreviewEnvironment{align*} % etc \begin{document} ... and now i'm happy now, if someone (David?) could explain a better solution or, maybe, give the "preview whole slides" howto... thank you, g -- per crimini come l'umanita'. MMAX, in IPI+IHC