which-func, imenu, AUCTeX

2024-10-15 Thread Greg Bognar via General discussion about AUCTeX
Hi, this is (mainly) a cosmetic question. I like to display the section (chapter, etc.) name on the modeline by using which-func. If I understand correctly, which-func uses imenu to get the function (section, etc.) names, and AUCTeX supports imenu by setting `imenu-create-index-function' to `LaTe

Re: TeX-documentation-texdoc

2023-01-24 Thread Greg Bognar via General discussion about AUCTeX
) All the best, Greg --- On Tue 24 Jan 2023 at 06:27 Ikumi Keita wrote: > >>>>> Greg Bognar writes: > > 1. Unfortunately, the new function definition below does not work with > >

Re: TeX-documentation-texdoc

2023-01-23 Thread Greg Bognar via General discussion about AUCTeX
--- On Mon 23 Jan 2023 at 08:33 Ikumi Keita wrote: > Hi Greg, > > >>>>> Greg Bognar writes: > > Your code works! So yes, your commit harmed okular in some way. > > Thank you. That's a bad news for me :-) > > &

Re: TeX-documentation-texdoc

2023-01-22 Thread Greg Bognar via General discussion about AUCTeX
Hi Ikumi, Your code works! So yes, your commit harmed okular in some way. Where do we go from here? All the best, Greg --- On Sun 22 Jan 2023 at 10:37 Ikumi Keita wrote: > > Hi Greg, > > >>&

Re: TeX-documentation-texdoc

2023-01-21 Thread Greg Bognar via General discussion about AUCTeX
but not without one. --- On Fri 20 Jan 2023 at 14:55 Greg Bognar wrote: > Hi, > > When I run `TeX-documentation-texdoc' (from the menu or with C-c ?), nothing > happens. The mouse pointer does turn into busy, but it stops after a while. > Nothing is written to *Me

Re: TeX-documentation-texdoc

2023-01-20 Thread Greg Bognar via General discussion about AUCTeX
tion-texdoc that I have the problem. --- On Fri 20 Jan 2023 at 15:52 David Kastrup wrote: > Greg Bognar via General discussion about AUCTeX writes: > > Hi, > > > > When I run `TeX-documentation-texdoc' (from the

TeX-documentation-texdoc

2023-01-20 Thread Greg Bognar via General discussion about AUCTeX
Hi, When I run `TeX-documentation-texdoc' (from the menu or with C-c ?), nothing happens. The mouse pointer does turn into busy, but it stops after a while. Nothing is written to *Messages* or to .xsession-errors. The texdoc command works from the terminal, opening a PDF viewer with the requeste

Re: Problem after upgrading to 13.1.3

2022-07-14 Thread Greg Bognar via General discussion about AUCTeX
tate some observations which seem > relevant. > > >>>>> Greg Bognar via General discussion about AUCTeX writes: > > When I try to change the mode of the file by M-x LaTeX-mode, I get an error: > > >Cannot open load file: No such file or directory, tex-buf &g

Problem after upgrading to 13.1.3

2022-07-13 Thread Greg Bognar via General discussion about AUCTeX
Hi, I've just upgraded to 13.1.3 from ELPA. I'm on Emacs 27.1. When I open a LaTeX file, it opens in something called Fundamental mode. But I do actually get font-locking and the basic AUCTeX menus, but none of my customizations seem to have loaded. C-c C-c asks for the master file, even thoug

Re: Inserting beamer frames

2022-01-14 Thread Greg Bognar via General discussion about AUCTeX
[...] > > But when I try to write a function to use in LaTeX-after-insert-env-hook, I > > stumble. [...] > > I'm probably making some elementary mistake... > > No, it was me. I had a brief look at beamer.el as I made that > suggestion. Looking closer, beamer.el defines: > > '("frame" (lambda

Re: Inserting beamer frames

2022-01-11 Thread Greg Bognar via General discussion about AUCTeX
> > Yes, that's what I thought. Is there a way to, say, copy and modify that > > definition and add it as a new environment? E.g., calling `myframe' that > > inserts the frame with the customized formatting? > > Yes, you could do that, but I suggest to write a function which searches > back in t

