Re: [AUCTeX] Help with getting AUCTeX to parse my personal *.sty files for macros?
Hi Brian, that's great. Happy AUCTeXing! J On 2018-01-16 05:38, Brian Merchant wrote: > Hi J, > > Generating the .el files for my own .sty files, and making sure they were in > the write auto folder worked for me. See this question's answer for details: > https://tex.stackexchange.com/questions/410393/how-to-properly-set-up-auctex-to-parse-macros-from-my-own-sty-files > > Thank you very much for your help! Now I can finally get working, instead of > fighting the editor :) > > Kind regards, > Brian ___ auctex mailing list auctex@gnu.org https://lists.gnu.org/mailman/listinfo/auctex
Re: [AUCTeX] Help with getting AUCTeX to parse my personal *.sty files for macros?
PS: It's also good if you visit your own .sty files with Emacs, ensure that you're in LaTeX-mode, and issue a C-u C-c C-n there too, so their corresponding style (.el) files will be created. Also, style .el files for your personal packages (.sty) sometimes need to be tweaked by hand to ensure the macros in them do what you want... Cheers, J On 2018-01-15 23:17, goj...@gmail.com wrote: > Hi Brian, > > The help for "TeX-parse-self" says "Parse file after loading it if no style > hook is found for it". Is it possible that an old style file (.el) already > exists for your file and therefore no reparsing is done? This happens to me > from time to time. > > Try typing > > C-u C-c C-n > > while you're visiting the file. This should remove old style hooks and > reparse the file. Right after you type that, check the message log (buffer > *Messages*, asterisks included) to see which style files the parser has > loaded and from which directories. > > Cheers, > J ___ auctex mailing list auctex@gnu.org https://lists.gnu.org/mailman/listinfo/auctex
Re: [AUCTeX] Help with getting AUCTeX to parse my personal *.sty files for macros?
Hi Brian, The help for "TeX-parse-self" says "Parse file after loading it if no style hook is found for it". Is it possible that an old style file (.el) already exists for your file and therefore no reparsing is done? This happens to me from time to time. Try typing C-u C-c C-n while you're visiting the file. This should remove old style hooks and reparse the file. Right after you type that, check the message log (buffer *Messages*, asterisks included) to see which style files the parser has loaded and from which directories. Cheers, J On 2018-01-15 19:59, Brian Merchant wrote: > Hi J, > > I have AUCTeX 12.1.0 and Emacs 25.3.1, with spacemacs on top. > > I tried out your suggestion (setq TeX-macro-private (quote ("./" > "c:/Users/LilMonkey/texmf/tex/latex/local/"))), but no luck :( > > Can you explain what you mean by "set all those variables via customize"? Do > you mean using M-x customize? If yes, I tried that too, but with no luck. > > Might you have other suggestions? > > Kind regards, > Brian ___ auctex mailing list auctex@gnu.org https://lists.gnu.org/mailman/listinfo/auctex
Re: [AUCTeX] Help with getting AUCTeX to parse my personal *.sty files for macros?
Hi J, I have AUCTeX 12.1.0 and Emacs 25.3.1, with spacemacs on top. I tried out your suggestion (setq TeX-macro-private (quote ("./" "c:/Users/LilMonkey/texmf/tex/latex/local/"))), but no luck :( Can you explain what you mean by "set all those variables via customize"? Do you mean using M-x customize? If yes, I tried that too, but with no luck. Might you have other suggestions? Kind regards, Brian On Sun, Jan 14, 2018 at 10:07 PM, wrote: > Hi Brian, > > I'm also on Windows with AUCTeX 11.90.2 and Emacs 25.3.1. > > I wonder if you're missing a quote and a slash in your TeX-macro-private. > Can you try with > > (setq TeX-macro-private (quote ("./" "c:/Users/LilMonkey/texmf/tex/ > latex/local/"))) > > or even better, set all those variables via customize? > > Cheers, > J > > On 2018-01-15 00:44, Brian Merchant wrote: > > Hi all, > > > > I am on Windows. Here is the code I have in my `.emacs` file to enable > AUCTeX to recognize macros I have defined in my own style files: > > > > (setq TeX-parse-self t) ; Enable parse on load. > > (setq TeX-auto-save t) ; Enable parse on save. > > (setq-default TeX-master nil); https://www.gnu.org/software/ > auctex/manual/auctex.html > > (setq TeX-auto-regexp-list t); https://tex.stackexchange.com/ > questions/47385/adding-custom-macros-to-completion-list-with-auctex > > (setq TeX-auto-parse-length 99) > > (setq TeX-macro-private > > (list > > "./" > > "C:/Users/LilMonkey/texmf/tex/latex/local" > > )) > > > > Logic: > > > > * TeX-auto-generate should be running because of `(setq TeX-parse-self > t)` and `(setq TeX-auto-save t)`: https://tex.stackexchange.com/ > questions/103224/auctex-does-not-parse-own-sty-file > > > > * other variables set based on suggestions given in this answer: > https://tex.stackexchange.com/a/47416/49339 > > > > * `(setq-default TeX-master nil)` based on AUCTeX manual's > recommendation, but I don't actually see AUCTeX querying me for the master > file; I have tried variations where this line is commented out, but no > difference exists > > > > Anyway, I still don't get auto-completion options for macros I have > defined in my own `*.sty` files under > `C:/Users/LilMonkey/texmf/tex/latex/local`. > What should I do? > ___ auctex mailing list auctex@gnu.org https://lists.gnu.org/mailman/listinfo/auctex
Re: [AUCTeX] Help with getting AUCTeX to parse my personal *.sty files for macros?
Hi Brian, I'm also on Windows with AUCTeX 11.90.2 and Emacs 25.3.1. I wonder if you're missing a quote and a slash in your TeX-macro-private. Can you try with (setq TeX-macro-private (quote ("./" "c:/Users/LilMonkey/texmf/tex/latex/local/"))) or even better, set all those variables via customize? Cheers, J On 2018-01-15 00:44, Brian Merchant wrote: > Hi all, > > I am on Windows. Here is the code I have in my `.emacs` file to enable AUCTeX > to recognize macros I have defined in my own style files: > > (setq TeX-parse-self t) ; Enable parse on load. > (setq TeX-auto-save t) ; Enable parse on save. > (setq-default TeX-master nil); > https://www.gnu.org/software/auctex/manual/auctex.html > (setq TeX-auto-regexp-list t); > https://tex.stackexchange.com/questions/47385/adding-custom-macros-to-completion-list-with-auctex > (setq TeX-auto-parse-length 99) > (setq TeX-macro-private > (list > "./" > "C:/Users/LilMonkey/texmf/tex/latex/local" > )) > > Logic: > > * TeX-auto-generate should be running because of `(setq TeX-parse-self t)` > and `(setq TeX-auto-save t)`: > https://tex.stackexchange.com/questions/103224/auctex-does-not-parse-own-sty-file > > * other variables set based on suggestions given in this answer: > https://tex.stackexchange.com/a/47416/49339 > > * `(setq-default TeX-master nil)` based on AUCTeX manual's recommendation, > but I don't actually see AUCTeX querying me for the master file; I have tried > variations where this line is commented out, but no difference exists > > Anyway, I still don't get auto-completion options for macros I have defined > in my own `*.sty` files under `C:/Users/LilMonkey/texmf/tex/latex/local`. > What should I do? ___ auctex mailing list auctex@gnu.org https://lists.gnu.org/mailman/listinfo/auctex
[AUCTeX] Help with getting AUCTeX to parse my personal *.sty files for macros?
Hi all, I am on Windows. Here is the code I have in my `.emacs` file to enable AUCTeX to recognize macros I have defined in my own style files: (setq TeX-parse-self t) ; Enable parse on load. (setq TeX-auto-save t) ; Enable parse on save. (setq-default TeX-master nil); https://www.gnu.org/software/auctex/manual/auctex.html (setq TeX-auto-regexp-list t); https://tex.stackexchange.com/questions/47385/adding-custom-macros-to-completion-list-with-auctex (setq TeX-auto-parse-length 99) (setq TeX-macro-private (list "./" "C:/Users/LilMonkey/texmf/tex/latex/local" )) Logic: * TeX-auto-generate should be running because of `(setq TeX-parse-self t)` and `(setq TeX-auto-save t)`: https://tex.stackexchange.com/questions/103224/auctex-does-not-parse-own-sty-file * other variables set based on suggestions given in this answer: https://tex.stackexchange.com/a/47416/49339 * `(setq-default TeX-master nil)` based on AUCTeX manual's recommendation, but I don't actually see AUCTeX querying me for the master file; I have tried variations where this line is commented out, but no difference exists Anyway, I still don't get auto-completion options for macros I have defined in my own `*.sty` files under `C:/Users/LilMonkey/texmf/tex/latex/local`. What should I do? ___ auctex mailing list auctex@gnu.org https://lists.gnu.org/mailman/listinfo/auctex
Re: [AUCTeX] help with auctex
Le 17 oct. 2016 à 18:51, Jorge A. Alfaro-Murillo a écrit : > jfbu writes: > >> Le 17/10/2016 à 16:39, Jorge A. Alfaro-Murillo a écrit : >>> Hi, François. François Patte writes: 1- How does emacs know the new path to auctex-11.89.5 as nothing has changed in my .emacs file ((add-to-list 'load-path "~/.emacs.d/elpa/auctex-11.88.6") is still there but emacs uses now: ~/.emacs.d/elpa/auctex-11.89.5/) >>> Probably package-initialize is called in your init file after that >>> add-to-list. If you do not a call to package-initialize in your init file, >>> it gets added to it automatically by package.el. >> >> Just a side note: I find this a bit bad, because in my case I have an .emacs >> which is used as a dispatch depending on the version of Emacs in use. Hence >> the forcefully added package-initialize needed to be manually corrected for >> use only in the correct branches. > > If the first line of your .emacs is the call to package-initialize commented > out: > > ;(package-initialize) > > then package.el doesn't try to add that line again. Yes, fortunately ! this is why I was only half-complaining ;-) Jean-François ___ auctex mailing list auctex@gnu.org https://lists.gnu.org/mailman/listinfo/auctex
Re: [AUCTeX] help with auctex
jfbu writes: Le 17/10/2016 à 16:39, Jorge A. Alfaro-Murillo a écrit : Hi, François. François Patte writes: 1- How does emacs know the new path to auctex-11.89.5 as nothing has changed in my .emacs file ((add-to-list 'load-path "~/.emacs.d/elpa/auctex-11.88.6") is still there but emacs uses now: ~/.emacs.d/elpa/auctex-11.89.5/) Probably package-initialize is called in your init file after that add-to-list. If you do not a call to package-initialize in your init file, it gets added to it automatically by package.el. Just a side note: I find this a bit bad, because in my case I have an .emacs which is used as a dispatch depending on the version of Emacs in use. Hence the forcefully added package-initialize needed to be manually corrected for use only in the correct branches. If the first line of your .emacs is the call to package-initialize commented out: ;(package-initialize) then package.el doesn't try to add that line again. -- Jorge. ___ auctex mailing list auctex@gnu.org https://lists.gnu.org/mailman/listinfo/auctex
Re: [AUCTeX] help with auctex
Le 17/10/2016 à 16:39, Jorge A. Alfaro-Murillo a écrit : > Hi, François. > > François Patte writes: > >> 1- How does emacs know the new path to auctex-11.89.5 as nothing has changed >> in my .emacs file ((add-to-list 'load-path "~/.emacs.d/elpa/auctex-11.88.6") >> is still there but emacs uses now: ~/.emacs.d/elpa/auctex-11.89.5/) > > Probably package-initialize is called in your init file after that > add-to-list. If you do not a call to package-initialize in your init file, it > gets added to it automatically by package.el. Just a side note: I find this a bit bad, because in my case I have an .emacs which is used as a dispatch depending on the version of Emacs in use. Hence the forcefully added package-initialize needed to be manually corrected for use only in the correct branches. Best, JF > > If you install packages with elpa you do not need the add-to-list, > package-initialize takes care of adjusting the load-path and using require in > the latest installed version of each package. > > Best, ___ auctex mailing list auctex@gnu.org https://lists.gnu.org/mailman/listinfo/auctex
Re: [AUCTeX] help with auctex
Hi, François. François Patte writes: 1- How does emacs know the new path to auctex-11.89.5 as nothing has changed in my .emacs file ((add-to-list 'load-path "~/.emacs.d/elpa/auctex-11.88.6") is still there but emacs uses now: ~/.emacs.d/elpa/auctex-11.89.5/) Probably package-initialize is called in your init file after that add-to-list. If you do not a call to package-initialize in your init file, it gets added to it automatically by package.el. If you install packages with elpa you do not need the add-to-list, package-initialize takes care of adjusting the load-path and using require in the latest installed version of each package. Best, -- Jorge. ___ auctex mailing list auctex@gnu.org https://lists.gnu.org/mailman/listinfo/auctex
[AUCTeX] help with auctex
Bonjour, I have just updated my auctex from elpa to auctex-11.89.5. I would like to know: 1- How does emacs know the new path to auctex-11.89.5 as nothing has changed in my .emacs file ((add-to-list 'load-path "~/.emacs.d/elpa/auctex-11.88.6") is still there but emacs uses now: ~/.emacs.d/elpa/auctex-11.89.5/) 2- In a previous version of auctex, if I used the local variables to define the TeX-master file with \documentclass{beamer}, for instance: %%% Local Variables: %%% mode: latex %%% TeX-master: "15-11-2016-beamer" %%% End: at the end of a file loaded in the master file 15-11-2016-beamer.tex by an \input or \include command, then the beamer macros were loaded and I could use the keyboard shortcut C-c C-e to set a beamer environments in the "slave" file. This does not work now How can I recover this feature? Thank you. -- François Patte UFR de mathématiques et informatique Laboratoire CNRS MAP5, UMR 8145 Université Paris Descartes 45, rue des Saints Pères F-75270 Paris Cedex 06 Tél. +33 (0)1 8394 5849 http://www.math-info.univ-paris5.fr/~patte signature.asc Description: OpenPGP digital signature ___ auctex mailing list auctex@gnu.org https://lists.gnu.org/mailman/listinfo/auctex
[AUCTeX] help
On Sun, Sep 18, 2016 at 11:00am, < auctex-requ...@gnu.org [auctex-requ...@gnu.org] > wrote: Send auctex mailing list submissions to auctex@gnu.org To subscribe or unsubscribe via the World Wide Web, visit https://lists.gnu.org/mailman/listinfo/auctex or, via email, send a message with subject or body 'help' to auctex-requ...@gnu.org You can reach the person managing the list at auctex-ow...@gnu.org When replying, please edit your Subject line so it is more specific than "Re: Contents of auctex digest..." Today's Topics: 1. correction - Re: AUCTeX in Debian (Janusz S. Bien) 2. Re: correction - Re: AUCTeX in Debian (Tassilo Horn) 3. Re: correction - Re: AUCTeX in Debian (Janusz S. Bien) 4. Re: correction - Re: AUCTeX in Debian (Tassilo Horn) 5. Re: correction - Re: AUCTeX in Debian (Janusz S. Bien) 6. Re: correction - Re: AUCTeX in Debian (Tassilo Horn) 7. minor issue of fontification if \begin{verbatim}foo (jfbu) 8. Re: minor issue of fontification if \begin{verbatim}foo (Tassilo Horn) -- Message: 1 Date: Sun, 18 Sep 2016 07:27:31 +0200 From: "Janusz S. Bien" To: auctex@gnu.org Subject: [AUCTeX] correction - Re: AUCTeX in Debian Message-ID: <20160918072731.269317c8o8xpd...@mail.mimuw.edu.pl> Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Quote/Cytat - "Janusz S. Bien" (sob, 17 wrz 2016, 21:41:01): > > I assumed incorrectly that ELPA will overwrite the Debian package. > After uninstalling it the situation improved. I mean that auctex > works but I have to load it by hand. I guess it's not how it should > be. I was wrong, it's loaded automatically. > I get also a message > > byte-code: Invalid function: TeX-auto-add-type The first attempt to open a TeX file from dired fails with the above messages, the second attempt succeeds. Regards Janusz -- Prof. dr hab. Janusz S. Bie? - Uniwersytet Warszawski (Katedra Lingwistyki Formalnej) Prof. Janusz S. Bie? - University of Warsaw (Formal Linguistics Department) jsb...@uw.edu.pl, jsb...@mimuw.edu.pl, http://fleksem.klf.uw.edu.pl/~jsbien/ -- Message: 2 Date: Sun, 18 Sep 2016 11:20:38 +0200 From: Tassilo Horn To: auctex@gnu.org Subject: Re: [AUCTeX] correction - Re: AUCTeX in Debian Message-ID: <87lgyp1s49@gnu.org> Content-Type: text/plain "Janusz S. Bien" writes: Hi Janusz, >> I assumed incorrectly that ELPA will overwrite the Debian package. >> After uninstalling it the situation improved. I mean that auctex >> works but I have to load it by hand. I guess it's not how it should >> be. > > I was wrong, it's loaded automatically. Ok, good. >> I get also a message >> >> byte-code: Invalid function: TeX-auto-add-type > > The first attempt to open a TeX file from dired fails with the above > messages, the second attempt succeeds. That's strange. Could you please start a new emacs instance, do M-x toggle-debug-on-error, and then open a tex file so that you get this error? This will open a *backtrace* buffer on errer whose contents you can post here. And could you also please do M-x list-load-path-shadows RET and post the results? Bye, Tassilo -- Message: 3 Date: Sun, 18 Sep 2016 11:40:46 +0200 From: "Janusz S. Bien" To: auctex@gnu.org Subject: Re: [AUCTeX] correction - Re: AUCTeX in Debian Message-ID: <20160918114046.76224bb0t54wh...@mail.mimuw.edu.pl> Content-Type: text/plain; charset="utf-8"; Format="flowed"; DelSp="Yes" Quote/Cytat - Tassilo Horn (nie, 18 wrz 2016, 11:20:38): > "Janusz S. Bien" writes: > > Hi Janusz, > >>> I assumed incorrectly that ELPA will overwrite the Debian package. >>> After uninstalling it the situation improved. I mean that auctex >>> works but I have to load it by hand. I guess it's not how it should >>> be. >> >> I was wrong, it's loaded automatically. > > Ok, good. > >>> I get also a message >>> >>> byte-code: Invalid function: TeX-auto-add-type >> >> The first attempt to open a TeX file from dired fails with the above >> messages, the second attempt succeeds. Sometimes the TeX output windows is not opened for the same reason. > > That's strange. Could you please start a new emacs instance, do M-x > toggle-debug-on-error, and then open a tex file so that you get this > error? This will open a *backtrace* buffer on errer whose contents you > can post here. > > And could you also please do M-x list-load-path-shadows RET and post the > results? Enclosed. Janusz -- Prof. dr hab. Janusz S. Bie? - Uniwersytet Warszawski (Katedra Lingwistyki Formalnej) Prof. Janusz S. Bie? - University of Warsaw (Formal Linguistics Department) jsb...@uw.edu.pl, jsb...@mimuw.edu.pl, http://fleksem.klf.uw.edu.pl/~jsbien/ -- next part -- A non-text attachment was scrubbed... Name: backtrace.zip Type: application/zip Size: 2696 bytes Desc: not available URL:
Re: [AUCTeX] Help with latex-preview of bussproofs
I’m glad it worked out for you. And I didn’t know about prauctex.cfg, so that’s good information. -Ivan On May 19, 2015, at 5:37 PM, Carlo Nucera wrote: Well, Ivan, thank you very much! Adding the PreviewMacro command or AxiomC, UnaryInfC and the like already made the code much more legible. The real game changer was adding the previewEnviroment for tabular and center, which enabled me to display the entire derivation tree, which is what I wanted. I also used the file prauctex.cfg, because it was suggested in the latex-preview manual. Thanks again, Caro 2015-05-19 5:06 GMT+02:00 Ivan Andrus : On May 17, 2015, at 6:48 PM, Carlo Nucera wrote: Hi all, I'd like to convince preview-latex to do the preview of the commands contained into the bussproof package [1], which is a package to edit logical deduction proofs. If I try now to preview the document, I get something along the image attached, while I'd like to get the preview like the one in the examples of bussproofs. Can you help me here? Adding \PreviewMacro*[]{\AxiomC} \PreviewMacro*[]{\UnaryInfC} to the file prdefault.cfg works for me. I think there are ways to include it in the file itself, but if I remember correctly it’s a little more complicated. There are other options to \PreviewMacro explained in the documentation for preview.sty (should be included with your TeX installation--try `texdoc preview`). Another thing I like adding is \PreviewEnvironment{tabular} which means that the entire tabular environment will become a single preview. HTH, Ivan ___ auctex mailing list auctex@gnu.org https://lists.gnu.org/mailman/listinfo/auctex
Re: [AUCTeX] Help with latex-preview of bussproofs
Well, Ivan, thank you very much! Adding the PreviewMacro command or AxiomC, UnaryInfC and the like already made the code much more legible. The real game changer was adding the previewEnviroment for tabular and center, which enabled me to display the entire derivation tree, which is what I wanted. I also used the file prauctex.cfg, because it was suggested in the latex-preview manual. Thanks again, Caro 2015-05-19 5:06 GMT+02:00 Ivan Andrus : > >> On May 17, 2015, at 6:48 PM, Carlo Nucera wrote: >> >> Hi all, >> >> I'd like to convince preview-latex to do the preview of the commands >> contained into the bussproof package [1], which is a package to edit >> logical deduction proofs. >> >> If I try now to preview the document, I get something along the image >> attached, while I'd like to get the preview like the one in the >> examples of bussproofs. >> >> Can you help me here? > > Adding > > \PreviewMacro*[]{\AxiomC} > \PreviewMacro*[]{\UnaryInfC} > > to the file prdefault.cfg works for me. I think there are ways to include it > in the file itself, but if I remember correctly it’s a little more > complicated. There are other options to \PreviewMacro explained in the > documentation for preview.sty (should be included with your TeX > installation--try `texdoc preview`). > > Another thing I like adding is > > \PreviewEnvironment{tabular} > > which means that the entire tabular environment will become a single preview. > > HTH, > Ivan ___ auctex mailing list auctex@gnu.org https://lists.gnu.org/mailman/listinfo/auctex
Re: [AUCTeX] Help with latex-preview of bussproofs
> On May 17, 2015, at 6:48 PM, Carlo Nucera wrote: > > Hi all, > > I'd like to convince preview-latex to do the preview of the commands > contained into the bussproof package [1], which is a package to edit > logical deduction proofs. > > If I try now to preview the document, I get something along the image > attached, while I'd like to get the preview like the one in the > examples of bussproofs. > > Can you help me here? Adding \PreviewMacro*[]{\AxiomC} \PreviewMacro*[]{\UnaryInfC} to the file prdefault.cfg works for me. I think there are ways to include it in the file itself, but if I remember correctly it’s a little more complicated. There are other options to \PreviewMacro explained in the documentation for preview.sty (should be included with your TeX installation--try `texdoc preview`). Another thing I like adding is \PreviewEnvironment{tabular} which means that the entire tabular environment will become a single preview. HTH, Ivan ___ auctex mailing list auctex@gnu.org https://lists.gnu.org/mailman/listinfo/auctex
[AUCTeX] Help with latex-preview of bussproofs
Hi all, I'd like to convince preview-latex to do the preview of the commands contained into the bussproof package [1], which is a package to edit logical deduction proofs. If I try now to preview the document, I get something along the image attached, while I'd like to get the preview like the one in the examples of bussproofs. Can you help me here? Thanks Carlo [1] http://math.ucsd.edu/~sbuss/ResearchWeb/bussproofs/ ___ auctex mailing list auctex@gnu.org https://lists.gnu.org/mailman/listinfo/auctex
Re: [AUCTeX] Help requested in first use of Auctex
heathmatlock writes: > I have a file with the contents: > > Proof: > If S_{1} and S_{2} are finite sets with |S_{1}| = n and |S_{2}| = m, > then |S_{0} U S_{2}| <= n + m That's not a LaTeX document. It is not even a plain TeX document. preview-latex requires a valid LaTeX document before it can do anything sensible. -- David Kastrup ___ auctex mailing list auctex@gnu.org https://lists.gnu.org/mailman/listinfo/auctex
Re: [AUCTeX] Help requested in first use of Auctex
heathmatlock writes: > I have a file with the contents: > > Proof: > If S_{1} and S_{2} are finite sets with |S_{1}| = n and |S_{2}| = m, > then |S_{0} U S_{2}| <= n + m > > > C-c C-p C-d to obtain a preview of the document fails with the > following output: That's no LaTeX document. Have a look at http://www.maths.tcd.ie/~dwilkins/LaTeXPrimer/ for getting started with LaTeX. Bye, Tassilo ___ auctex mailing list auctex@gnu.org https://lists.gnu.org/mailman/listinfo/auctex
[AUCTeX] Help requested in first use of Auctex
I have a file with the contents: Proof: If S_{1} and S_{2} are finite sets with |S_{1}| = n and |S_{2}| = m, then |S_{0} U S_{2}| <= n + m C-c C-p C-d to obtain a preview of the document fails with the following output: Running `Preview-LaTeX' on `proof' with ``latex "\nonstopmode\nofiles\PassOptionsToPackage{active,tightpage,auctex}{preview}\AtBeginDocument{\ifx\ifPreview\undefined\RequirePackage[displaymath,floats,graphics,textmath,sections,footnotes]{preview}[2004/11/05]\fi}" "\input" proof.tex'' This is pdfTeX, Version 3.1415926-2.4-1.40.13 (TeX Live 2012/Debian) restricted \write18 enabled. entering extended mode LaTeX2e <2011/06/27> Babel and hyphenation patterns for english, dumylang, nohyphenation, lo aded. No auxiliary output files. (./proof.tex ! LaTeX Error: Missing \begin{document}. See the LaTeX manual or LaTeX Companion for explanation. Type H for immediate help. ... l.1 P roof: ! Missing $ inserted. $ l.2 If S_ {1} and S_{2} are finite sets with |S_{1}| = n and |S_{2}| = m, t... ) ! Emergency stop. <*> ...]{preview}[2004/11/05]\fi} \input proof.tex No pages of output. Transcript written on proof.log. Preview-LaTeX exited as expected with code 1 at Sun Feb 3 12:40:05 LaTeX: LaTeX found no preview images Would someone be willing to help me decipher this and obtain a LaTeX preview of the document? -- Heath Matlock +1 256 274 4225 ___ auctex mailing list auctex@gnu.org https://lists.gnu.org/mailman/listinfo/auctex
Re: [AUCTeX] Re: Want help in the latest auctex -- Help worked
Ralf Angeli's hints worked well for me. Thanks to Ralf Angeli. Later on, I will post a more detailed description of how I used his suggestions for a slightly larger problem that I was facing - namely using LaTeX to type in several foreign languages, where each language used a different preprocessor. Jayaram Sethuraman -- Forwarded message -- Date: Wed, 06 Aug 2008 23:07:12 +0200 From: Ralf Angeli <[EMAIL PROTECTED]> To: Dr. Sethuraman <[EMAIL PROTECTED]> Cc: auctex@gnu.org Subject: Re: [AUCTeX] Re: Want help in the latest auctex Please keep the mailing list copied. * Sethuraman (2008-08-06) writes: (eval-after-load "tex" '(add-to-list 'TeX-command-list '("Devnag" "devnag %s" TeX-run-command t t :help "Run devnag") t)) AUCTeX will ask you if you want to save the buffer before running the command if the variable `TeX-save-query' is non-nil. I entered the lines above "(eval-after ... etc. in my .xemacs/init.el file and it runs Devnag under ctrl-c ctrl-c. However it still runs as "devnag myfile.dn" and not as "devnag myfile". (I found that my .emacs file loads .xemacs/init.el and so I made the changes there.) Sorry, I forgot one thing. You have to add "dn" to the list of file extensions AUCTeX recognizes. Here is an extension of the above code which does this. (Alternatively you could have customized the variable `TeX-file-extensions' with `M-x customize-variable TeX-file-extensions '.) (eval-after-load "tex" '(progn (add-to-list 'TeX-command-list '("Devnag" "devnag %s" TeX-run-command t t :help "Run devnag") t) (add-to-list 'TeX-file-extensions "dn" t))) By the way, I don't consider it a good idea to load XEmacs-specific customizations in Emacs. It would be safer to transfer the customizations you are interested in from .xemacs/init.el to .emacs and stop loading the former in the latter. Also, I do not know how to set the variable 'Tex-save-query' as non-nil. Can I add a line in init.el to do this, so that it will ask to save an edited file before running devnag on it? M-x customize-variable TeX-save-query -- Ralf ___ auctex mailing list auctex@gnu.org http://lists.gnu.org/mailman/listinfo/auctex
Re: [AUCTeX] Help... previewing diagrams
On 5/15/07, David Kastrup <[EMAIL PROTECTED]> wrote: There is a file FAQ, and the manual (available by menu entry) contains this also as a section. OK, when I'll have enough time I'll read them and approach the problem in a principled way. Thank You :-) ___ auctex mailing list auctex@gnu.org http://lists.gnu.org/mailman/listinfo/auctex
Re: [AUCTeX] Help... previewing diagrams
"Lukasz Stafiniak" <[EMAIL PROTECTED]> writes: > On 5/14/07, David Kastrup <[EMAIL PROTECTED]> wrote: >> "Lukasz Stafiniak" <[EMAIL PROTECTED]> writes: >> >> Remove "\usepackage{preview}": this declares that _you_ want to call >> the preview package itself and tell it what you want to have previewed >> explicitly. >> >> Then you don't mention anything to preview, and thus nothing gets >> previewed. > > OK, but I've tried this for experiment... >> >> Removing this line will get you the default: figures, includegraphics, >> maths, displaymath will get previewed. >> > How to add other environments to get previewed? (You can just point me > to the docs if it is there.) There is a file FAQ, and the manual (available by menu entry) contains this also as a section. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum ___ auctex mailing list auctex@gnu.org http://lists.gnu.org/mailman/listinfo/auctex
Re: [AUCTeX] Help... previewing diagrams
OK, it is enough if I place it in the figure, but... I get an error. gs -dOutputFile\=\(_region_.prv/tmp127356dw/pr1-1.png\) -q -dSAFER -dNOPAUSE -DNOPLATFONTS -dPrinted -dTextAlphaBits\=4 -dGraphicsAlphaBits\=4 -sDEVICE\=png16m -r117.513x115.172 GS>{DELAYSAFER{.setsafe}if}stopped pop/.preview-BP currentpagedevice/BeginPage get dup null eq {pop{pop}bind}if def<>setpagedevice/preview-do{[count 3 roll save]3 1 roll dup length 0 eq{pop}{{setpagedevice}stopped{handleerror quit}if}ifelse systemdict /.runandhide known{{.runandhide}}if stopped{handleerror quit}if count 1 gt{pop/exec errordict/stackoverflow get exec}if aload pop restore}bind def (_region_.prv/tmp127356dw/preview.ps)(r)file dup dup 0 setfileposition 40721()/SubFileDecode filter cvx exec dup dup 40721 setfileposition 2311()/SubFileDecode filter cvx<<>>preview-do ERROR: /typecheck in --setfileposition-- Operand stack: --nostringval-- --dict:1142/3371(ro)(G)-- --dict:1142/3371(ro)(G)-- --dict:1142/3371(ro)(G)-- 40721 Execution stack: %interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- %loop_continue 2 3 %oparray_pop --nostringval-- --nostringval-- false 1 %stopped_push .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- Dictionary stack: --dict:1142/3371(ro)(G)-- --dict:0/20(G)-- --dict:128/200(L)-- Current allocation mode is local Last OS error: 2 Current file position is 724 GS<5> ___ auctex mailing list auctex@gnu.org http://lists.gnu.org/mailman/listinfo/auctex
Re: [AUCTeX] Help... previewing diagrams
On 5/14/07, David Kastrup <[EMAIL PROTECTED]> wrote: "Lukasz Stafiniak" <[EMAIL PROTECTED]> writes: Remove "\usepackage{preview}": this declares that _you_ want to call the preview package itself and tell it what you want to have previewed explicitly. Then you don't mention anything to preview, and thus nothing gets previewed. OK, but I've tried this for experiment... Removing this line will get you the default: figures, includegraphics, maths, displaymath will get previewed. How to add other environments to get previewed? (You can just point me to the docs if it is there.) Thank You much, Lukasz ___ auctex mailing list auctex@gnu.org http://lists.gnu.org/mailman/listinfo/auctex
Re: [AUCTeX] Help... previewing diagrams
"Lukasz Stafiniak" <[EMAIL PROTECTED]> writes: > I am trying to preview tikz diagrams. I am getting _region_.tex > generated that compiles by itself fine (latex _region_.tex), but > when called with that thing calling the preview package (latex > " stuff...>\input{_region_.tex}") it does not work: no pages of output. > > Any idea on what I am doing wrong? Remove "\usepackage{preview}": this declares that _you_ want to call the preview package itself and tell it what you want to have previewed explicitly. Then you don't mention anything to preview, and thus nothing gets previewed. Removing this line will get you the default: figures, includegraphics, maths, displaymath will get previewed. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum ___ auctex mailing list auctex@gnu.org http://lists.gnu.org/mailman/listinfo/auctex
[AUCTeX] Help... previewing diagrams
I am trying to preview tikz diagrams. I am getting _region_.tex generated that compiles by itself fine (latex _region_.tex), but when called with that thing calling the preview package (latex "\input{_region_.tex}") it does not work: no pages of output. Any idea on what I am doing wrong? Best regards. _region_.tex Description: TeX document ___ auctex mailing list auctex@gnu.org http://lists.gnu.org/mailman/listinfo/auctex
Re: [AUCTeX] help write a function?
* Leon (2006-07-22) writes: > I'd like to write a function say `LaTeX-help-at-point' that would use > latex-doc-command, latex-doc-environment and latex-doc-package to > generate help based on the context. i.e: > > if it's \usepackage{XXX} call latex-doc-package; if \XXX, call > latex-doc-command; if \begin{XXX}, call latex-doc-environment. Like `C-c ?' (aka `TeX-doc') in AUCTeX? > I don't know much of lisp and I'd appreciate if anyone can help write > one. Thank you. > > latex-doc-* functions are from latex-doc package. > > I have attached the latex-doc.el. In which way is this better than `TeX-doc'? I'd rather like to improve this than some external package. -- Ralf ___ auctex mailing list auctex@gnu.org http://lists.gnu.org/mailman/listinfo/auctex
[AUCTeX] help write a function?
Dear all, I'd like to write a function say `LaTeX-help-at-point' that would use latex-doc-command, latex-doc-environment and latex-doc-package to generate help based on the context. i.e: if it's \usepackage{XXX} call latex-doc-package; if \XXX, call latex-doc-command; if \begin{XXX}, call latex-doc-environment. I don't know much of lisp and I'd appreciate if anyone can help write one. Thank you. latex-doc-* functions are from latex-doc package. I have attached the latex-doc.el. latex-doc.el Description: latex-doc.el -- Leon ___ auctex mailing list auctex@gnu.org http://lists.gnu.org/mailman/listinfo/auctex