Matthew Bainbridge | 4 Nov 2009 11:53
Picon
Picon

forcing view with xdvi

Dear List,

When I view a document from within emacs using C-c C-c (view), AUCTeX 
normally uses xdvi.  This is very convenient, since am using forward and 
inverse search, etc.

The problem is when my document uses graphics (for example .eps), AUXTeX 
instead uses gv:
 	dvips foo.dvi -o && gv foo.ps
Is there some way to force AUCTeX to always use xdvi?  I tried adding
%%% TeX-output-view-style: (("^dvi$" "." "xdvi -s 4 -watchfile 1 %dS%d"))
to the end of the file, but there is no effect.

Best,
Matt
Ralf Angeli | 4 Nov 2009 18:12

Re: forcing view with xdvi

* Matthew Bainbridge (2009-11-04) writes:

> When I view a document from within emacs using C-c C-c (view), AUCTeX 
> normally uses xdvi.  This is very convenient, since am using forward and 
> inverse search, etc.
>
> The problem is when my document uses graphics (for example .eps), AUXTeX 
> instead uses gv:
>  	dvips foo.dvi -o && gv foo.ps

It's not the use of graphics which leads to this.  You likely loaded a
PSTricks package.

> Is there some way to force AUCTeX to always use xdvi?  I tried adding
> %%% TeX-output-view-style: (("^dvi$" "." "xdvi -s 4 -watchfile 1 %dS%d"))
> to the end of the file, but there is no effect.

Works fine here.  Is this a document with multiple files you are dealing
with?

--

-- 
Ralf
Matthew Bainbridge | 4 Nov 2009 19:29
Picon
Picon

Re: forcing view with xdvi

Thanks for your quick reply.

I don't think I'm using PSTricks, but the problem seems to be the psfrag 
package.  With the following document, dvips && gv is used:

\documentclass{article}
\usepackage{psfrag}

\begin{document}
test
\end{document}