Re: Inserting beamer frames

2022-01-07 Thread Greg Bognar via General discussion about AUCTeX
Hi Arash, > Greg Bognar via General discussion about AUCTeX writes: > > > Hi, when I insert a new frame in a Beamer document, C-c C-e asks me for the > > title and then inserts a frame this way: > > > > \begin{frame} > > \frametitle{My title} > >

Inserting beamer frames

2022-01-07 Thread Greg Bognar via General discussion about AUCTeX
Hi, when I insert a new frame in a Beamer document, C-c C-e asks me for the title and then inserts a frame this way: \begin{frame} \frametitle{My title} \end{frame} I would prefer to format my frames like this: \begin{frame}\frametitle{My title} \end{frame} Is there a user option I can

Inserting comments

2021-09-16 Thread Greg Bognar via General discussion about AUCTeX
Hi, I'm working on a document in which I use the comment package. The package is supported by AUCTeX in comment.el. When I open the file, text between \begin{comment} and \end{comment} is nicely fontified with the comment face. The comment package has a quirk that it requires that \begin{commen

Re: cannot get AUCTeX to work

2021-01-09 Thread Greg Bognar via General discussion about AUCTeX
On Sat 9 Jan 2021 at 17:18 Joost Kremers wrote: > I do: > > ``` > (use-package tex-site > :ensure auctex > :config ...) > ``` > > Before use-package, before package.el even, `(require 'tex-site)` was the way > to > load AUCTeX, so I kept `tex-site` when I switched to use-package. > > Per

Re: cannot get AUCTeX to work

