[macemacsjp-english 799] Re: emacs/latex problem

アーカイブの一覧に戻る

Roussanka Loukanova rlouk****@stp*****
Fri Dec 22 06:24:59 JST 2006


Hi again!

On Thu, 21 Dec 2006, Peter Dyballa wrote:

> You don't need to reboot, you need to change the AUCTeX viewer from
> xdvi et al to texdoc.

How can I do this?

I've done the following with not entirely satisfying results:


1. I opened LaTeX -> Customize AUCTex -> Brows Options
2. I pressed the button Tex Command group -> Tex Command List Show Value
3. I've replaced all occurrences of "xdvi" with "texdoc" in
Tex View Style and Tex Output View Style

Now, if I use run pdflatex (via C-c C-t C-p) on a file that does not 
depend on pstricks drawings, all goes finely, i.e. a 2nd C-c C-c invokes:

View command: texdoc -remote "present_FMCompLingUU" -raise present_FMCompLingUU.pdf

Preview opens the pdf file (which is what I wanted and put in 
the texdoc for viewing pdf files).

But, if, on a file with pstricks drawings, I use the LaTeX command 
C-c C-c (or from the menu Command -> LaTeX) latex runs;
then a 2nd C-c C-c shows:

View command: texdoc  lec2.dvi

After hitting Return TexShop opens the file converted and saved as lec2.pdf 
with all trees drawn properly, despite that I have not run what I thought 
I should have run: dvips + ps2pdf. But I think that this creates problems: 
it seems to me that Preview is unable to open dvi files. I conclude this 
because I had no occurrences at all of TexShop in the texdoc file, where I 
put what you suggested, incl for dvi files:

   Darwin)
 	: ${TEXDOCVIEW_dvi='open -a Preview %s'}
#	: ${TEXDOCVIEW_dvi='(open %s >/dev/console 2>&1 || xdvi %s &) || 
echo "Method for opening %s did not work"'}
         : ${TEXDOCVIEW_ps='open -a Preview %s'}
#	: ${TEXDOCVIEW_ps='open %s'}
 	: ${TEXDOCVIEW_pdf='open -a Preview %s'}
#	: ${TEXDOCVIEW_pdf='open %s'}
 	: ${TEXDOCVIEW_html='open %s'}
 	: ${TEXDOCVIEW_txt="open -a TextEdit.app %s"}
 	: ${TEXDOCVIEW_="open -a TextEdit.app %s"} # no extension, default 
to pager
         extlist='.pdf .ps .txt .dvi .html'
 	;;
Roussanka

>
> Make all viewers in AUCTeX to become texdoc. There might also be
> utilities that can change the connection between DVI type and TeXShop
> – but without a DVI viewer going this path makes no sense. After
> you've change the customisation of AUCTeX, you can make them active
> at once (on top of the *Customize* window you find these buttons.
>
> --
> Greetings
>
>   Pete
>
> War springs from unseen and generally insignificant causes.
>                                        -- Anonymous
>
>
> _______________________________________________
> macemacsjp-english mailing list
> macem****@lists*****
> http://lists.sourceforge.jp/mailman/listinfo/macemacsjp-english
>


More information about the macemacsjp-english mailing list
アーカイブの一覧に戻る