From zenitani at mac.com Fri Dec 8 11:40:24 2006 From: zenitani at mac.com (Seiji Zenitani) Date: Thu, 7 Dec 2006 21:40:24 -0500 Subject: [macemacsjp-english 774] server unavailable Message-ID: <0234F34B-9B45-4BBB-ACF7-C421A1A2CA97@mac.com> ??????????? 12/15-17 ???sf.jp ??????????? ML, Web???????????????? http://sourceforge.jp/forum/forum.php?forum_id=10664 ???? zenitani at mac.com ==== Hi, Due to the scheduled maintenance, all sf.jp services (incl. our mailing lists and file downloads) will be down from Dec. 15 through Dec. 17. -- Seiji From peter.mclain at gmail.com Mon Dec 18 09:19:50 2006 From: peter.mclain at gmail.com (peter mclain) Date: Sun, 17 Dec 2006 16:19:50 -0800 Subject: [macemacsjp-english 775] Problem typing C-M-f using caps lock key but C-M-b works fine Message-ID: <436931830612171619x7f7d717eka36218d76f213699@mail.gmail.com> Carbon Emacs does not recognize C-M-f when using the caps-lock as a control key, but works fine if I use the ctrl key. I'm using GNU Emacs 22.0.90.1 on a PowerBook G4. C-M-b, C-f, C-b, C-M-up etc. all work fine using either the ctrl key or the caps-lock key. The problem seems to be only with using the caps-lock key and C-M-f. I've mapped the caps-lock key to be an additional control key, via the OS X System Preferences (System Preferences -> Keyboard & Mouse -> Modifier Keys). I'm also using the alt / option key as my meta key. I get the buggy behavior with the following, minimal .emacs.el file: (setq ;; Setup so that the alt/option key is interpreted by Carbon Emacs ;; to be the Meta key. mac-pass-option-to-system nil mac-option-modifier 'meta) describe-bindings lists C-M-f as bound to forward-sexp. describe-key doesn't react when I type -M-f, it just sits there like I haven't entered anything. But describe-key does the right thing if I type -M-f or -M-b. view-lossage doesn't record any instances of -M-f, but shows -M-f and -M-b etc. just fine. Thanks for any insight, Peter -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.sourceforge.jp/mailman/archives/macemacsjp-english/attachments/20061217/51ea51dd/attachment.htm From rloukano at stp.lingfil.uu.se Mon Dec 18 09:45:47 2006 From: rloukano at stp.lingfil.uu.se (Roussanka Loukanova) Date: Mon, 18 Dec 2006 01:45:47 +0100 (CET) Subject: [macemacsjp-english 776] emacs/latex problem Message-ID: Hi everybody, I had used very happily Carbon Emacs for latexing up to 2 weeks ago on a G4 Powerbook and then on a MacBook Intel. Now, I have gotten a new replacement MacBook Pro, and have had to install everything again from scratch. I downloaded Seiji Zenitani's Carbon Emacs and Gerben Wierda's TeXLive-teTeX and got problems, which I did not have before. I hope you could help me with the trouble: I am using quite often pstricks for drawing trees and diagrams, which do not work with pdflatex; they require running in success the three commands: latex, dvips, ps2pdf (I've got all this working in TexShop, but Carbon Emacs has far more flexibility and with all of its functionality, I can't give it up.) Latexing with pstricks used to work by default like a magic from within Carbon Emacs by Ctrl-c Ctrl-c which ran in one sweep in the background ; another Ctrl-c Ctrl-c used to open the pdf file in Preview. Now, with the new installation, neither of the above works. I.e., what I do and get is as follows: 1. In the Emacs menu: Command -> Texing Options I switch off PDF Mode by C-c C-t C-p (to get pstricks working in latex). 2. Then, Ctrl-c Ctrl-c runs latex successfully but without creating pdf, i.e. it does not get the sequence of commands: dvips + ps2pdf. 3. C-c C-c invokes as the default View command: (I do not like much xdvi, but even it does not work, apparently because I don't know how to get xdvi working; i.e., I do not know yet how to activate X11). 4. have put the line (setq pdf-previewer-program "open -a Preview") in the .emacs. 5. I've restarted the machine several times. But nothing fixes the problem. How could I set up the Latex command to be , and the default View command to open the pdf in Preview? Regards, Roussanka ------------------------------------------------ Roussanka Loukanova Computational Linguistics Dept. of Linguistics and Philology URL: http://stp.ling.uu.se/~rloukano/ -------------------------------------------------- From rloukano at stp.lingfil.uu.se Tue Dec 19 01:40:03 2006 From: rloukano at stp.lingfil.uu.se (Roussanka Loukanova) Date: Mon, 18 Dec 2006 17:40:03 +0100 (CET) Subject: [macemacsjp-english 777] emacs/latex problem Message-ID: Hi everybody, I had used very happily Carbon Emacs for latexing up to 2 weeks ago on a G4 Powerbook and then on a MacBook Intel. Now, I have gotten a new replacement MacBook Pro, and have had to install everything again from scratch. I downloaded Seiji Zenitani's Carbon Emacs and Gerben Wierda's TeXLive-teTeX and got problems, which I did not have before. I hope you could help me with the trouble: I am using quite often pstricks for drawing trees and diagrams, which do not work with pdflatex; they require running in success the three commands: latex, dvips, ps2pdf (I've got all this working in TexShop, but Carbon Emacs has far more flexibility and with all of its functionality, I can't give it up.) Latexing with pstricks used to work by default like a magic from within Carbon Emacs by Ctrl-c Ctrl-c which ran in one sweep in the background ; another Ctrl-c Ctrl-c used to open the pdf file in Preview. Now, with the new installation, neither of the above works. I.e., what I do and get is as follows: 1. In the Emacs menu: Command -> Texing Options I switch off PDF Mode by C-c C-t C-p (to get pstricks working in latex). 2. Then, Ctrl-c Ctrl-c runs latex successfully but without creating pdf, i.e. it does not get the sequence of commands: dvips + ps2pdf. 3. C-c C-c invokes as the default View command: (I do not like much xdvi, but even it does not work, apparently because I don't know how to get xdvi working; i.e., I do not know yet how to activate X11). 4. have put the line (setq pdf-previewer-program "open -a Preview") in the .emacs. 5. I've restarted the machine several times. But nothing fixes the problem. How could I set up the Latex command to be , and the default View command to open the pdf in Preview? Regards, Roussanka ------------------------------------------------ Roussanka Loukanova Computational Linguistics Dept. of Linguistics and Philology URL: http://stp.ling.uu.se/~rloukano/ -------------------------------------------------- From Peter_Dyballa at Web.DE Tue Dec 19 20:17:23 2006 From: Peter_Dyballa at Web.DE (Peter Dyballa) Date: Tue, 19 Dec 2006 12:17:23 +0100 Subject: [macemacsjp-english 778] Re: emacs/latex problem In-Reply-To: References: Message-ID: <9C6A1C9A-800F-4D83-9FCB-D4A5BFA83193@Web.DE> Am 18.12.2006 um 01:45 schrieb Roussanka Loukanova: I don't know which release of Carbon Emacs I am using right now, the About menu item does not explain anything, could be it's the latest one, still based on GNU Emacs 22.0.50. This last release broke for me too a lot of things because it does not load my system's site- start.el. Could be you're just another victim of undocumented changes ... > Now, with the new installation, neither of the above works. I.e., > what I > do and get is as follows: > > 1. In the Emacs menu: Command -> Texing Options I switch off PDF Mode > by C-c C-t C-p (to get pstricks working in latex). Have you thought of creating your own PSTricks command? You could use your TeXShop Engine file, a simple shell script, to do the same job ... Or you could use Herb Schulz' ps4pdf Engine to create PDF from a PSTricks TeX file kind of "directly." > > 2. Then, Ctrl-c Ctrl-c runs latex successfully but without creating > pdf, > i.e. it does not get the sequence of commands: dvips + ps2pdf. Can you show the contents of the corresponding output buffer? There must be some evidence why no PS output was created. Recent implementations of dvips have a safety option active not to load any files "from above" your DVI file's file system level ... > > 3. C-c C-c invokes as the default View command: > (I do not like much xdvi, but even it does not work, apparently > because > I don't know how to get xdvi working; i.e., I do not know yet how to > activate X11). I have created with Platypus an Universal Binary application that set ups the X11 environment in such a way that it knows of TeX and becomes very useful. I can send it to you, I just don't have a host (er) to let you fetch it. Then it would be best to make X11 a start- up item or to launch it before you try to view a DVI file from Emacs. The X clients launched when the X server part of X11 is not already running can behave a bit strange, including the state of complete uselessness. You can also extend AUCTeX (and your system) with two different DVI viewer applications. The first one, and IMO best PDF viewer, is TeXShop. Because it can't display DVI it converts it to PDF, and it would do the same with a PS file. AFAIR it uses dvips to create PS and then your "Distiller" command (Ghostview's ps2pdf or the system's pstopdf) to create PDF, which is then displayed. The second option would be to use TeXniscope, which either cannot display DVI, so it uses dvipdfmx to convert it directly to PDF. > > 4. have put the line > (setq pdf-previewer-program "open -a Preview") > in the .emacs. Some time ago the internals of AUCTeX changed a lot. Such simple lines might not work anymore in AUCTeX 11.83 (you can get the version number for example from "reporting an AUCTeX bug" menu entry). This and the much too complicated syntax to create reasonable AUCTeX commands helped me to use something different then AUCTeX. > > 5. I've restarted the machine several times. But nothing fixes the > problem. That's correct behaviour. -- Greetings Pete "Eternity is a terrible thought. I mean, where's it going to end?" - Tom Stoppard From etiffany at alum.mit.edu Wed Dec 20 01:41:33 2006 From: etiffany at alum.mit.edu (Eric Tiffany) Date: Tue, 19 Dec 2006 11:41:33 -0500 Subject: [macemacsjp-english 779] Something seriously broken with 'call-process' Message-ID: I have been trying to use ediff-directories in the 09-2006 version of carbon-emacs. I have been trying to use the '==' command within the Ediff buffer, which compares all the files in the two directories. However, it seems like the cmp process *always* returns 2, even though the same command called from a shell returns 0. as a consequence, all pairs of files appear to be different, even though most of them are identical. I believe there is something broken with the C builtin function call-process, because I have tried doing the same exact operation with Aquaemacs and it works exactly right. Running on MacOS 10.4.8 on a MBP C2D ET From zenitani at mac.com Wed Dec 20 03:05:31 2006 From: zenitani at mac.com (Seiji Zenitani) Date: Tue, 19 Dec 2006 10:05:31 -0800 Subject: [macemacsjp-english 780] Re: Something seriously broken with 'call-process' Message-ID: Hi Eric, Try the latest version (11-2006) instead. I confirmed that it works on the november build. Seiji > On 2006/12/19, at 11:41, Eric Tiffany wrote: > > I have been trying to use ediff-directories in the 09-2006 version of > carbon-emacs. I have been trying to use the '==' command within the Ediff > buffer, which compares all the files in the two directories. However, it > seems like the cmp process *always* returns 2, even though the same command > called from a shell returns 0. > > as a consequence, all pairs of files appear to be different, even though > most of them are identical. > > I believe there is something broken with the C builtin function > call-process, because I have tried doing the same exact operation with > Aquaemacs and it works exactly right. > > Running on MacOS 10.4.8 on a MBP C2D > > ET From zenitani at mac.com Wed Dec 20 03:20:55 2006 From: zenitani at mac.com (Seiji Zenitani) Date: Tue, 19 Dec 2006 10:20:55 -0800 Subject: [macemacsjp-english 781] Re: emacs/latex problem Message-ID: Hi, > On 2006/12/19, at 6:17, Peter Dyballa wrote: > I don't know which release of Carbon Emacs I am using right now, the > About menu item does not explain anything, could be it's the latest > one, still based on GNU Emacs 22.0.50. This last release broke for me > too a lot of things because it does not load my system's site- > start.el. Could be you're just another victim of undocumented > changes ... The november release is based on 22.0.90. > This is GNU Emacs 22.0.90.1 (i386-apple-darwin8.8.1, Carbon Version 1.6.0) of 2006-10-28 on petit.local > > 4. have put the line > > (setq pdf-previewer-program "open -a Preview") > > in the .emacs. > > Some time ago the internals of AUCTeX changed a lot. Such simple > lines might not work anymore in AUCTeX 11.83 (you can get the version > number for example from "reporting an AUCTeX bug" menu entry). This > and the much too complicated syntax to create reasonable AUCTeX > commands helped me to use something different then AUCTeX. If Roussanka uses the latest release, her AUCTeX should be 11.83. Seiji From Peter_Dyballa at Web.DE Wed Dec 20 05:32:17 2006 From: Peter_Dyballa at Web.DE (Peter Dyballa) Date: Tue, 19 Dec 2006 21:32:17 +0100 Subject: [macemacsjp-english 782] Re: Something seriously broken with 'call-process' In-Reply-To: References: Message-ID: <9D2DC22F-9F55-4835-AD70-520D4DE5CAF3@Web.DE> Am 19.12.2006 um 17:41 schrieb Eric Tiffany: > I believe there is something broken with the C builtin function > call-process, because I have tried doing the same exact operation with > Aquaemacs and it works exactly right. My copy of Aquamacs Emacs is completely useless: it has one buffer *Messages* and another one Messages.Aquamacs, and the names of the buffers in mode-line are only cryptic ... Trying to use (Japanese) Carbon Emacs (Package) a Mac OS X form comes to choose something from the file system when I choose Tools -> Ediff -> Two Directories from the menu while the two directories are already open in dired-mode buffers! One more (partially) useless tool ... The X11 client version works fine ... -- Greetings Pete Time is an illusion. Lunchtime, doubly so. From rloukano at stp.lingfil.uu.se Wed Dec 20 06:10:57 2006 From: rloukano at stp.lingfil.uu.se (Roussanka Loukanova) Date: Tue, 19 Dec 2006 22:10:57 +0100 (CET) Subject: [macemacsjp-english 783] Re: emacs/latex problem In-Reply-To: <9C6A1C9A-800F-4D83-9FCB-D4A5BFA83193@Web.DE> References: <9C6A1C9A-800F-4D83-9FCB-D4A5BFA83193@Web.DE> Message-ID: >> 2. Then, Ctrl-c Ctrl-c runs latex successfully but without creating >> pdf, >> i.e. it does not get the sequence of commands: dvips + ps2pdf. If right after the 1st Command (in Carbon Emacs, 1.6.0) Ctrl-c Ctrl-c, I confirm Latex, it creats a good dvi file. Then if I try, with another Ctrl-c Ctrl-c, to type dvips in the Command minbuffer-line, Emacs responds with [No match]. > Can you show the contents of the corresponding output buffer? I'll paste it at the end of this email. > There > must be some evidence why no PS output was created. Recent > implementations of dvips have a safety option active not to load any > files "from above" your DVI file's file system level ... In the Terminal shell dvips and ps2pdf work fine, i.e. I run: $ dvips lec2.dvi -o lec2.ps $ ps2pdf lec2.ps lec2.pdf I get proper drawings: I can manually open lec2.pdf in Preview and the tress are drawn. It seems to me that the problem is that Carbon emacs does not have access to all latex and open commands. Before it used to open a sequence of commands that included the above two comands, and then would oppen the pdf file with Preview (most likely because I had in .emacs the line (setq pdf-previewer-program "open -a Preview") which now is ignored by Emacs. > I have created with Platypus an Universal Binary application that set > ups the X11 environment in such a way that it knows of TeX and > becomes very useful. I can send it to you, I just don't have a host > (er) to let you fetch it. Then it would be best to make X11 a start- > up item or to launch it before you try to view a DVI file from Emacs. > The X clients launched when the X server part of X11 is not already > running can behave a bit strange, including the state of complete > uselessness. I simply do not know how to work with this, but perhaps I can try. > You can also extend AUCTeX (and your system) with two different DVI > viewer applications. The first one, and IMO best PDF viewer, is > TeXShop. Because it can't display DVI it converts it to PDF, and it > would do the same with a PS file. AFAIR it uses dvips to create PS > and then your "Distiller" command (Ghostview's ps2pdf or the system's > pstopdf) to create PDF, which is then displayed. The second option > would be to use TeXniscope, which either cannot display DVI, so it > uses dvipdfmx to convert it directly to PDF. This seems so complicate in compare to the convenient way Carbon Emacs used to do dvips, ps2pdf and then would open the pdf file in Preview. It is extraordinarly irritating that it doesn't work anymore. And I do not know how to set it up to do somthing like that, if not what it used to.. Roussanka the lec2 output file: ------------------------------------------------ Running `LaTeX' on `lec2' with ``latex "\nonstopmode\input{lec2.tex}"'' This is pdfeTeX, Version 3.141592-1.30.4-2.2 (Web2C 7.5.5) entering extended mode LaTeX2e <2005/12/01> Babel and hyphenation patterns for american, french, german, ngerman, b ahasa, basque, bulgarian, catalan, croatian, czech, danish, dutch, esperanto, e stonian, finnish, greek, icelandic, irish, italian, latin, magyar, norsk, polis h, portuges, romanian, russian, serbian, slovak, slovene, spanish, swedish, tur kish, ukrainian, nohyphenation, loaded. (./lec2.tex (/usr/local/teTeX/share/texmf.local/tex/latex/base/article.cls Document Class: article 2005/09/16 v1.4f Standard LaTeX document class (/usr/local/teTeX/share/texmf.local/tex/latex/base/size12.clo)) (/usr/local/teTeX/share/texmf.tetex/tex/latex/amsfonts/amssymb.sty (/usr/local/teTeX/share/texmf.tetex/tex/latex/amsfonts/amsfonts.sty)) (/usr/local/teTeX/share/texmf.local/tex/latex/tools/theorem.sty (/usr/local/teTeX/share/texmf.local/tex/latex/tools/thp.sty)) (/usr/local/teTeX/share/texmf.local/tex/latex/graphics/graphicx.sty (/usr/local/teTeX/share/texmf.local/tex/latex/graphics/keyval.sty) (/usr/local/teTeX/share/texmf.local/tex/latex/graphics/graphics.sty (/usr/local/teTeX/share/texmf.local/tex/latex/graphics/trig.sty) (/usr/local/teTeX/share/texmf.tetex/tex/latex/graphics/graphics.cfg) (/usr/local/teTeX/share/texmf.local/tex/latex/graphics/dvips.def))) (/usr/local/teTeX/share/texmf.local/tex/latex/graphics/color.sty (/usr/local/teTeX/share/texmf.tetex/tex/latex/graphics/color.cfg) (/usr/local/teTeX/share/texmf.local/tex/latex/graphics/dvipsnam.def)) (/usr/local/teTeX/share/texmf.tetex/tex/latex/stmaryrd/stmaryrd.sty) (/Users/rosi/Library/texmf/tex/latex/all_latex/chris_latex/lingmacros.sty) (/Users/rosi/Library/texmf/tex/latex/all_latex/chris_latex/tree-dvips.sty tree-dvips version .91 of May 16, 1995 ) (/Users/rosi/Library/texmf/tex/latex/all_latex/chris_latex/trees.sty) (/Users/rosi/Library/texmf/tex/latex/all_latex/chris_latex/avm.sty) (/Users/rosi/Library/texmf/tex/latex/all_latex/chris_latex/avm-doc.sty) (/usr/local/teTeX/share/texmf.tetex/tex/latex/fancyhdr/fancyhdr.sty) (/usr/local/teTeX/share/texmf.tetex/tex/latex/rotating/rotating.sty (/usr/local/teTeX/share/texmf.local/tex/latex/base/ifthen.sty)) (./lec2.aux) (/usr/local/teTeX/share/texmf.tetex/tex/latex/amsfonts/umsa.fd) (/usr/local/teTeX/share/texmf.tetex/tex/latex/amsfonts/umsb.fd) (/usr/local/teTeX/share/texmf.tetex/tex/latex/stmaryrd/ustmry.fd) [1] Overfull \hbox (12.42345pt too wide) in paragraph at lines 132--134 \OT1/cmr/m/n/17.28 based, lex-i-cal-ist gram-mar ap-proaches, in par-tic-u-lar, CBLG: (/usr/local/teTeX/share/texmf.local/tex/latex/base/omscmr.fd) Package Fancyhdr Warning: \headheight is too small (12.0pt): Make it at least 13.59999pt. We now make it that large for the rest of the document. This may cause the page layout to be inconsistent, however. [2] Overfull \hbox (1.31238pt too wide) in paragraph at lines 164--166 \OT1/cmr/m/it/17.28 ture struc-tures \OT1/cmr/m/n/17.28 and \OT1/cmr/m/it/17.28 typed fea-ture struc-ture de-scrip- Overfull \hbox (4.08743pt too wide) in paragraph at lines 172--173 \OT1/cmr/m/n/17.28 sets of feature-value pairs rep-re-sented by feature-value [3] [4] Overfull \hbox (3.55708pt too wide) in paragraph at lines 263--263 [] [][] \OT1/cmr/m/n/17.28 g. [] [5] [6] [7] [8] [9] [10] Overfull \hbox (2.91104pt too wide) in paragraph at lines 389--392 \OT1/cmr/m/n/17.28 guage of attribute-value ma-tri-ces, the ex-pres-sions of wh ich [11] Overfull \hbox (78.32277pt too wide) in paragraph at lines 466--473 [][] Overfull \hbox (29.34494pt too wide) in paragraph at lines 478--546 [] [] [12] [13] Overfull \hbox (1.79866pt too wide) in paragraph at lines 558--560 \OT1/cmr/m/n/17.28 ex-pres-sion is the subex-pres-sion which con-tributes ma- Overfull \hbox (8.86949pt too wide) in paragraph at lines 565--566 [] []\OT1/cmr/m/n/17.28 the Specifier-Head Agree-ment Con-straint (SHAC); [14] Overfull \hbox (29.07089pt too wide) in paragraph at lines 583--657 [] [][][][][][][][][][][][][][][][][][][][][][][][] Overfull \hbox (39.12463pt too wide) in paragraph at lines 670--761 [] [] [15] [16] [17] Overfull \hbox (22.17pt too wide) in paragraph at lines 789--947 [] [] [18] Overfull \hbox (53.25453pt too wide) in paragraph at lines 956--1057 [] [] [19] Overfull \hbox (48.89842pt too wide) in paragraph at lines 1069--1197 [] [] [20] Underfull \hbox (badness 10000) in paragraph at lines 1208--1209 Underfull \hbox (badness 10000) in paragraph at lines 1212--1213 [21] [22] [23] (./lec2.aux) ) (\end occurred inside a group at level 4) ### simple group (level 4) entered at line 1070 ({) ### simple group (level 3) entered at line 957 ({) ### simple group (level 2) entered at line 790 ({) ### simple group (level 1) entered at line 671 ({) ### bottom level (see the transcript file for additional information) Output written on lec2.dvi (23 pages, 93868 bytes). Transcript written on lec2.log. LaTeX finished at Tue Dec 19 22:08:14 From rloukano at stp.lingfil.uu.se Wed Dec 20 06:13:58 2006 From: rloukano at stp.lingfil.uu.se (Roussanka Loukanova) Date: Tue, 19 Dec 2006 22:13:58 +0100 (CET) Subject: [macemacsjp-english 784] Re: emacs/latex problem In-Reply-To: References: Message-ID: On Tue, 19 Dec 2006, Seiji Zenitani wrote: > > If Roussanka uses the latest release, her AUCTeX should be 11.83. I do not have AUCTeX. I use Gerben Wierda's redistribution of Thomas Esser's teTeX. Roussanka From zenitani at mac.com Wed Dec 20 07:17:04 2006 From: zenitani at mac.com (Seiji Zenitani) Date: Tue, 19 Dec 2006 14:17:04 -0800 Subject: [macemacsjp-english 785] Re: emacs/latex problem Message-ID: Hi, On 2006/12/19, at 16:10, Roussanka Loukanova wrote: > > There must be some evidence why no PS output was created. Recent > > implementations of dvips have a safety option active not to load any > > files "from above" your DVI file's file system level ... > > In the Terminal shell dvips and ps2pdf work fine, i.e. I run: > > $ dvips lec2.dvi -o lec2.ps > $ ps2pdf lec2.ps lec2.pdf > > It seems to me that the problem is that Carbon emacs does not have access > to all latex and open commands. Could you tell me where the above commands are located? $ which dvips $ which ps2pdf On 2006/12/19, at 16:13, Roussanka Loukanova wrote: > On Tue, 19 Dec 2006, Seiji Zenitani wrote: > > > > If Roussanka uses the latest release, her AUCTeX should be 11.83. > > I do not have AUCTeX. I use Gerben Wierda's redistribution of Thomas > Esser's teTeX. > > Roussanka No, no. AUCTeX is a name of 'enhanced TeX mode' of emacs. Many people prefers it to emacs's built-in tex-mode, and my Carbon Emacs distribution uses AUCTeX by default. You will see several AUCTeX-related items in the "LaTeX" menu in the menu bar. Sincerely, Seiji From Peter_Dyballa at Web.DE Wed Dec 20 07:25:54 2006 From: Peter_Dyballa at Web.DE (Peter Dyballa) Date: Tue, 19 Dec 2006 23:25:54 +0100 Subject: [macemacsjp-english 786] Re: emacs/latex problem In-Reply-To: References: <9C6A1C9A-800F-4D83-9FCB-D4A5BFA83193@Web.DE> Message-ID: <088284DC-1B14-4701-9AC9-A6EB9C569011@Web.DE> Am 19.12.2006 um 22:10 schrieb Roussanka Loukanova: >>> 2. Then, Ctrl-c Ctrl-c runs latex successfully but without creating >>> pdf, >>> i.e. it does not get the sequence of commands: dvips + ps2pdf. > > If right after the 1st Command (in Carbon Emacs, 1.6.0) Ctrl-c Ctrl-c, > I confirm Latex, it creats a good dvi file. Then if I try, with > another > Ctrl-c Ctrl-c, to type dvips in the Command minbuffer-line, Emacs > responds > with [No match]. That's the wrong way! You have to choose one of the commands from the Commands menu! Everything else AUCTeX does not understand. If you want to use dvips you would need to add a dvips command first. This might work from LaTeX -> Customize AUCTeX -> Browse Options (this way I added XeTeX commands, one sort to use dvipdfmx and another one to use the Mac OS X default xdv2pdf). Again, since you need to add a command to the Commands menu, think of adding a shell script as a PSTricks command. Herb Schulz' ps4pdf engine script goes (a bit edited by me): #!/bin/sh basefname=`basename "$1" .tex` # process the figures latex --shell-escape "$1" dvips -Ppdf -o "${basefname}-pics.ps" "${basefname}.dvi" ps2pdf -dAutoRotatePages=/None "${basefname}-pics.ps" "${basefname}- pics.pdf" pdfcrop "${basefname}-pics.pdf" mv "${basefname}-pics-crop.pdf" "${basefname}-pics.pdf" # remove intermediate files rm "${basefname}-pics.ps" "${basefname}.dvi" # process the file pdflatex "$1" This is the short version of the ps4pdf scripts that come with the teTeX or TeX Live i-Packages. These teTeX scripts, coming from the same directory as latex or dvips, accept other arguments than only the DVI file name. The script above uses the --shell-escape option to allow latex to launch external commands to convert automatically file types. The teTeX ps4pdf script does not use this option, so it might fail with some PSTricks contents. > >> Can you show the contents of the corresponding output buffer? > > I'll paste it at the end of this email. This is from the LaTeX run, and I had hoped to see something from dvips. Anyway, it's now obvious: there is no output from dvips because there is no dvips command yet in AUCTeX that could be launched. Again: it does *not* work anymore with recent AUCTeX to put some lines of Elisp into ~/.emacs. Now you have to use the Emacs' customize system to change things. And AUCTeX's customize interface is in almost all options much too complicated while trying to take into account different paper sizes or orientation. And all your customisation goes into a special block in your .emacs file. To use consistently in all circumstances the same tools I've chosen to accommodate the texdoc script to use particular applications for particular file formats ? and texdoc is in my AUCTeX the Viewer. To save my custom texdoc script from being erased by an i-Package update I've put into my ~/bin directory, which is in the search path for executables. The customisations AUCTeX has put into my .emacs file are, for example: '(TeX-command-list (quote (("TeX" "%(PDF)%(tex) %S%(PDFout) \"% (mode)\\input %t\"" TeX-run-TeX nil (plain-tex-mode texinfo-mode ams- tex-mode) :help "Run plain TeX") ("LaTeX" "%l \"%(mode)\\input{%t}\"" TeX-run-TeX nil (latex-mode doctex-mode) :help "Run LaTeX") ("XeTeX" " xetex \"%(mode)\\input %t\"" TeX-run-TeX nil (plain-tex-mode context-mode ams-tex-mode)) ("XeLaTeX" "xelatex \"%(mode)\\input{%t} \"" TeX-run-TeX nil (latex-mode context-mode)) ("Makeinfo" "makeinfo % t" TeX-run-compile nil (texinfo-mode) :help "Run Makeinfo with Info output") ("Makeinfo HTML" "makeinfo --html %t" TeX-run-compile nil (texinfo-mode) :help "Run Makeinfo with HTML output") ("AmSTeX" "% (PDF)amstex %S%(PDFout) \"%(mode)\\input %t\"" TeX-run-TeX nil (ams- tex-mode) :help "Run AMSTeX") ("ConTeXt" "texexec --once --texutil % (execopts)%t" TeX-run-TeX nil (context-mode) :help "Run ConTeXt once") ("ConTeXt Full" "texexec %(execopts)%t" TeX-run-TeX nil (context-mode) :help "Run ConTeXt until completion") ("ConTeXt Clean" "texutil --purgeall" TeX-run-interactive nil (context-mode) :help "Clean temporary ConTeXt files") ("BibTeX" "bibtex %s" TeX-run-BibTeX nil t :help "Run BibTeX") ("View" "%V" TeX-run-discard t t :help "Run Viewer") ("Print" "%p" TeX-run-command t t :help "Print the file") ("Queue" "%q" TeX-run-background nil t :help "View the printer queue" :visible TeX-queue-command) ("File" "%(o?)dvips %d -o %f " TeX- run-command t t :help "Generate PostScript file") ("Index" "makeindex %s" TeX-run-command nil t :help "Create index file") ("Check" "lacheck %s" TeX-run-compile nil (latex-mode) :help "Check LaTeX file for correctness") ("Spell" "" TeX-run-ispell-on-document nil t :help "Spell-check the document") ("XeTeX & xdvipfmx" "xetex - output-driver='xdvipdfmx -q -E' \"%(mode)\\input %t\"" TeX-run- command nil (plain-tex-mode context-mode ams-tex-mode)) ("XeLaTeX & xdvipfmx" "xelatex -output-driver='xdvipdfmx -q -E' \"%(mode)\\input % t\"" TeX-run-command nil (latex-mode context-mode ams-tex-mode)) ("Other" "" TeX-run-command t t :help "Run an arbitrary command")))) '(TeX-output-view-style (quote (("^dvi$" ("^landscape$" "^pstricks$\ \|^pst-\\|^psfrag$") "%(o?)dvips -t landscape %d -o && texdoc %f") ("^dvi$" "^pstricks$\\|^pst-\\|^psfrag$" "%(o?)dvips %d -o && texdoc % f") ("^dvi$" ("^a4\\(?:dutch\\|paper\\|wide\\)\\|sem-a4$" "^landscape $") "%(o?)xdvi %dS -paper a4r -s 0 %d") ("^dvi$" "^a4\\(?:dutch\\| paper\\|wide\\)\\|sem-a4$" "%(o?)xdvi %dS -paper a4 %d") ("^dvi $" ("^a5\\(?:comb\\|paper\\)$" "^landscape$") "%(o?)xdvi %dS -paper a5r -s 0 %d") ("^dvi$" "^a5\\(?:comb\\|paper\\)$" "%(o?)xdvi %dS - paper a5 %d") ("^dvi$" "^b5paper$" "%(o?)xdvi %dS -paper b5 %d") ("^dvi$" "^letterpaper$" "%(o?)xdvi %dS -paper us %d") ("^dvi$" "^legalpaper$" "%(o?)xdvi %dS -paper legal %d") ("^dvi$" "^executivepaper$" "%(o?)xdvi %dS -paper 7.25x10.5in %d") ("^dvi$" "." "%(o?)xdvi %dS %d") ("^pdf$" "." "texdoc %o") ("^html?$" "." "netscape %o")))) Could be held in cuneiform, too, without reducing the users' understanding ... Concerning TeXShop and TeXniscope as DVI viewers: you do *not* need to do anything of what you wrote! Both applications find internally that they are asked to display DVI and so they /automatically/ convert DVI to PDF. Try with some DVI file on the command line: open -a TeXShop If you have the Console (from the Utilities folder inside the Applications) running and open, you would see how TeXShop converts the DVI file. The same for TeXniscope. -- Greetings Pete "We have to expect it, otherwise we would be surprised." From etiffany at alum.mit.edu Wed Dec 20 07:28:08 2006 From: etiffany at alum.mit.edu (Eric Tiffany) Date: Tue, 19 Dec 2006 17:28:08 -0500 Subject: [macemacsjp-english 787] Re: Something seriously broken with 'call-process' In-Reply-To: Message-ID: Yes, this version works. But I have to patch the semantic package to avoid the 100% CPU usage. Which brings up another issue for a separate thread... Thanks, ET On 12/19/06 1:05 PM, "Seiji Zenitani" wrote: > Hi Eric, > > Try the latest version (11-2006) instead. I confirmed that it works on the > november build. > > Seiji > >> On 2006/12/19, at 11:41, Eric Tiffany wrote: >> >> I have been trying to use ediff-directories in the 09-2006 version of >> carbon-emacs. I have been trying to use the '==' command within the Ediff >> buffer, which compares all the files in the two directories. However, it >> seems like the cmp process *always* returns 2, even though the same command >> called from a shell returns 0. >> >> as a consequence, all pairs of files appear to be different, even though >> most of them are identical. >> >> I believe there is something broken with the C builtin function >> call-process, because I have tried doing the same exact operation with >> Aquaemacs and it works exactly right. >> >> Running on MacOS 10.4.8 on a MBP C2D >> >> ET > > _______________________________________________ > macemacsjp-english mailing list > macemacsjp-english at lists.sourceforge.jp > http://lists.sourceforge.jp/mailman/listinfo/macemacsjp-english From rloukano at stp.lingfil.uu.se Wed Dec 20 07:31:33 2006 From: rloukano at stp.lingfil.uu.se (Roussanka Loukanova) Date: Tue, 19 Dec 2006 23:31:33 +0100 (CET) Subject: [macemacsjp-english 788] Re: emacs/latex problem In-Reply-To: References: Message-ID: Hi, > Hi, > > $ which dvips /usr/local/teTeX/bin/i386-apple-darwin-current/dvips > $ which ps2pdf /usr/local/bin/ps2pdf > No, no. AUCTeX is a name of 'enhanced TeX mode' of emacs. Many people > prefers it to emacs's built-in tex-mode, and my Carbon Emacs distribution > uses AUCTeX by default. You will see several AUCTeX-related items in > the "LaTeX" menu in the menu bar. Do I need to download something, i.e. AUCTeX? Seiji, thanks for trying to do something (I can't imagine doing without emacs). Roussanka From etiffany at alum.mit.edu Wed Dec 20 07:38:12 2006 From: etiffany at alum.mit.edu (Eric Tiffany) Date: Tue, 19 Dec 2006 17:38:12 -0500 Subject: [macemacsjp-english 789] Re: Something seriously broken with 'call-process' In-Reply-To: <9D2DC22F-9F55-4835-AD70-520D4DE5CAF3@Web.DE> Message-ID: On 12/19/06 3:32 PM, "Peter Dyballa" wrote: > > Trying to use (Japanese) Carbon Emacs (Package) a Mac OS X form comes > to choose something from the file system when I choose Tools -> Ediff > -> Two Directories from the menu while the two directories are > already open in dired-mode buffers! One more (partially) useless > tool ... Yeah, this annoyed the hell out of me. You should customize the value of the variable use-file-dialog to nil in your .emacs file. See the documentation (c-H v) for this variable. You may also want to customize use-dialog-box. ET From zenitani at mac.com Wed Dec 20 07:58:29 2006 From: zenitani at mac.com (Seiji Zenitani) Date: Tue, 19 Dec 2006 14:58:29 -0800 Subject: [macemacsjp-english 790] Re: emacs/latex problem Message-ID: Hi Roussanka, On 2006/12/19, at 17:31, Roussanka Loukanova wrote: > > /usr/local/teTeX/bin/i386-apple-darwin-current/dvips > /usr/local/bin/ps2pdf It looks OK. > > No, no. AUCTeX is a name of 'enhanced TeX mode' of emacs. Many people > > prefers it to emacs's built-in tex-mode, and my Carbon Emacs distribution > > uses AUCTeX by default. You will see several AUCTeX-related items in > > the "LaTeX" menu in the menu bar. > > Do I need to download something, i.e. AUCTeX? > At present nothing. Carbon Emacs Package comes with AUCTeX and it is pre-configured for AUCTeX. That is why I (and Pete) discussed something about AUCTeX. You are using AUCTeX (in other words, AUCTeX-mode). For example, the plain tex-mode does not have "PDF Mode" option by C-c C-t C-p. Seiji From rloukano at stp.lingfil.uu.se Wed Dec 20 08:34:42 2006 From: rloukano at stp.lingfil.uu.se (Roussanka Loukanova) Date: Wed, 20 Dec 2006 00:34:42 +0100 (CET) Subject: [macemacsjp-english 791] Re: emacs/latex problem In-Reply-To: <088284DC-1B14-4701-9AC9-A6EB9C569011@Web.DE> References: <9C6A1C9A-800F-4D83-9FCB-D4A5BFA83193@Web.DE> <088284DC-1B14-4701-9AC9-A6EB9C569011@Web.DE> Message-ID: Hi Pete, You have given me very good lesson on Emacs-Latex, etc. commands. > You have to choose one of the commands from the > Commands menu! Everything else AUCTeX does not understand. If you > want to use dvips you would need to add a dvips command first. This > might work from LaTeX -> Customize AUCTeX -> Browse Options I've looked at: LaTeX -> Customize AUCTeX -> Browse Options and then (Go to Group) at: Tex Command group: -> Go to Group Calling external commands from AUCTeX. Then: Latex Command: Hide Value latex I guess, I have to replace "latex" with the dvips, ps2pdf commands, but what exactly should I type there? > Again, since you need to add a command to the Commands menu, think of > adding a shell script as a PSTricks command. Herb Schulz' ps4pdf > engine script goes (a bit edited by me): > > #!/bin/sh > basefname=`basename "$1" .tex` > # process the figures > latex --shell-escape "$1" > dvips -Ppdf -o "${basefname}-pics.ps" "${basefname}.dvi" > ps2pdf -dAutoRotatePages=/None "${basefname}-pics.ps" "${basefname}- > pics.pdf" > pdfcrop "${basefname}-pics.pdf" > mv "${basefname}-pics-crop.pdf" "${basefname}-pics.pdf" > # remove intermediate files > rm "${basefname}-pics.ps" "${basefname}.dvi" > # process the file > pdflatex "$1" Do I have to copy and paste this code in some file? (sorry for the stupid question: I've never done such things up to now). > > This is the short version of the ps4pdf scripts that come with the > teTeX or TeX Live i-Packages. I've tried ps4pdf from the shell, it seems working, I've got: $ ps4pdf lec2.tex /usr/local/teTeX/bin/i386-apple-darwin-current/ps4pdf: running latex lec2.tex /usr/local/teTeX/bin/i386-apple-darwin-current/ps4pdf: running dvips -Ppdf -o lec2-pics.ps lec2.dvi /usr/local/teTeX/bin/i386-apple-darwin-current/ps4pdf: running ps2pdf -dAutoRotatePages=/None lec2-pics.ps lec2-pics.pdf /usr/local/teTeX/bin/i386-apple-darwin-current/ps4pdf: running pdflatex lec2.tex The lec2-pics.pdf is the good one with the trees drawn properly, but of course lec2.pdf (created with pdflatex) lacks the lines of the trees. > dvips. Anyway, it's now obvious: there is no output from dvips > because there is no dvips command yet in AUCTeX that could be launched. It seems some of need it, at least I do :) > accommodate the texdoc script to use particular applications for > particular file formats ? and texdoc is in my AUCTeX the Viewer. To > save my custom texdoc script from being erased by an i-Package update > I've put into my ~/bin directory, which is in the search path for > executables. I will create such too, but what exactly to put in it? It seems I've understood the lesson quite ok, but without being able to do something pragmatical :( > that they are asked to display DVI and so they /automatically/ > convert DVI to PDF. Try with some DVI file on the command line: > > open -a TeXShop I've tried it and it works, but I prefer the Preview program for viewing and even for presentations because it gives me good control over jumping over pages back and forth (I even prefer Preview instead of Acrobat reader). I have to get some sleep now (having lecture tomorrow), but hope to find more help after the lecture :) Roussanka From Peter_Dyballa at Web.DE Wed Dec 20 08:57:02 2006 From: Peter_Dyballa at Web.DE (Peter Dyballa) Date: Wed, 20 Dec 2006 00:57:02 +0100 Subject: [macemacsjp-english 792] Re: Something seriously broken with 'call-process' In-Reply-To: References: Message-ID: Am 19.12.2006 um 23:38 schrieb Eric Tiffany: > You should customize the value of the variable use-file-dialog to > nil in > your .emacs file. See the documentation (c-H v) for this variable. > > You may also want to customize use-dialog-box. Ahhh! Very helpful pointers! (I don't use the Carbon Emacsen so often ...) Now next Christmas may like to come next year, this year I am already done! For me it also works in a rather recent version of Carbon Emacs Package. I've created sym-links to the same directory and so compared the directory with itself. No differences were found. So there must be something with your system. Just found it's much easier: /Applications/EmacsJCVS.app/Contents/Resources/site-lisp/ /Applications/EmacsJCVS.app/Contents/Resources/share/emacs/22.0.50/ site-lisp/ are the same! Because of: /Applications/EmacsJCVS.app/Contents/Resources drwxr-xr-x 3 pete admin 102 1 Okt 12:18 share lrwxrwxrwx 1 pete admin 29 20 Nov 16:43 site-lisp -> share/ emacs/22.0.50/site-lisp Now that you have also these "two" directories, could you compare their contents? Still differences? Could be your files /are/ different, could be ediff when used interactively does not compare white space and line endings (customisation option) ... but does so when comparing directories? -- Greetings Pete In a world without walls and fences, who needs gates and windows? From Peter_Dyballa at Web.DE Wed Dec 20 10:00:04 2006 From: Peter_Dyballa at Web.DE (Peter Dyballa) Date: Wed, 20 Dec 2006 02:00:04 +0100 Subject: [macemacsjp-english 793] Re: emacs/latex problem In-Reply-To: References: <9C6A1C9A-800F-4D83-9FCB-D4A5BFA83193@Web.DE> <088284DC-1B14-4701-9AC9-A6EB9C569011@Web.DE> Message-ID: Am 20.12.2006 um 00:34 schrieb Roussanka Loukanova: > > I guess, I have to replace "latex" with the dvips, ps2pdf commands, > but what exactly should I type there? 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. > >> Again, since you need to add a command to the Commands menu, think of >> adding a shell script as a PSTricks command. Herb Schulz' ps4pdf >> engine script goes (a bit edited by me): > > Do I have to copy and paste this code in some file? (sorry for the > stupid question: I've never done such things up to now). Yes. The file should not be named ps4pdf, because this is already used by another file (ps4pdf.sh would work). The script file should go into the bin folder in your home directory. Once it's saved, you'd need to make it executable (with Finder's inspector for example, or on the command line in Terminal: "chmod a+x "). > > >> accommodate the texdoc script to use particular applications for >> particular file formats ? and texdoc is in my AUCTeX the Viewer. To >> save my custom texdoc script from being erased by an i-Package update >> I've put into my ~/bin directory, which is in the search path for >> executables. > > I will create such too, but what exactly to put in it? > It seems I've understood the lesson quite ok, but without being > able to do something pragmatical :( 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: : ${TEXDOCVIEW_dvi='open -a TeXShop\ 2.app %s'} : ${TEXDOCVIEW_pdf='open -a TeXShop\ 2.app %s'} : ${TEXDOCVIEW_ps='open -a TeXShop\ 2.app %s'} : ${TEXDOCVIEW_html='open -a OmniWeb.app %s'} : ${TEXDOCVIEW_txt="emacsclient %s"} : ${TEXDOCVIEW_="emacsclient %s"} # no extension, default to pager Actually the .app extension is not necessary, the Mac OS X launch service finds the real programme in /Applications/.app/Contents/MacOS/, so just substitute "TeXShop\ 2.app" everytime with "Preview"! The last two lines could be substituted by 'open -a TextEdit %s' ? which from time to time fails to open text files ... > > I've tried it and it works, but I prefer the Preview program for > viewing and even for presentations because it gives me good control > over jumping over pages back and forth (I even prefer Preview > instead of Acrobat reader). That's natural and human. -- Mit friedvollen Gr??en Pete There's no sense in being precise when you don't even know what you're talking about. -- John von Neumann From rloukano at stp.lingfil.uu.se Thu Dec 21 06:06:08 2006 From: rloukano at stp.lingfil.uu.se (Roussanka Loukanova) Date: Wed, 20 Dec 2006 22:06:08 +0100 (CET) Subject: [macemacsjp-english 794] Re: emacs/latex problem In-Reply-To: References: <9C6A1C9A-800F-4D83-9FCB-D4A5BFA83193@Web.DE> <088284DC-1B14-4701-9AC9-A6EB9C569011@Web.DE> Message-ID: 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 . Then I delete and repalce it with (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 From rloukano at stp.lingfil.uu.se Thu Dec 21 06:12:55 2006 From: rloukano at stp.lingfil.uu.se (Roussanka Loukanova) Date: Wed, 20 Dec 2006 22:12:55 +0100 (CET) Subject: [macemacsjp-english 795] Re: emacs/latex problem In-Reply-To: <088284DC-1B14-4701-9AC9-A6EB9C569011@Web.DE> References: <9C6A1C9A-800F-4D83-9FCB-D4A5BFA83193@Web.DE> <088284DC-1B14-4701-9AC9-A6EB9C569011@Web.DE> Message-ID: On Tue, 19 Dec 2006, Peter Dyballa wrote: > > Am 19.12.2006 um 22:10 schrieb Roussanka Loukanova: > >>>> 2. Then, Ctrl-c Ctrl-c runs latex successfully but without creating >>>> pdf, >>>> i.e. it does not get the sequence of commands: dvips + ps2pdf. >> >> If right after the 1st Command (in Carbon Emacs, 1.6.0) Ctrl-c Ctrl-c, >> I confirm Latex, it creats a good dvi file. Then if I try, with >> another >> Ctrl-c Ctrl-c, to type dvips in the Command minbuffer-line, Emacs >> responds >> with [No match]. > > That's the wrong way! You have to choose one of the commands from the > Commands menu! Everything else AUCTeX does not understand. If you > want to use dvips you would need to add a dvips command first. This > might work from LaTeX -> Customize AUCTeX -> Browse Options (this way > I added XeTeX commands, one sort to use dvipdfmx and another one to > use the Mac OS X default xdv2pdf). > > Again, since you need to add a command to the Commands menu, think of > adding a shell script as a PSTricks command. Herb Schulz' ps4pdf > engine script goes (a bit edited by me): [...] Here is what I tried with ps4pdf.sh ~/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 The content of ps4pdf.sh is exactly as you gave it: #!/bin/sh basefname=`basename "$1" .tex` # process the figures latex --shell-escape "$1" dvips -Ppdf -o "${basefname}-pics.ps" "${basefname}.dvi" ps2pdf -dAutoRotatePages=/None "${basefname}-pics.ps" "${basefname}-pics.pdf" pdfcrop "${basefname}-pics.pdf" mv "${basefname}-pics-crop.pdf" "${basefname}-pics.pdf" # remove intermediate files rm "${basefname}-pics.ps" "${basefname}.dvi" # process the file pdflatex "$1" But bash does not see the command: $ ps4pdf.sh lec2.tex -bash: ps4pdf.sh: command not found (ps4pdf works) Roussanka From Peter_Dyballa at Web.DE Thu Dec 21 08:10:37 2006 From: Peter_Dyballa at Web.DE (Peter Dyballa) Date: Thu, 21 Dec 2006 00:10:37 +0100 Subject: [macemacsjp-english 796] Re: emacs/latex problem In-Reply-To: References: <9C6A1C9A-800F-4D83-9FCB-D4A5BFA83193@Web.DE> <088284DC-1B14-4701-9AC9-A6EB9C569011@Web.DE> Message-ID: 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 . Because you did not change the default customisation in AUCTeX, it's still using its old defaults. > Then I delete and repalce it with > (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 From Peter_Dyballa at Web.DE Thu Dec 21 08:25:53 2006 From: Peter_Dyballa at Web.DE (Peter Dyballa) Date: Thu, 21 Dec 2006 00:25:53 +0100 Subject: [macemacsjp-english 797] Re: emacs/latex problem In-Reply-To: References: <9C6A1C9A-800F-4D83-9FCB-D4A5BFA83193@Web.DE> <088284DC-1B14-4701-9AC9-A6EB9C569011@Web.DE> Message-ID: <6674C134-6276-4BDC-9809-BEDF405550A1@Web.DE> Am 20.12.2006 um 22:12 schrieb Roussanka Loukanova: > But bash does not see the command: > > $ ps4pdf.sh lec2.tex > -bash: ps4pdf.sh: command not found Can you invoke in Terminal echo $PATH It seems that your bash is not set up to look also into ~/bin ... The cure would be to do this on the command line in Terminal: echo "export PATH=\$PATH:\$HOME/bin" >> ~/.bashrc After you have run this you should be able to use ps4pdf.sh. No reboot, no logging out and in needed, just quit Terminal and launch it again, so that bash can "load" your .bashrc file and expand the search path for executables. Emacs is a bit different, you would need to add something like this to your .emacs file: (setenv "PATH" (concat "$HOME/bin" ":" (getenv "PATH"))) but I'm not sure about this. Hopefully some Elisp author corrects me! -- Greetings Pete How many Microsoft engineers does it take to screw in a light-bulb? None. They just redefine "dark" as the new standard. From rloukano at stp.lingfil.uu.se Fri Dec 22 05:17:01 2006 From: rloukano at stp.lingfil.uu.se (Roussanka Loukanova) Date: Thu, 21 Dec 2006 21:17:01 +0100 (CET) Subject: [macemacsjp-english 798] Re: emacs/latex problem In-Reply-To: <6674C134-6276-4BDC-9809-BEDF405550A1@Web.DE> References: <9C6A1C9A-800F-4D83-9FCB-D4A5BFA83193@Web.DE> <088284DC-1B14-4701-9AC9-A6EB9C569011@Web.DE> <6674C134-6276-4BDC-9809-BEDF405550A1@Web.DE> Message-ID: On Thu, 21 Dec 2006, Peter Dyballa wrote: > Am 20.12.2006 um 22:12 schrieb Roussanka Loukanova: > >> But bash does not see the command: >> >> $ ps4pdf.sh lec2.tex >> -bash: ps4pdf.sh: command not found > echo "export PATH=\$PATH:\$HOME/bin" >> ~/.bashrc > > After you have run this you should be able to use ps4pdf.sh. No > reboot, no logging out and in needed, just quit Terminal and launch > it again, so that bash can "load" your .bashrc file and expand the > search path for executables. Thanks a lot: ps4pdf.sh works now. Roussanka From rloukano at stp.lingfil.uu.se Fri Dec 22 06:24:59 2006 From: rloukano at stp.lingfil.uu.se (Roussanka Loukanova) Date: Thu, 21 Dec 2006 22:24:59 +0100 (CET) Subject: [macemacsjp-english 799] Re: emacs/latex problem In-Reply-To: References: <9C6A1C9A-800F-4D83-9FCB-D4A5BFA83193@Web.DE> <088284DC-1B14-4701-9AC9-A6EB9C569011@Web.DE> Message-ID: 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 > macemacsjp-english at lists.sourceforge.jp > http://lists.sourceforge.jp/mailman/listinfo/macemacsjp-english > From rloukano at stp.lingfil.uu.se Fri Dec 22 07:09:23 2006 From: rloukano at stp.lingfil.uu.se (Roussanka Loukanova) Date: Thu, 21 Dec 2006 23:09:23 +0100 (CET) Subject: [macemacsjp-english 800] latex+dvips+ps2pdf Re: emacs/latex problem In-Reply-To: References: <9C6A1C9A-800F-4D83-9FCB-D4A5BFA83193@Web.DE> <088284DC-1B14-4701-9AC9-A6EB9C569011@Web.DE> Message-ID: Hi again-again, Here is my unsuccessful attempt to create a common command latex+dvips+ps2pdf, which is with the only purpose, to get latex running on files that depend of pstrics drawings (which does not work with pdflatex) and then the final pdf file opened with Preview. Hope for help. I've tried something similar to what Pete suggested for his command XeLaTeX & xdvipfmx: INS INS DEL Name: latex+dvips Command: latex -output-driver='%(o?)dvips %d -o %f' "%(mode)\input %t" How: Value Menu TeX-run-TeX Create a process for NAME using COMMAND to format FILE with TeX. Prompt: Toggle off (nil) Modes: Value Menu Set: [ ] Plain TeX [X] LaTeX [X] DocTeX [ ] ConTeXt [ ] Texinfo [ ] AmSTeX Menu elements: INS Then I get: Running `latex+dvips' on `lec2' with ``latex -output-driver='dvips lec2.dvi -o lec2.ps' "\nonstopmode\input lec2.tex"'' latex: unrecognized option `-output-driver=dvips lec2.dvi -o lec2.ps' I tried this with and without DocTex checked. ----- Roussanka From rloukano at stp.lingfil.uu.se Fri Dec 22 09:58:15 2006 From: rloukano at stp.lingfil.uu.se (Roussanka Loukanova) Date: Fri, 22 Dec 2006 01:58:15 +0100 (CET) Subject: [macemacsjp-english 801] simpdftex: Re: [OS X TeX] latex+dvips+ps2pdf Re: Re: emacs/latex problem (fwd) Message-ID: Hi, On Fri, 22 Dec 2006, Gerben Wierda wrote: > Anything wrong with using simpdftex? > > G I've heard about it only now (sorry for being so behind). It works fine in the Terminal. But I do not know how to do it from within Carbon Emacs, i.e. (to me, the same as with latex+dvips+ps2pdf), I can't get a Command for it: I tried the following and it does not work (it seems, it doesn't get its 2nd option): INS DEL Name: simpdftex Command: simpdftex latex --maxpfb "%(mode)\input{%t}" How: Value Menu TeX-run-TeX Create a process for NAME using COMMAND to format FILE with TeX. Prompt: Toggle off (nil) Modes: Value Menu Set: [ ] Plain TeX [X] LaTeX [X] DocTeX [ ] ConTeXt [ ] Texinfo [ ] AmSTeX Menu elements: INS Then running it gives: Running `simpdftex' on `lec2' with ``simpdftex latex --maxpfb "\nonstopmode\input{lec2.tex}"'' ### This is /usr/local/teTeX/bin/powerpc-apple-darwin-current/simpdftex, Version $Revision: 2.18 $ ### /usr/local/teTeX/bin/powerpc-apple-darwin-current/latex \nonstopmode\input{lec2.tex} This is pdfeTeX, Version 3.141592-1.30.4-2.2 (Web2C 7.5.5) entering extended mode LaTeX2e <2005/12/01> [...] Output written on lec2.dvi (23 pages, 93868 bytes). Transcript written on lec2.log. ### /usr/local/teTeX/bin/powerpc-apple-darwin-current/dvips -R -Poutline -o /tmp/altpdflatex.1618-1166747684/\nonstopmode\input{lec2.ps \nonstopmode\input{lec2.dvi This is dvips(k) 5.95b Copyright 2005 Radical Eye Software (www.radicaleye.com) /usr/local/teTeX/bin/powerpc-apple-darwin-current/dvips: ! DVI file can't be opened. ### FAILED to generate /tmp/altpdflatex.1618-1166747684/\nonstopmode\input{lec2.ps () simpdftex exited abnormally with code 1 at Fri Dec 22 01:34:46 ------------------ Regards, Roussanka From zenitani at mac.com Fri Dec 22 10:58:42 2006 From: zenitani at mac.com (Seiji Zenitani) Date: Thu, 21 Dec 2006 20:58:42 -0500 Subject: [macemacsjp-english 802] Re: Freezing Problem In-Reply-To: References: <334fcf0e0611232342p4ecbc592i4cdb0214ccb030f2@mail.gmail.com> <54F516ED-54C7-45B8-ABFB-6E8FD7808F28@mac.com> <334fcf0e0611292329v702f177cudee40f7bea10fec8@mail.gmail.com> Message-ID: <8B2F93D0-0EEF-4E79-B610-0EE80CCC76B4@mac.com> Dear list, Do you turn the "OSX Native Input Method" option off in the menu bar? I am considering to remove this item from the menu bar for simplicity, because beginners will not likely to use it and because power-users can turn it off via .emacs.el. I just want to know whether or not this option is critical to non-Japanese beginner users. Seiji On 2006/11/30, at 6:39, Seiji Zenitani wrote: > Hi, > > On 2006/11/30, at 4:24, Pierre Albarede wrote: > >> Hello, >> >> Le 30 nov. 06 ? 08:29, Andy Green a ?crit : >> >>> Seiji, >>> Actually, I had "OSX Native Input Method" turned off, and turning >>> it on resulted in immediate improvement. Switching it off again >>> brought the problem back, so clearly it works much better with it >>> turned on. I imagined this was something simple, but I couldn't >>> find hints anywhere for the life of me. >> >> Me too. >> I would never have looked for options in the Help menu ! > > Andy and Pierre, thank you for your reports. On my powerbook emacs is > stable with the option off, but I forwarded this issue to the > Japanese mailing list. Please report to this mailing list if you find > any other clues. > > Seiji > From Peter_Dyballa at Web.DE Fri Dec 22 19:46:55 2006 From: Peter_Dyballa at Web.DE (Peter Dyballa) Date: Fri, 22 Dec 2006 11:46:55 +0100 Subject: [macemacsjp-english 803] Re: [OS X TeX] latex+dvips+ps2pdf Re: Re: emacs/latex problem (fwd) In-Reply-To: <4FE8BD70-05FF-4FA5-AFDD-1002950F2493@rna.nl> References: <4FE8BD70-05FF-4FA5-AFDD-1002950F2493@rna.nl> Message-ID: Am 22.12.2006 um 09:31 schrieb Gerben Wierda: > On Dec 22, 2006, at 01:40 , Roussanka Loukanova wrote: > >> simpdftex latex --maxpfb "\nonstopmode\input{lec2.tex}" > > Well, that is because simpdflatex is not a real TeX and cannot > parse \nonstopmode\input{lec2.tex}. It expects a filename or a file > basename. > > What should work (adapted from your example) is: > > INS DEL Name: simpdftex > Command: simpdftex latex --maxpfb "%t" > How: Value Menu TeX-run-TeX > Create a process for NAME using COMMAND to format FILE > with TeX. > Prompt: Toggle off (nil) > Modes: Value Menu Set: > [ ] Plain TeX > [X] LaTeX > [X] DocTeX > [ ] ConTeXt > [ ] Texinfo > [ ] AmSTeX > Menu elements: > INS And another such block for plain TeX or AmSTeX files ... Then the command names for the Commands menu should be better "simpdflatex" and "simpdftex" (the sim part comes from simulate, not from simple) ? AUCTeX easily distinguishes between TeX and LaTeX and chooses the appropriate command. And since simpdftex has a few options to direct dvips in what it is doing you might also wish to create some more and specialised commands. And finally you might end up with a simpdfTeX sub-menu ... -- Greetings Pete ?Twas a woman who drove me to drink, and I never had the courtesy to thank her for it. ? W.C. Fields From Peter_Dyballa at Web.DE Fri Dec 22 20:05:36 2006 From: Peter_Dyballa at Web.DE (Peter Dyballa) Date: Fri, 22 Dec 2006 12:05:36 +0100 Subject: [macemacsjp-english 804] Re: Freezing Problem In-Reply-To: <8B2F93D0-0EEF-4E79-B610-0EE80CCC76B4@mac.com> References: <334fcf0e0611232342p4ecbc592i4cdb0214ccb030f2@mail.gmail.com> <54F516ED-54C7-45B8-ABFB-6E8FD7808F28@mac.com> <334fcf0e0611292329v702f177cudee40f7bea10fec8@mail.gmail.com> <8B2F93D0-0EEF-4E79-B610-0EE80CCC76B4@mac.com> Message-ID: Am 22.12.2006 um 02:58 schrieb Seiji Zenitani: > Do you turn the "OSX Native Input Method" option off in the menu > bar? To me it seems I did not turn it on ... I think it's meant as support for non-Latin scripts. Turning it on it does not seem to interfere. -- Greetings Pete "If you don't find it in the index, look very carefully through the entire catalogue." ? Sears, Roebuck, and Co., Consumer's Guide, 1897 From rloukano at stp.lingfil.uu.se Fri Dec 22 21:04:12 2006 From: rloukano at stp.lingfil.uu.se (Roussanka Loukanova) Date: Fri, 22 Dec 2006 13:04:12 +0100 (CET) Subject: [macemacsjp-english 805] Re: [OS X TeX] latex+dvips+ps2pdf Re: Re: emacs/latex problem (fwd) In-Reply-To: <4FE8BD70-05FF-4FA5-AFDD-1002950F2493@rna.nl> References: <4FE8BD70-05FF-4FA5-AFDD-1002950F2493@rna.nl> Message-ID: Thanks lot Gerben! The life get different when we get things working :) Now, the next in the chain irritating thing is: 1. C-c C-c si Return (or alternatively, C-c C-c simpdftex Return, or select from the Command menu simpdftex) runs latexing via simpdftex, with the only but significantly good difference from the command latex, by creating the pdf file. Then the 2nd successive C-c C-c invokes View command: texdoc lec2.dvi - If I hit Return, View command: texdoc lec2.dvi Return of course, TeXShop opens a *newer* pdf version, i.e. its own conversion of the dvi into pdf and overwrites the pdf created by simpdftex (which is a redundancy, and in such case, one would not need to run the sipdftex). - But if, in the Emacs command line, I replace the dvi extension of lec2.dvi with pdf, i.e. View command: texdoc lec2.pdf Return With this, properly with respect to the purpose of using simpdftex, Preview opens the lec2.pdf file *without* creating such, and without any changes over the lec2.pdf file (without changing its original time stamp as it was). This what is desired by using simpdftex. Now, and what and how to do, so that: 1st runs simpdftex 2nd understands that simpdftex has been run and invokes as default: View command: texdoc lec2.pdf For example, this way of viewing work with the pdflatex command, i.e. after a file has been latexed with pdflatex (no matter when), a C-c C-c invokes as default: View command: texdoc -remote "test_file" -raise test_file.pdf Recall that this user's texdoc is a version of the global texdoc created with (suggested by Pete): mkdir ~/bin ; cp `which texdoc` ~/bin) (I've tried few things that did not work: in the Tex Command List: Show Value -> Tex Output View Style: Show Value I replaced ^dvi$ with ^pdf$ in the command that use texdoc) Roussanka On Fri, 22 Dec 2006, Gerben Wierda wrote: > On Dec 22, 2006, at 01:40 , Roussanka Loukanova wrote: > >> simpdftex latex --maxpfb "\nonstopmode\input{lec2.tex}" > > Well, that is because simpdflatex is not a real TeX and cannot parse > \nonstopmode\input{lec2.tex}. It expects a filename or a file basename. > > What should work (adapted from your example) is: > > INS DEL Name: simpdftex > Command: simpdftex latex --maxpfb "%t" > How: Value Menu TeX-run-TeX > Create a process for NAME using COMMAND to format FILE with TeX. > Prompt: Toggle off (nil) > Modes: Value Menu Set: > [ ] Plain TeX > [X] LaTeX > [X] DocTeX > [ ] ConTeXt > [ ] Texinfo > [ ] AmSTeX > Menu elements: > INS > > G > > ------------------------- Helpful Info ------------------------- > Mac-TeX Website: http://www.esm.psu.edu/mac-tex/ > TeX FAQ: http://www.tex.ac.uk/faq > List Archive: http://tug.org/pipermail/macostex-archives/ > List Reminders & Etiquette: http://www.esm.psu.edu/mac-tex/list/ > > From Peter_Dyballa at Web.DE Fri Dec 22 21:28:54 2006 From: Peter_Dyballa at Web.DE (Peter Dyballa) Date: Fri, 22 Dec 2006 13:28:54 +0100 Subject: [macemacsjp-english 806] Re: [OS X TeX] latex+dvips+ps2pdf Re: Re: emacs/latex problem (fwd) In-Reply-To: References: <4FE8BD70-05FF-4FA5-AFDD-1002950F2493@rna.nl> Message-ID: <5416D242-2C1F-4F63-BD3D-2A42448DD5C1@Web.DE> Am 22.12.2006 um 13:04 schrieb Roussanka Loukanova: > With this, properly with respect to the purpose of using simpdftex, > Preview opens the lec2.pdf file *without* creating such, and > without any > changes over the lec2.pdf file (without changing its original time > stamp > as it was). This what is desired by using simpdftex. Make pdfTeX your default: C-c C-t C-p. -- Greetings Pete Make it simple, as simple as possible but no simpler. Albert Einstein From rloukano at stp.lingfil.uu.se Fri Dec 22 21:47:26 2006 From: rloukano at stp.lingfil.uu.se (Roussanka Loukanova) Date: Fri, 22 Dec 2006 13:47:26 +0100 (CET) Subject: [macemacsjp-english 807] Re: [OS X TeX] latex+dvips+ps2pdf Re: Re: emacs/latex problem (fwd) In-Reply-To: <5416D242-2C1F-4F63-BD3D-2A42448DD5C1@Web.DE> References: <4FE8BD70-05FF-4FA5-AFDD-1002950F2493@rna.nl> <5416D242-2C1F-4F63-BD3D-2A42448DD5C1@Web.DE> Message-ID: Hi Pete, On Fri, 22 Dec 2006, Peter Dyballa wrote: > > Am 22.12.2006 um 13:04 schrieb Roussanka Loukanova: > >> With this, properly with respect to the purpose of using simpdftex, >> Preview opens the lec2.pdf file *without* creating such, and >> without any >> changes over the lec2.pdf file (without changing its original time >> stamp >> as it was). This what is desired by using simpdftex. > > Make pdfTeX your default: C-c C-t C-p. This works if I do not need to use the pstricks drawings (i.e. for pdflatex), or if I only need to display the pdf file that has been created with simpdftex without making updates in the tex file, running simpdftex with C-c C-c and right away, directly without the extra C-c C-t C-p, to hit C-c C-c and display the pdf with Preview. This is very important for fast work and esp. in needs to make small changes in front of audience or in rush of meeting deadlines. Even something more, it should be the best for us, who favor Emacs with Latex, to be able to display in Preview the updated version of pdf (with pdflatex and sipdftex) without the need to close the Preview's window with the previous version of the pdf file. Currently this is the only plus that TexShop has in compare to Emacs, to me. (Or am missing something to get this in Emacs?) Roussanka > > -- > Greetings > > Pete > > Make it simple, as simple as possible but no simpler. > Albert Einstein > > > _______________________________________________ > macemacsjp-english mailing list > macemacsjp-english at lists.sourceforge.jp > http://lists.sourceforge.jp/mailman/listinfo/macemacsjp-english > -- Roussanka ------------------------------------------------ Roussanka Loukanova Computational Linguistics Dept. of Linguistics and Philology Uppsala University P.Box 635, Uppsala 751 26, Sweden Tel: +46 18 471 1342 (office) +46 18 750 0340 Email: rloukano at stp.lingfil.uu.se URL: http://stp.ling.uu.se/~rloukano/ -------------------------------------------------- From Peter_Dyballa at Web.DE Fri Dec 22 22:21:46 2006 From: Peter_Dyballa at Web.DE (Peter Dyballa) Date: Fri, 22 Dec 2006 14:21:46 +0100 Subject: [macemacsjp-english 808] Re: [OS X TeX] latex+dvips+ps2pdf Re: Re: emacs/latex problem (fwd) In-Reply-To: References: <4FE8BD70-05FF-4FA5-AFDD-1002950F2493@rna.nl> <5416D242-2C1F-4F63-BD3D-2A42448DD5C1@Web.DE> Message-ID: <8FA82E7E-73F6-4473-B26C-8D4D395FB57B@Web.DE> Am 22.12.2006 um 13:47 schrieb Roussanka Loukanova: >> Make pdfTeX your default: C-c C-t C-p. > > This works if I do not need to use the pstricks drawings So you abandoned the use of ps4pdf, with or without .sh? > or if I only need to display the pdf file that has been created > with simpdftex without making updates in the tex file, running > simpdftex > with C-c C-c and right away, directly without the extra C-c C-t C-p, > to hit C-c C-c and display the pdf with Preview. This is very > important > for fast work and esp. in needs to make small changes in front of > audience > or in rush of meeting deadlines. Are you sure that when PDF is set as your default TeX output file format simpdftex does not work? If so, then create a DVIview command and a PDFview command. Could be for the latter you would have to register first PDF file type. You might also like to contact the AUCTeX developers mailing list: auctex-devel (at) gnu.org. Or the typical Emacs help list: help-gnu- emacs (at) gnu.org. Before you do this, sleep once or twice, sort a bit your demands, and try to find out what is working and why other's not working. It might help to understand AUCTeX and develop appropriate work-flows. My suggestions were not meant to be perfect, rather to show you possible ways to find (partial) solutions. > > Even something more, it should be the best for us, who favor Emacs > with > Latex, to be able to display in Preview the updated version of pdf > (with pdflatex and sipdftex) without the need to close the Preview's > window with the previous version of the pdf file. This is the site to report a wish: https://bugreport.apple.com/cgi- bin/WebObjects/RadarWeb.woa > > Currently this is the only plus that TexShop has in compare to > Emacs, to > me. (Or am missing something to get this in Emacs?) GNU Emacs can directly display graphics in XPM, GIF, TIFF, and old JPEG format (i.e. not in JPEG2000). TeXniscope also automatically reloads the PDF file. And it also displays DVI ? after it was converted to PDF. Both TeXShop and TeXniscope use the pdfsync method, i.e. pointing into PDF output positions the the cursor in the TeX input. Well, somehow. -- Greetings Pete "If we don't succeed, we run the risk of failure." George W. Bush From njriley at uiuc.edu Fri Dec 22 22:26:14 2006 From: njriley at uiuc.edu (Nicholas Riley) Date: Fri, 22 Dec 2006 07:26:14 -0600 Subject: [macemacsjp-english 809] Re: [OS X TeX] latex+dvips+ps2pdf Re: Re: emacs/latex problem (fwd) In-Reply-To: <8FA82E7E-73F6-4473-B26C-8D4D395FB57B@Web.DE> References: <4FE8BD70-05FF-4FA5-AFDD-1002950F2493@rna.nl> <5416D242-2C1F-4F63-BD3D-2A42448DD5C1@Web.DE> <8FA82E7E-73F6-4473-B26C-8D4D395FB57B@Web.DE> Message-ID: <20061222132614.GA29246@uiuc.edu> On Fri, Dec 22, 2006 at 02:21:46PM +0100, Peter Dyballa wrote: > > Even something more, it should be the best for us, who favor Emacs > > with > > Latex, to be able to display in Preview the updated version of pdf > > (with pdflatex and sipdftex) without the need to close the Preview's > > window with the previous version of the pdf file. you can use 'revert' in Preview to view the on-disk version of a PDF. -- Nicholas Riley | From zenitani at mac.com Sat Dec 23 02:21:27 2006 From: zenitani at mac.com (Seiji Zenitani) Date: Fri, 22 Dec 2006 09:21:27 -0800 Subject: [macemacsjp-english 810] Re: Freezing Problem Message-ID: On 2006/12/22, at 6:05, Peter Dyballa wrote: > > Am 22.12.2006 um 02:58 schrieb Seiji Zenitani: > > > > Do you turn the "OSX Native Input Method" option off in the menu > > bar? > > To me it seems I did not turn it on ... I think it's meant as support > for non-Latin scripts. Yes, for CJK people, OSX Native Input Method should be on. > Turning it on it does not seem to interfere. If it does not interfere with Latin/Roman language users when you turn it on, everything is OK. If no interference is reported in 2006, I will remove the option from the menu. It will be always on in future releases. If you want to turn it off, please add (mac-input-method-mode -1) to your .emacs.el. Happy Christmas, Seiji From stough at cis.ksu.edu Sat Dec 23 03:19:37 2006 From: stough at cis.ksu.edu (Alley Stoughton) Date: Fri, 22 Dec 2006 12:19:37 -0600 Subject: [macemacsjp-english 811] displaying PDF files on Macs In-Reply-To: References: Message-ID: <17804.8633.465053.803509@Alley.local> Nicholas Riley wrote: > On Fri, Dec 22, 2006 at 02:21:46PM +0100, Peter Dyballa wrote: > > > Even something more, it should be the best for us, who favor Emacs > > > with > > > Latex, to be able to display in Preview the updated version of pdf > > > (with pdflatex and sipdftex) without the need to close the Preview's > > > window with the previous version of the pdf file. > > you can use 'revert' in Preview to view the on-disk version of a PDF. The problem with using revert in this way is that it returns one to the first page of the document. It's also a pain that there isn't a keyboard shortcut for it. I happily use the free version of Adobe Reader for displaying PDF documents in final form. Sadly, there isn't even a revert command in the free version of Adobe Reader. (The best I've come up with is to close the window, and open the appropriate entry of the recently viewed files). Does anyone know for sure whether there is an Adobe product that one must pay for that does offer this functionality? Or can anyone point me to a discussion of why they haven't provided this functionality? It seems maddening to me that Adobe Reader is so close to what I want, but lacks a key feature. I guess I could say the same thing about Preview. Alley From Peter_Dyballa at Web.DE Sat Dec 23 03:57:08 2006 From: Peter_Dyballa at Web.DE (Peter Dyballa) Date: Fri, 22 Dec 2006 19:57:08 +0100 Subject: [macemacsjp-english 812] Re: displaying PDF files on Macs In-Reply-To: <17804.8633.465053.803509@Alley.local> References: <17804.8633.465053.803509@Alley.local> Message-ID: <5E7EE24C-674E-4027-A2FF-509D3F0F5216@Web.DE> Am 22.12.2006 um 19:19 schrieb Alley Stoughton: > Does anyone know for sure whether there is an Adobe product that one > must pay for that does offer this functionality? Use TeXShop! You can kind of browse "sideways," i.e. once you've set magnification and clipped header and footer away you'll see every page through this "mask." For searching I use Preview. -- Greetings Pete "Evolution" o __o _o _ ?\___o /0~ -\<, ^\___ /=\\_/-% oo~_______ /\ /\______/ \_________O/ O_______________o===>-->O--o____ From rloukano at stp.lingfil.uu.se Sat Dec 23 06:05:10 2006 From: rloukano at stp.lingfil.uu.se (Roussanka Loukanova) Date: Fri, 22 Dec 2006 22:05:10 +0100 (CET) Subject: [macemacsjp-english 813] Re: [OS X TeX] latex+dvips+ps2pdf Re: Re: emacs/latex problem (fwd) In-Reply-To: <20061222132614.GA29246@uiuc.edu> References: <4FE8BD70-05FF-4FA5-AFDD-1002950F2493@rna.nl> <5416D242-2C1F-4F63-BD3D-2A42448DD5C1@Web.DE> <8FA82E7E-73F6-4473-B26C-8D4D395FB57B@Web.DE> <20061222132614.GA29246@uiuc.edu> Message-ID: Thanks Nicholas: I haven't noticed this option up to now (and may be many other things)! Roussanka On Fri, 22 Dec 2006, Nicholas Riley wrote: > On Fri, Dec 22, 2006 at 02:21:46PM +0100, Peter Dyballa wrote: >>> Even something more, it should be the best for us, who favor Emacs >>> with >>> Latex, to be able to display in Preview the updated version of pdf >>> (with pdflatex and sipdftex) without the need to close the Preview's >>> window with the previous version of the pdf file. > > you can use 'revert' in Preview to view the on-disk version of a PDF. > > -- > Nicholas Riley | > _______________________________________________ > macemacsjp-english mailing list > macemacsjp-english at lists.sourceforge.jp > http://lists.sourceforge.jp/mailman/listinfo/macemacsjp-english > -- Roussanka ------------------------------------------------ Roussanka Loukanova Computational Linguistics Dept. of Linguistics and Philology Uppsala University P.Box 635, Uppsala 751 26, Sweden Tel: +46 18 471 1342 (office) +46 18 750 0340 Email: rloukano at stp.lingfil.uu.se URL: http://stp.ling.uu.se/~rloukano/ -------------------------------------------------- From rloukano at stp.lingfil.uu.se Sat Dec 23 07:00:27 2006 From: rloukano at stp.lingfil.uu.se (Roussanka Loukanova) Date: Fri, 22 Dec 2006 23:00:27 +0100 (CET) Subject: [macemacsjp-english 814] Re: [OS X TeX] latex+dvips+ps2pdf Re: Re: emacs/latex problem (fwd) In-Reply-To: <8FA82E7E-73F6-4473-B26C-8D4D395FB57B@Web.DE> References: <4FE8BD70-05FF-4FA5-AFDD-1002950F2493@rna.nl> <5416D242-2C1F-4F63-BD3D-2A42448DD5C1@Web.DE> <8FA82E7E-73F6-4473-B26C-8D4D395FB57B@Web.DE> Message-ID: On Fri, 22 Dec 2006, Peter Dyballa wrote: > Are you sure that when PDF is set as your default TeX output file > format simpdftex does not work? You are right that simpdftex works when Tex-Pdf mode is enabled (C-c C-t C-p). But C-c C-c invokes the and I have to delete and replace the dvi with pdf. > > If so, then create a DVIview command and a PDFview command. Could be > for the latter you would have to register first PDF file type. Too much for my knowledge of how-to-do :( > > You might also like to contact the AUCTeX developers mailing list: > Before you do this, sleep once or twice, [...] yes, I need this, I've got entirely exhausted... From rloukano at stp.lingfil.uu.se Sat Dec 23 07:10:17 2006 From: rloukano at stp.lingfil.uu.se (Roussanka Loukanova) Date: Fri, 22 Dec 2006 23:10:17 +0100 (CET) Subject: [macemacsjp-english 815] ps4pdf(.sh) Re: latex+dvips+ps2pdf In-Reply-To: <8FA82E7E-73F6-4473-B26C-8D4D395FB57B@Web.DE> References: <4FE8BD70-05FF-4FA5-AFDD-1002950F2493@rna.nl> <5416D242-2C1F-4F63-BD3D-2A42448DD5C1@Web.DE> <8FA82E7E-73F6-4473-B26C-8D4D395FB57B@Web.DE> Message-ID: Hi again-again-again, On Fri, 22 Dec 2006, Peter Dyballa wrote: > > So you abandoned the use of ps4pdf, with or without .sh? Not at all, but I have not been successful to make commands for them as I have managed with simpdftex, i.e., in practice, Gerben did that. Now on the pluses and the problems: ps4pdf(.sh)'s file-pics.pdf are very good as intermediate (final at some point) versions of what was file.pdf which is the working version. Running them on the Terminal shell is not a big problem, but it might be good to have them inside Emacs. The drawback of both ps4pdf and ps4pdf.sh is that the file.pdf (without the -pics) is not the output of dvips+ps2pdf, i.e. it is without the lines of the pstricks' drawings. But a bigger problem seems to be: I get the ps4pdf.sh's file-pics.pdf quite different from ps4pdf's file-pics.pdf, i.e., at least on my screen in Preview: ps4pdf's file-pics.pdf fits normally into the page; ps4pdf.sh's file-pics.pdf is somehow magnified and occupies the entire page, without any margins! Is it is supposed to be so, which seems to me peculiar, or there is something wrong with my drivers on my system? Roussanka From zenitani at mac.com Sat Dec 23 12:25:51 2006 From: zenitani at mac.com (Seiji Zenitani) Date: Fri, 22 Dec 2006 22:25:51 -0500 Subject: [macemacsjp-english 816] new beta Message-ID: <32A19CDF-26F4-4585-9C62-AC98D7806BDE@mac.com> Hi, New beta is available for intel macs. Happy holidays! http://macemacsjp.sourceforge.jp/package/test/ -- Seiji From statmobile at gmail.com Sat Dec 23 16:40:00 2006 From: statmobile at gmail.com (Brian J. Lopes) Date: Sat, 23 Dec 2006 02:40:00 -0500 Subject: [macemacsjp-english 817] Re: displaying PDF files on Macs In-Reply-To: <5E7EE24C-674E-4027-A2FF-509D3F0F5216@Web.DE> References: <17804.8633.465053.803509@Alley.local> <5E7EE24C-674E-4027-A2FF-509D3F0F5216@Web.DE> Message-ID: <20061223074000.GA9514@bjl> fdaOn Fri, Dec 22, 2006 at 07:57:08PM +0100, Peter Dyballa wrote: > > Am 22.12.2006 um 19:19 schrieb Alley Stoughton: > > > Does anyone know for sure whether there is an Adobe product that one > > must pay for that does offer this functionality? > > Use TeXShop! You can kind of browse "sideways," i.e. once you've set > magnification and clipped header and footer away you'll see every > page through this "mask." For searching I use Preview. First of all, let me thank Peter for his informative and very helpful posts. Even if I'm not having the problem being discussed, I still save your emails for a day I can sit back and read your informative replies. With that said, I must disagree with TeXShop. It just doesn't perform the way I would expect a native pdf O/S to act when looking at an updated pdf file. I came across TeXniscope, and it does an amazing job like xdvi on X11 and Yap on Windows, but it handles dvi and pdf very well. To be honest, I'm not sure about whether it handles dvi files dynamically, but I know that if I compile the file with pdflatex file on the command line, I need merely swith back to Techniscope and its dynamically updated without requiring any input on my behalf. I would love to learn how to implement the reverse searching with Carbon emacs, but that's a conversation for another day. For now, I just wanted to give my glowing endorsement for this product even though it's still in beta. Again, thank you Peter for all your help on this list. You and Seiji truly are assets to Carbon Emacs! -- To know that we know what we know, and that we do not know what we do not know, that is true knowledge --Henry David Thoreau (quoting Confucius): Walden From rloukano at stp.lingfil.uu.se Sat Dec 23 20:47:26 2006 From: rloukano at stp.lingfil.uu.se (Roussanka Loukanova) Date: Sat, 23 Dec 2006 12:47:26 +0100 (CET) Subject: [macemacsjp-english 818] xdvi from Carbon Emacs Message-ID: Hi again, BTW, if I try the default xdvi to view dvi files from the Emacs command line: View command: xdvi lec2.dvi I get nothing. How should I get this working? Up to now, the only way, I've managed to open xdvi is with: $ open-x11 xdvi lec2.dvi -- Roussanka ------------------------------------------------ Roussanka Loukanova Computational Linguistics Dept. of Linguistics and Philology Uppsala University P.Box 635, Uppsala 751 26, Sweden Tel: +46 18 471 1342 (office) +46 18 750 0340 Email: rloukano at stp.lingfil.uu.se URL: http://stp.ling.uu.se/~rloukano/ -------------------------------------------------- From Peter_Dyballa at Web.DE Sat Dec 23 21:15:51 2006 From: Peter_Dyballa at Web.DE (Peter Dyballa) Date: Sat, 23 Dec 2006 13:15:51 +0100 Subject: [macemacsjp-english 819] Re: ps4pdf(.sh) Re: latex+dvips+ps2pdf In-Reply-To: References: <4FE8BD70-05FF-4FA5-AFDD-1002950F2493@rna.nl> <5416D242-2C1F-4F63-BD3D-2A42448DD5C1@Web.DE> <8FA82E7E-73F6-4473-B26C-8D4D395FB57B@Web.DE> Message-ID: <673B38D4-7B05-4364-9A1D-ABEA44A486BF@Web.DE> Am 22.12.2006 um 23:10 schrieb Roussanka Loukanova: > Now on the pluses and the problems: Roussanka, can you send me privately a sample of your PSTricks containing TeX files? That you can't see lines could be due to resolution/ magnification. They might (re-)appear at 200 % ... -- Greetings Pete "Give a man a fish, and you've fed him for a day. Teach him to fish, and you've depleted the lake." From Peter_Dyballa at Web.DE Sat Dec 23 21:25:29 2006 From: Peter_Dyballa at Web.DE (Peter Dyballa) Date: Sat, 23 Dec 2006 13:25:29 +0100 Subject: [macemacsjp-english 820] Re: xdvi from Carbon Emacs In-Reply-To: References: Message-ID: Am 23.12.2006 um 12:47 schrieb Roussanka Loukanova: > View command: xdvi lec2.dvi > > I get nothing. That's correct! Without an X(11 Window System) server already running and/or an unset environment variable DISPLAY the X(11 Window System) client xdvi won't appear ... > > How should I get this working? You need to launch X11 first (as mentioned). > > Up to now, the only way, I've managed to open xdvi is with: > > $ open-x11 xdvi lec2.dvi This is something auxiliary: no X11 Window Manager is running here. I can offer again to send you my application that "patches" some invisible files in your home directory. When you afterwards log off and log in again and launch X11 the interplay of Carbon or Cocoa applications and X11 will be perfect ? at least no-one reported a problem yet! -- Greetings Pete ?Computers are good at following instructions, but not at reading your mind.? - D. E. Knuth, The TeXbook, Addison-Wesley 1984, 1986, 1996, p. 9 From Peter_Dyballa at Web.DE Sun Dec 24 01:16:10 2006 From: Peter_Dyballa at Web.DE (Peter Dyballa) Date: Sat, 23 Dec 2006 17:16:10 +0100 Subject: [macemacsjp-english 821] Re: ps4pdf(.sh) Re: latex+dvips+ps2pdf In-Reply-To: References: <4FE8BD70-05FF-4FA5-AFDD-1002950F2493@rna.nl> <5416D242-2C1F-4F63-BD3D-2A42448DD5C1@Web.DE> <8FA82E7E-73F6-4473-B26C-8D4D395FB57B@Web.DE> Message-ID: Am 22.12.2006 um 23:10 schrieb Roussanka Loukanova: > ps4pdf(.sh)'s file-pics.pdf are very good as intermediate (final at > some > point) versions of what was file.pdf which is the working version. The real problem of your LaTeX source is that it uses dvips specific specials! There are no PSTricks involved! So you mustn't use ps4pdf. The right work flow would be: latex dvips -Ppdf (could be ps2pdf from Ghostscript or pstopdf from Apple) To view the output it would be OK to just run latex and either view the DVI file in xdvi or use TeXShop (TeXniscope can't be used, because dvipdfmx does support the dvips specials). OTOH: you're using quite old software to draw simple linguistic trees. Wouldn't you like to update? In the replies from the Mac OS X TeX list you can find in the footers a link to a TeX FAQ. It's worth trying it. Could be you'll find something that does not rely on old software ... Have you been here? http://www.essex.ac.uk/linguistics/clmt/latex4ling/ -- Greetings Pete Increase the size of your bike by at least *five* inches! From rloukano at stp.lingfil.uu.se Sun Dec 24 01:42:13 2006 From: rloukano at stp.lingfil.uu.se (Roussanka Loukanova) Date: Sat, 23 Dec 2006 17:42:13 +0100 (CET) Subject: [macemacsjp-english 822] Re: ps4pdf(.sh) Re: latex+dvips+ps2pdf In-Reply-To: References: <4FE8BD70-05FF-4FA5-AFDD-1002950F2493@rna.nl> <5416D242-2C1F-4F63-BD3D-2A42448DD5C1@Web.DE> <8FA82E7E-73F6-4473-B26C-8D4D395FB57B@Web.DE> Message-ID: > The right work flow would be: > > latex > dvips -Ppdf > (could be ps2pdf from Ghostscript or > pstopdf from Apple) > > To view the output it would be OK to just run latex and either view > the DVI file in xdvi or use TeXShop (TeXniscope can't be used, > because dvipdfmx does support the dvips specials). Yes, this seems so, except that the dvi does not have the lines of he graphs drown, so xdvi is not appropriate. But TeXShop and Preview are just fine. On my old computer I had TeXniscope, and will get it again. > OTOH: you're using quite old software to draw simple linguistic > trees. Wouldn't you like to update? Of course! Just I kept up with Chris Manning's old package because of the AVM feature-value matrices on the tree nodes (with AVM packages). But the new software that you are mentioning should work with AVM styles too. I will definitely follow your advise. (And surely Chris Manning has already done that.) Roussanka From Peter_Dyballa at Web.DE Sun Dec 24 02:20:19 2006 From: Peter_Dyballa at Web.DE (Peter Dyballa) Date: Sat, 23 Dec 2006 18:20:19 +0100 Subject: [macemacsjp-english 823] Re: ps4pdf(.sh) Re: latex+dvips+ps2pdf In-Reply-To: References: <4FE8BD70-05FF-4FA5-AFDD-1002950F2493@rna.nl> <5416D242-2C1F-4F63-BD3D-2A42448DD5C1@Web.DE> <8FA82E7E-73F6-4473-B26C-8D4D395FB57B@Web.DE> Message-ID: Am 23.12.2006 um 17:42 schrieb Roussanka Loukanova: > Yes, this seems so, except that the dvi does not have the lines of he > graphs drown, so xdvi is not appropriate. The problem comes from the castrated gs in your system: it cannot draw in X11! -- Mit friedvollen Gr??en Pete A blizzard is when it snows sideways.