2021-01-09 Thread Greg Bognar via General discussion about AUCTeX
> Pastiche P writes: > > The error is gone, but I'm not sure AUCTeX itself is properly loaded. E.g., > the command LaTeX-section is undefined. Or perhaps I'm misunderstanding > something? In my experience, you need to do (use-package latex :ensure auctex :mode ("\\.tex\\'" . LaTeX-mode) :i

Re: TeX-next-error log buffer

2020-12-13 Thread Greg Bognar via General discussion about AUCTeX
> > Ikumi Keita writes: > > Colin Baxter writes: > > > When the error is corrected and the file is re-compiled, the log buffer is > > > updated with an echoed message. The log buffer is not deleted and on every > > > compilation thereafter the echoed update-message is again displayed. >

Re: TeX-style-path

2020-12-12 Thread Greg Bognar via General discussion about AUCTeX
On Fri 11 Dec 2020 at 20:56 Arash Esbati wrote: > Greg Bognar via General discussion about AUCTeX writes: > > In my config, I set the values for TeX-auto-global, TeX-auto-private, > > TeX-auto-local, TeX-style-private, and TeX-style-local variables. > > TeX-style-path is c

TeX-style-path

2020-12-09 Thread Greg Bognar via General discussion about AUCTeX
Hi, I'm having a problem with TeX-style-path that I don't understand. In my config, I set the values for TeX-auto-global, TeX-auto-private, TeX-auto-local, TeX-style-private, and TeX-style-local variables. TeX-style-path is constructed from these. But when I C-h v TeX-style-path, I get this resul

Re: Adding to TeX-clean-default-intermediate-suffixes

2020-04-01 Thread Greg Bognar
On Wed 1 Apr 2020 at 15:13 Arash Esbati wrote: > > Ah, I see. So it should be > > > > (setq LaTeX-clean-intermediate-suffixes > > (append LaTeX-clean-intermediate-suffixes > > '("\\.dvi" "\\.ent" "\\.fmt" "\\.rel" "\\.rip" "\\.tags" "\\.vrb"))) > > I'm not sure if this helps, but f

Re: Adding to TeX-clean-default-intermediate-suffixes

2020-04-01 Thread Greg Bognar
On Wed 1 Apr 2020 at 02:58 Joost Kremers wrote: > On Tue, Mar 31 2020, Greg Bognar wrote: > > In my init.el, there are two more packages that add to the list: > > auctex-latexmk and latex-extra. latex-extra uses add-to-list and > > auctex-latexmk uses append. > > W

Re: Adding to TeX-clean-default-intermediate-suffixes

2020-03-31 Thread Greg Bognar
[See below] --- On Mon 30 Mar 2020 at 16:48 Joost Kremers wrote: > On Mon, Mar 30 2020, Greg Bognar wrote: > >> You should probably customize > >> `LaTeX-clean-intermediate-suffixes`. > >> `

Re: Adding to TeX-clean-default-intermediate-suffixes

2020-03-30 Thread Greg Bognar
> > In my config, I have > > > > (setq TeX-clean-default-intermediate-suffixes > > '("\\.aux" "\\.bbl" "\\.bcf" "\\.blg" "\\.brf" "\\.dvi" "\\.ent" > > "\\.fdb_latexmk" "\\.fls" "\\.fmt" "\\.fot" "\\.glo" "\\.gls" > > "\\.synctex\\.gz" "\\.idx" "\\.ilg" "\\.ind" "\\.lof

Adding to TeX-clean-default-intermediate-suffixes

2020-03-30 Thread Greg Bognar
In my config, I have (setq TeX-clean-default-intermediate-suffixes '("\\.aux" "\\.bbl" "\\.bcf" "\\.blg" "\\.brf" "\\.dvi" "\\.ent" "\\.fdb_latexmk" "\\.fls" "\\.fmt" "\\.fot" "\\.glo" "\\.gls" "\\.synctex\\.gz" "\\.idx" "\\.ilg" "\\.ind" "\\.lof" "\\.log" "\\

Re: AUCTeX and undo-tree

2020-03-08 Thread Greg Bognar
> On Wed, Mar 04 2020, Greg Bognar wrote: > > I use the undo-tree package from GNU Elpa. Recently, the undo command > > (undo-tree-undo) stopped working when I edit .tex files with AUCTeX (in > > LaTeX-mode). As far as I can tell, it works as expected in all other modes. &g

AUCTeX and undo-tree

2020-03-03 Thread Greg Bognar
I use the undo-tree package from GNU Elpa. Recently, the undo command (undo-tree-undo) stopped working when I edit .tex files with AUCTeX (in LaTeX-mode). As far as I can tell, it works as expected in all other modes. Emacs seems to hang and I have to hit C-g repeatedly to be able to edit again.

Re: [AUCTeX] Loading beamer.el style file (Was: font-locking problem)

2019-02-16 Thread Greg Bognar
Thanks, it works! On Sat 16 Feb 2019 at 14:44 Mandar Mitra wrote: > Greg Bognar wrote (Sat, Feb 16, 2019 at 01:49:09AM +0100): > > I'd like to follow up on this. I have looked into the package > > "beamerswitch", > > which does what I was trying to do (g

[AUCTeX] Loading beamer.el style file (Was: font-locking problem)

2019-02-15 Thread Greg Bognar
t when I open a file with \documentclass{beamerswitch} or \usepackage{beamerarticle}, beamer.el is loaded? Thanks! On Sun 10 Feb 2019 at 18:19 Greg Bognar wrote: > > > C-c # (bound to TeX-normal-mode (qv) by default) works for me. It's what I > > do > > after I've

Re: [AUCTeX] font-locking problem

2019-02-10 Thread Greg Bognar
> C-c # (bound to TeX-normal-mode (qv) by default) works for me. It's what I do > after I've added new packages, changed the document class, or made similar > changes. Maybe you could give that a go? Yes, that works. Thanks! But now that I understand what the problem was, I'm wondering: shouldn'

Re: [AUCTeX] font-locking problem

2019-02-09 Thread Greg Bognar
er, All the best, Greg > Date: Sat, 09 Feb 2019 10:32:45 +0100 > From: Tassilo Horn > To: auctex@gnu.org > Subject: Re: [AUCTeX] font-locking problem > Message-ID: <8736oxxq6a@gnu.org> > Content-Type: text/plain > > Greg Bognar writes: > > Hi Greg, > &

[AUCTeX] font-locking problem

2019-02-08 Thread Greg Bognar
Hi, I have an odd font-locking problem in AUCTeX. When I work on Beamer slides, sometimes the font-locking works as in the "good" version of the screenshot attached. The faces are: Good version: \begin (font-lock-keyword-face font-latex-sedate-face) frame (font-lock-function-name-face) \frameti

Re: [AUCTeX] How to modify TeX-view-program-selection

2018-09-13 Thread Greg Bognar
Thanks for the suggestions. Replacing "zathura" with "Zathura" helps, but also removing the extra pair of parentheses around "((output-pdf "Zathura")): (add-hook 'LaTeX-mode-hook '(lambda () ;some other stuff (add-to-list 'TeX-view-program-selection '(output-pdf "Zathura")) )) > There's n

[AUCTeX] Follow-up: How to modify TeX-view-program-selection

2018-09-13 Thread Greg Bognar
I've just realized that (setq TeX-view-program-selection '((output-pdf "zathura"))) doesn't work either. It now complains that Unknown "zathura" viewer. Check the `TeX-view-program-selection' variable So I'm obviously on the wrong track. (Until now, I have launched a PDF viewer manually, so I

[AUCTeX] How to modify TeX-view-program-selection

2018-09-13 Thread Greg Bognar
Hi, I suppose this question comes up often, but I couldn't find a solution. I wanted to try another PDF viewer for AUCTeX (zathura). Since it's already in TeX-view-program-list-builtin, I don't have to add it to TeX-view-program-list. So I thought I just have to modify TeX-view-program-selection

Re: [AUCTeX] auctex Digest, Vol 156, Issue 8

2018-02-20 Thread Greg Bognar
> Arash Esbati writes: > > I didn't test it, but could you please use two distinct names for your > > files, e.g. foo.tex and bar.bib, and try it again? > > Thanks, that does the trick! For posterity, the `.bib' file must not have the > same filename as _any_ other file in the directory, i.e., ca

Re: [AUCTeX] TeX-clean in multifile document

2018-02-10 Thread Greg Bognar
8 at 19:24 Mosè Giordano wrote: > Hi Greg, > > 2018-02-10 19:16 GMT+01:00 Greg Bognar : > > Hi, > > > > Say you are working on a multifile document with file1.tex, file2.tex, etc, > > and > > with the master file masterfile.tex. It's handy to clean up the g

[AUCTeX] TeX-clean in multifile document

2018-02-10 Thread Greg Bognar
Hi, Say you are working on a multifile document with file1.tex, file2.tex, etc, and with the master file masterfile.tex. It's handy to clean up the generated files with TeX-clean. However, TeX-clean will only delete files which have the base name of the master file, i.e., masterfile.*. But TeX

[AUCTeX] Hi-lock and AUCTeX

2017-03-17 Thread Greg Bognar
Hi, I can't get Hi Lock mode to work with AUCTeX. https://www.gnu.org/software/emacs/manual/html_node/emacs/Highlight-Interactively.html It works fine with other major modes, but does nothing in files in LaTeX-mode. Does anyone know why this is? All the best, Greg _

Re: [AUCTeX] bib-cite

2014-01-16 Thread Greg Bognar
On 16/01/14 23:35, Mosè Giordano wrote: Hi Greg, 2014/1/16 Greg Bognar : Hi, AUCTeX (11.87.2012-12-04) fails to load properly on GNU Emacs 24.3.1 when bib-cite is turned on. The error message is: File mode specification error: (void-function make-local-hook) The bib-cite-minor-mode function

[AUCTeX] bib-cite

2014-01-16 Thread Greg Bognar
Hi, AUCTeX (11.87.2012-12-04) fails to load properly on GNU Emacs 24.3.1 when bib-cite is turned on. The error message is: File mode specification error: (void-function make-local-hook) The bib-cite-minor-mode function calls make-local-hook on line 766 of bib-cite.el. As far as I know, this fun

Re: [AUCTeX] Re: help write a function?

2006-07-28 Thread Greg BOGNAR
On Thu, 27 Jul 2006, Ralf Angeli wrote: > * Greg BOGNAR (2006-07-27) writes: > > >> > Like `C-c ?' (aka `TeX-doc') in AUCTeX? > >> > >> Wow, this is fabulous! I used to rely on texdoctk, but now with TeX-doc, > >> we can stay in Emac

Re: [AUCTeX] Re: help write a function?

2006-07-27 Thread Greg BOGNAR
> > Like `C-c ?' (aka `TeX-doc') in AUCTeX? > > Wow, this is fabulous! I used to rely on texdoctk, but now with TeX-doc, > we can stay in Emacs, and not be distracted by having to launch a separate > application -- not to berate texdoctk in any way whatsoever. I've just learnt about texdoc from

Re: [AUCTeX] Formatting and syntax highlighting

2006-03-12 Thread Greg BOGNAR
> 2. Is there any way to enhance syntax highlighting in math mode? I'd > like to have normal text and greek character macros in one color and > other macros (like \sqrt, etc.) as well as maybe symbols (as "+") in > another color because I think that would make it easier to read. You could try usin

Re: [AUCTeX] BIBINPUTS

2006-01-30 Thread Greg BOGNAR
On Sun, 29 Jan 2006, Ralf Angeli wrote: > * Greg BOGNAR (2006-01-28) writes: > > > On Sat, 28 Jan 2006, Ralf Angeli wrote: > > > >> So how do you set it? > > > > In my .bashrc: > > > > BIBINPUTS=.:$HOME/Documents/bibliographies//: > > >

Re: [AUCTeX] BIBINPUTS

2006-01-28 Thread Greg BOGNAR
On Sat, 28 Jan 2006, Ralf Angeli wrote: > * Greg BOGNAR (2006-01-28) writes: > > >> * Greg BOGNAR (2006-01-26) writes: > > > >>> I have bibligraphy databases in a dedicated directory. I set > >>> BIBINPUTS for that directory. > > > >>

Re: [AUCTeX] BIBINPUTS

2006-01-28 Thread Greg BOGNAR
> * Greg BOGNAR (2006-01-26) writes: >> I have bibligraphy databases in a dedicated directory. I set >> BIBINPUTS for that directory. > How do you set BIBINPUTS? In my case I have > BIBINPUTS = .;$TEXMF/bibtex/bib// > in /etc/texmf/texmf.cnf. Same here. But I want

Re: [AUCTeX] BIBINPUTS

2006-01-26 Thread Greg BOGNAR
e. Thanks, Greg On Wed, 25 Jan 2006, Ralf Angeli wrote: > Please use the new mailing list address. > > * Greg BOGNAR (2006-01-24) writes: > > > this is probably a very simple question, but whatever I do, I cannot > > teach AucTeX the location of my bibliography files. I

[AUCTeX] BIBINPUTS

2006-01-24 Thread Greg BOGNAR
Hi, this is probably a very simple question, but whatever I do, I cannot teach AucTeX the location of my bibliography files. I have BIBINPUTS set, but AucTeX does not seem to see it. I could not find any information about this in the AucTeX manual. I use AucTeX 11.55. Thanks in advance, Greg