auctex
[Top][All Lists]
Advanced

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

Re: [AUCTeX] First preview image is of full page size


From: Tassilo Horn
Subject: Re: [AUCTeX] First preview image is of full page size
Date: Thu, 27 Aug 2015 16:39:04 +0200
User-agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.0.50 (gnu/linux)

Joost Kremers <address@hidden> writes:

Hi Joost,
>> Needless to say that I can't reproduce that.
>
> Obviously. ;-) (Sorry if my "needless to say sounded a bit
> aggressive...")

No, it didn't sound aggressive at all.

> Still, trying to make the example even more minimal, I just found out
> what the culprit was: the combination of scrbook as document class and
> XeLaTeX...
>
> Here's a MWE:
>
> ```
> \documentclass{scrbook}
>
> \begin{document}
>
>      \[
>         \frac{d}{dx}\left( \int_{0}^{x} f(u)\,du\right)=f(x).
>      \]
>
> \end{document}
> ```
>
> Preview that with `TeX-engine` set to `xetex` and you should see the
> problem.  Changing `scrbook` to `book`, or using the default engine
> should make it go away again.

Indeed, I can reproduce that.  And looking at the output, always the
snippet which will be shown as a complete page has this "Preview:
Tightpage..." line.

--8<---------------cut here---------------start------------->8---
./ptest.tex:5: Preview: Snippet 1 started.
<-><->
      
l.5      \[
           
Preview: Tightpage -32891 -32891 32891 32891
./ptest.tex:7: Preview: Snippet 1 ended.(1590856+0x17705980).
<-><->
      
l.7      \]
           
[1]
./ptest.tex:9: Preview: Snippet 2 started.
<-><->
      
l.9      \[
           
./ptest.tex:11: Preview: Snippet 2 ended.(1590856+0x17705980).
<-><->
      
l.11      \]
            
[2] )
--8<---------------cut here---------------end--------------->8---

>> Basically, you should be able to use the ELPA AUCTeX without configs
>> like so:
>>
>>   1. emacs -Q
>>   2. M-x package-initialize RET
>>   3. Find a latex file and do what you wanted to do
>
> I was afraid that might load some of the other packages I have
> installed as well.

Indeed, you are right.  I think you could eval this in scratch to only
activate auctex:

  (package-initialize t)
  (package-activate 'auctex)

> But perhaps I shouldn't worry too much about that.

Usually, no, at least if it is unlikely that an issue is caused by some
wicked interplay between multiple packages.

> Anyway, I hope you can reproduce the problem now and can figure out
> what's going on. Thanks!

I can reproduce it but preview is some kind of black magic for me.  So
hopefully someone else can have a look at this.

Bye,
Tassilo



reply via email to

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