But if I comment out the \usepackage line, it uses xdvi.  Do you know if 
it is possible to use psfrag and have xdvi function normally?  Maybe there 
is something screwy in my .emacs file.  The relevent part seems to be 
this:

        (TeX-source-specials-mode 1)
        (setq TeX-source-specials-view-start-server t)
        ;; Special arguments to put XDVI in the correct place.
        (setq xdvi-extras
              (concat "-xoffset .35in -yoffset .4in "
                      "-s 4 -geometry 1800x1900+0+0"))
             ;; Add the above arguments to all instances of xdvi
        (unless (get 'TeX-output-view-style 'xdvi-extra)
          (mapcar (lambda (list)
                    (let ((func (nth 2 list)))
                      (if (string-match "xdvi" func)
                          (setq func
                                (replace-match
(Continue reading)

Ralf Angeli | 4 Nov 2009 20:41

Re: forcing view with xdvi

* Matthew Bainbridge (2009-11-04) writes:

> I don't think I'm using PSTricks, but the problem seems to be the psfrag 
> package.

Yes, psfrag is "supported" as well.

> But if I comment out the \usepackage line, it uses xdvi.  Do you know if 
> it is possible to use psfrag and have xdvi function normally?

The idea is that if you use a package related to Postscript graphics,
you don't want to start a viewer which is not able to display such
graphics.  Under this assumption, starting dvips and gv would be
considered "normal".

If you don't want that, throw out the entries in `TeX-output-view-style'
which check for PSTricks packages and psfrag.  Either programmatically
like you do below or manually with `M-x customize-variable <RET> ...'.

> Maybe there 
> is something screwy in my .emacs file.  The relevent part seems to be 
> this:
>
>         (TeX-source-specials-mode 1)
>         (setq TeX-source-specials-view-start-server t)
>         ;; Special arguments to put XDVI in the correct place.
>         (setq xdvi-extras
>               (concat "-xoffset .35in -yoffset .4in "
>                       "-s 4 -geometry 1800x1900+0+0"))
>              ;; Add the above arguments to all instances of xdvi
(Continue reading)

Matthew Bainbridge | 4 Nov 2009 23:27
Picon
Picon

Re: forcing view with xdvi

M-x customize-variable did the trick.  Thanks so much!

--Matt

On Wed, 4 Nov 2009, Ralf Angeli wrote:

> * Matthew Bainbridge (2009-11-04) writes:
>
>> I don't think I'm using PSTricks, but the problem seems to be the psfrag
>> package.
>
> Yes, psfrag is "supported" as well.
>
>> But if I comment out the \usepackage line, it uses xdvi.  Do you know if
>> it is possible to use psfrag and have xdvi function normally?
>
> The idea is that if you use a package related to Postscript graphics,
> you don't want to start a viewer which is not able to display such
> graphics.  Under this assumption, starting dvips and gv would be
> considered "normal".
>
> If you don't want that, throw out the entries in `TeX-output-view-style'
> which check for PSTricks packages and psfrag.  Either programmatically
> like you do below or manually with `M-x customize-variable <RET> ...'.
>
>> Maybe there
>> is something screwy in my .emacs file.  The relevent part seems to be
>> this:
>>
>>         (TeX-source-specials-mode 1)
(Continue reading)

Alasdair McAndrew | 7 Nov 2009 22:22
Picon
Gravatar

Two auctex questions

I've just installed a brand-new ubuntu 9.10 system, with (gnu) emacs 23 and auctex (v. 11.84).  However, there are two problems: (1) the menus for "LaTeX" or "Command" don't appear, and (2) I'd like the option of turning off the preview functionality.

If anybody has some advice, I'd be delighted.

Thanks,
Alasdair

--
Blog: http://amca01.wordpress.com
Web:  http://bit.ly/Alasdair
Facebook: http://www.facebook.com/alasdair.mcandrew

_______________________________________________
auctex mailing list
auctex <at> gnu.org
http://lists.gnu.org/mailman/listinfo/auctex
Alan E. Davis | 8 Nov 2009 14:32
Picon

only PDFLaTeX working all of a suddent: emacs 23

Suddenly, my source wouldn't compile because images are in *.eps format.  I understood at the point, that somehow PDFLaTeX was being run.  I now notice that in the Minibuffer message bar is a flag showing the PDFLaTeX is active, and not LaTeX, which would ordinarily indicate that AUCTeX is active.  


I have to compile LaTeX outside of emacs, if I want anything other than a PDF.  With the PDF, the "view" command does nothing.  It would be helpful to be able to configure this: I don't know how to do it.

I am running Gentoo GNU/Linux, AUCTeX 11.85, TexLive 2008, and recent Emacs 23 (In particular: GNU Emacs 23.1.50.1 (x86_64-pc-linux-gnu, GTK+ Version 2.16.5)  of 2009-08-30 on spineless).  


Thank you very much 

Alan Davis
_______________________________________________
auctex mailing list
auctex <at> gnu.org
http://lists.gnu.org/mailman/listinfo/auctex
José Carlos Santos | 8 Nov 2009 15:19
Picon
Favicon

Re: only PDFLaTeX working all of a suddent: emacs 23

On 08-11-2009 13:32, Alan E. Davis wrote:

> Suddenly, my source wouldn't compile because images are in *.eps format. 
>  I understood at the point, that somehow PDFLaTeX was being run.  I now 
> notice that in the Minibuffer message bar is a flag showing the PDFLaTeX 
> is active, and not LaTeX, which would ordinarily indicate that AUCTeX is 
> active.  
> 
> I have to compile LaTeX outside of emacs, if I want anything other than 
> a PDF.  With the PDF, the "view" command does nothing.  It would be 
> helpful to be able to configure this: I don't know how to do it.
> 
> I am running Gentoo GNU/Linux, AUCTeX 11.85, TexLive 2008, and recent 
> Emacs 23 (In particular: GNU Emacs 23.1.50.1 (x86_64-pc-linux-gnu, GTK+ 
> Version 2.16.5)  of 2009-08-30 on spineless).  

C-c C-t C-p exchanges between creating a PDF file and creating a DVI file.

Best regards,

Jose Carlos Santos
Mr. Wang Long | 8 Nov 2009 15:38
Picon

Re: Two auctex questions

On Sun, Nov 8, 2009 at 05:22, Alasdair McAndrew <amca01 <at> gmail.com> wrote:
> I've just installed a brand-new ubuntu 9.10 system, with (gnu) emacs 23 and
> auctex (v. 11.84).  However, there are two problems: (1) the menus for
> "LaTeX" or "Command" don't appear, and (2) I'd like the option of turning
> off the preview functionality.
>
> If anybody has some advice, I'd be delighted.
>
> Thanks,
> Alasdair
>
You may want to refer to these bug reports:
https://bugs.launchpad.net/ubuntu/+source/emacs23/+bug/415101
http://bugs.debian.org/550541

Regards,
Wang Long
J.Burton | 9 Nov 2009 12:46
Picon
Favicon

Preview in document that includes other files

Hi, my thesis is structured like this:

main.tex
chapters/ch1/main.tex

The master file includes the chapters:

\include{chapters/ch1/main}

each of which has the special variable:

%%% TeX-master: "../../main"

Until recently each chapter was a separate document and I had no
problem using preview. Now I can't preview and get red "stop" signs by
each formula and graphic. If I try to preview a section in
chapters/ch1/main.tex I get this error:

pdfTeX warning (\pdfobj): invalid object number being ignored

pdfTeX warning (\pdfobj): invalid object number being ignored
 )
(\end occurred inside a group at level 1)

### semi simple group (level 1) entered at line 69 (\begingroup)
### bottom level
(see the transcript file for additional information)
No pages of output.
Transcript written on _region_.log.

Preview-LaTeX exited as expected with code 1 at Mon Nov  9 11:11:11
LaTeX: LaTeX found no preview images

%%%%%%%%%%%%%%%%%%%%%%

I've attached _region_.log, which contains a lot of errors but the
file compiles without errors or warnings, so I'm not sure what they
mean. 

I am using AUCTeX 11.85, Emacs 23.0.91, ubuntu jaunty.

Any ideas? It's very useful to preview! Thanks for your help,

Jim Burton

Hi, my thesis is structured like this:

main.tex
chapters/ch1/main.tex

The master file includes the chapters:

\include{chapters/ch1/main}

each of which has the special variable:

%%% TeX-master: "../../main"

Until recently each chapter was a separate document and I had no
problem using preview. Now I can't preview and get red "stop" signs by
each formula and graphic. If I try to preview a section in
chapters/ch1/main.tex I get this error:

pdfTeX warning (\pdfobj): invalid object number being ignored

pdfTeX warning (\pdfobj): invalid object number being ignored
 )
(\end occurred inside a group at level 1)

### semi simple group (level 1) entered at line 69 (\begingroup)
### bottom level
(see the transcript file for additional information)
No pages of output.
Transcript written on _region_.log.

Preview-LaTeX exited as expected with code 1 at Mon Nov  9 11:11:11
LaTeX: LaTeX found no preview images

%%%%%%%%%%%%%%%%%%%%%%

I've attached _region_.log, which contains a lot of errors but the
file compiles without errors or warnings, so I'm not sure what they
mean. 

I am using AUCTeX 11.85, Emacs 23.0.91, ubuntu jaunty.

Any ideas? It's very useful to preview! Thanks for your help,

Jim Burton

_______________________________________________
auctex mailing list
auctex <at> gnu.org
http://lists.gnu.org/mailman/listinfo/auctex

Gmane