Peter Dyballa
Peter_Dybal****@Web*****
Thu Dec 21 08:10:37 JST 2006
Am 20.12.2006 um 22:06 schrieb Roussanka Loukanova: > 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 ... and then press an INS button to insert a new command for the Commands menu. The place where you INSert corresponds to the position in the menu. One of my additions is: INS DEL Name: XeLaTeX & xdvipfmx Command: xelatex -output-driver='xdvipdfmx -q -E' "% (mode)\input %t" How: *Value Menu* TeX-run-command Create a process for NAME using COMMAND to process FILE. *More* Prompt: *Toggle* off (nil) Modes: *Value Menu* Set: [ ] Plain TeX [X] LaTeX [ ] DocTeX [X] ConTeXt [ ] Texinfo [X] AmSTeX Menu elements: INS Dvips works on "%d" and it works in Plain TeX, LaTeX, and AmSTeX. (I don't know what DocTeX is. Maybe something medicinal ...) PS4pdf, I think, works on LaTeX files. > > Here is what I've put in texdoc: > > > *) > : ${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) &'} > This "default block's" entries would be used on a system whose type is not Darwin, i.e. not Mac OS X. > > It seems to me that this has not changed anything despite that I > restarted > the machine. You don't need to reboot, you need to change the AUCTeX viewer from xdvi et al to texdoc. > > Carbon Emacs gets the command open in somewhat rondabout way (M-x open > does not work): > > C-c C-c invokes <xdvi lec.dvi>. Because you did not change the default customisation in AUCTeX, it's still using its old defaults. > Then I delete <xdvi lec.dvi> and repalce it with > <open lec2.dvi> (which converts the dvi into pdf and opens it in > TeXShop) Yes, that's correct system behaviour. TeXShop has registered itself as an application that can handle documents of type "DVI," which can be deduced from the file's extension ".dvi." In Mac OS X 10.4, Tiger, this mechanism runs under the acronym of UTI (Universal Type Identifier). And because you pass the UNIX command "open" with an argument, that is a file's name, to the system to launch it with launchd, the Launch Service, this service finds that your system has TeXShop registered as "handler" for DVI files. So it open the file in TeXShop, which converts it to PDF because it cannot display DVI content natively. > > Now I do not know what to do next to get the things working. 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