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

Back to archive index

Roussanka Loukanova rlouk****@stp*****
Thu Dec 21 06:06:08 JST 2006


Hi Pete,

> No, no: you need to add one or two new commands first. It's
> standardised under the "TeX Command List" item. Pressing the INS
> button creates a new form. I think the manual can explain it better,
> what to do and and what to check and why and if at all ... The item
> "TeX Expand List" explains a bit what these things in () or with % mean.
>

1. I opened LaTeX -> Customize AUCTex -> Brows Options
2. I pressed the button Tex Command group -> Tex Command List Show Value

This way I've seen that File is a name of dvi2ps.

But then I still do not know how to add under one common name to be added 
under the Command option in the menu.

> Programmatically? Copy the texdoc script from the same location as
> dvips or latex to your bin directory (on the command line it's these
> two commands that also make sure that your bin sub-directory exists:
> mkdir ~/bin ; cp `which texdoc` ~/bin). At lines around #80...90 of
> your copy of the texdoc script you can change the right hand side for
> example to:
[...]

I've done this and restarted the machine. Now I have the directory

~/bin rosi$ ls -l
total 40
-rwxr-xr-x   1 rosi  rosi   417 Dec 20 19:52 ps4pdf.sh
-rwxr-xr-x   1 rosi  rosi  6418 Dec 20 20:47 texdoc

Here is what I've put in texdoc:

 	: ${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'
 	;;
   *)
 	: ${TEXDOCVIEW_dvi='(-a Preview %s) &'}
#	: ${TEXDOCVIEW_dvi='(xdvi %s) &'}
 	: ${TEXDOCVIEW_pdf='(Preview %s) &'}
#	: ${TEXDOCVIEW_pdf='(acroread %s) &'}
 	: ${TEXDOCVIEW_ps='(Preview %s) &'}
#	: ${TEXDOCVIEW_ps='(gv %s) &'}


It seems to me that this has not changed anything despite that I restarted 
the machine.

Carbon Emacs gets the command open in somewhat rondabout way (M-x open 
does not work):

C-c C-c invokes <xdvi lec.dvi>.
Then I delete <xdvi lec.dvi> and repalce it with
<open lec2.dvi> (which converts the dvi into pdf and opens it in TeXShop)

Now I do not know what to do next to get the things working.

Roussanak



More information about the macemacsjp-english mailing list
Back to archive index