Re: Limit the number of regexps

2023-09-28 Thread Hoffmann, Jobst
Am Donnerstag, dem 28.09.2023 um 08:33 +0200 schrieb Arash Esbati:
> "Hoffmann, Jobst"  writes:
> 
> > Correct, my setting is
> > 
> >   (setq-default TeX-auto-regexp-list 'TeX-auto-full-regexp-list)
> >     ; following an advice from Ikumi
> > Keita,
> >     ; mail from 2023-09-26
> > 
> > I hope, I've got this right
> 
> Thanks for the confirmation.  Reg. your setting above: Note that
> you're
> setting the variable `TeX-auto-regexp-list' to its default value[1]. 
> So
> basically, you can remove the lines above from your init file.

Thanks for information, I will do so.

> 
> Best, Arash
> 
> Footnotes:
> [1]  https://git.savannah.gnu.org/cgit/auctex.git/tree/tex.el#n4235
> 
> 

-- 
Prof. i.R. Dr. Jobst Hoffmann
Fachhochschule Aachen Abt. Jülich
Fachbereich 09  email: j.hoffm...@fh-aachen.de




Re: Limit the number of regexps

2023-09-27 Thread Hoffmann, Jobst
Am Mittwoch, dem 27.09.2023 um 22:54 +0200 schrieb Arash Esbati:
> "Hoffmann, Jobst"  writes:
> 
> > I've applied the patch to my current AUCTeX installation and it is
> > working fine now.
> 
> Thanks for your swift response.  I presume this works for your large
> document without setting `TeX-auto-regexp-list' to
> `LaTeX-auto-minimal-regexp-list'?

Correct, my setting is

  (setq-default TeX-auto-regexp-list 'TeX-auto-full-regexp-list)
; following an advice from Ikumi Keita,
; mail from 2023-09-26

I hope, I've got this right

Kind regards
Jobst

> 
> Best, Arash
> 
> 


-- 
Prof. i.R. Dr. Jobst Hoffmann
Fachhochschule Aachen Abt. Jülich
Fachbereich 09  email: j.hoffm...@fh-aachen.de




Re: Limit the number of regexps

2023-09-27 Thread Hoffmann, Jobst
Am Mittwoch, dem 27.09.2023 um 22:09 +0200 schrieb Arash Esbati:
> Ikumi Keita  writes:
> 
> > To developers:
> > 
> > It seems that we should revisit this Arash's proposal now. What do
> > you
> > think about it?
> > https://lists.gnu.org/r/auctex-devel/2023-07/msg00014.html
> 
> I still think it is a good idea ;-)  I installed a series of small
> patches fixing the easy issues.  In sum, AUCTeX now uses 25 regexp
> groups less.  I still see potential in this area, but I'm also
> reluctant
> to touch it right away.
> 
> @Jobst: Do you have the chance to update your AUCTeX installation and
> see if your issue is also fixed after my changes?  TIA.

I've applied the patch to my current AUCTeX installation and it is
working fine now.

> 
> Best, Arash
> 
> 

-- 
Prof. i.R. Dr. Jobst Hoffmann
Fachhochschule Aachen Abt. Jülich
Fachbereich 09  email: j.hoffm...@fh-aachen.de




Re: Limit the number of regexps

2023-09-26 Thread Hoffmann, Jobst
Hi Ikumi,

thanks for your clarification. I followed your advice and additionaly I
applied the patch proposed by Arash. The error message is gone now, so
I'm happy with this patch.

I did not benchmark the patched AUCTeX, but the behaviour seems to be ok
- at least for me.

Kind regards
Jobst

PS. Resent to auctex@gnu.org

Am Dienstag, dem 26.09.2023 um 16:06 +0900 schrieb Ikumi Keita:
> Hi Jobst,
> 
> > > > > > "Hoffmann, Jobst"  writes:
> > While I'm working on a large LaTeX (multifile) document, I stumble
> > over
> > the error message
> 
> > TeX-auto-parse-region: The TeX auto-parser’s regexp has too many
> > groups
> > (261)
> 
> > upon C-c C-n or after opening another file of the document, even if
> > I
> > say 
> 
> > (setq TeX-auto-regexp-list LaTeX-auto-minimal-regexp-list)
> 
> That is ineffective because `TeX-auto-regexp-list' is a variable which
> always becomes buffer-local when set. That `setq' sets the value only
> in
> the buffer you evaluates it.
> (Even if you evaluated it in the document buffer, C-c C-n didn't work
> as
> expected because it kills all buffer local values.)
> 
> > That prevents all actions with cross references, is there a way to
> > circumvent that limit?
> 
> Try either one:
> 1. Set the default value by `setq-default', rather than `setq'. (Or
> use
>    M-x customize-option RET TeX-auto-regexp-list RET )
> 2. Put the file local variables section like this and type C-c C-n:
> %%% Local Variables:
> %%% mode: latex
> %%% TeX-auto-regexp-list: LaTeX-auto-minimal-regexp-list
> %%% End:
> 
> To developers:
> 
> It seems that we should revisit this Arash's proposal now. What do you
> think about it?
> https://lists.gnu.org/r/auctex-devel/2023-07/msg00014.html
> 
> Regards,
> Ikumi Keita
> #StandWithUkraine #StopWarInUkraine


-- 
Prof. i.R. Dr. Jobst Hoffmann
Fachhochschule Aachen Abt. Jülich
Fachbereich 09  email: j.hoffm...@fh-aachen.de




Limit the number of regexps

2023-09-25 Thread Hoffmann, Jobst
While I'm working on a large LaTeX (multifile) document, I stumble over
the error message

TeX-auto-parse-region: The TeX auto-parser’s regexp has too many groups
(261)

upon C-c C-n or after opening another file of the document, even if I
say 

(setq TeX-auto-regexp-list LaTeX-auto-minimal-regexp-list)

That prevents all actions with cross references, is there a way to
circumvent that limit?

Kind regards
Jobst
-- 
Prof. i.R. Dr. Jobst Hoffmann
Fachhochschule Aachen Abt. Jülich
Fachbereich 09  email: j.hoffm...@fh-aachen.de




Re: No valid bibliography in this document

2020-03-17 Thread Hoffmann, Jobst
Am Dienstag, den 17.03.2020, 22:22 +0100 schrieb Arash Esbati:
> Hi Jobst,
> 
> "Hoffmann, Jobst"  writes:
> 
> > I found a special problem: I took your example as tst_02.tex and I
> > got 
> > upon C-x C-e
> > 
> > Debugger entered--Lisp error: (error "\\bibliography statement
> > missing
> > or .bib files not found")
> >   signal(error ("\\bibliography statement missing or .bib files not
> > found"))
> >   error("\\bibliography statement missing or .bib files not found")
> >   reftex-get-bibfile-list()
> >   eval((reftex-get-bibfile-list) nil)
> >   elisp--eval-last-sexp(nil)
> >   eval-last-sexp(nil)
> >   funcall-interactively(eval-last-sexp nil)
> >   call-interactively(eval-last-sexp nil nil)
> >   command-execute(eval-last-sexp)
> > 
> > Then I copied tst_02.tex to tst_04.tex and I got upon C-x C-e :
> > 
> > ("/home/ax006ho/TeX/tests/biblatex/biblatex-examples_short.bib")
> > 
> > I can reproduce the behaviour any time.
> > 
> > I attach both files - diff showed no difference -, do you see any
> > difference?
> 
> Nope, they look identical to me as well.
> 
> > I don't have clue what's going on here. 
> 
> Me either.  The only difference I currently see are the entries in our
> .emacs files.  For RefTeX, I only have these lines:
> 
> (require 'reftex)
> (add-hook 'LaTeX-mode-hook #'turn-on-reftex)
> (setq reftex-plug-into-AUCTeX t)
> 

I've reduced my settings to these three lines, no change.

> Maybe you adjust your setting as well, restart Emacs and try it again.
> Did you try my other suggestion to select
> 
> Ref->Parse Document->Entire Document
> 
> from the menu?

Yes, I did it yesterday, it didn't help; now at this moment I did it
again and it works!?

I'm curious about tomorrow...

> 
> > Did I get you right, that these are the only lines I need in my
> > .emacs:
> > (add-hook 'LaTeX-mode-hook #'turn-on-reftex)
> > (setq reftex-plug-into-AUCTeX t)
> > (setq reftex-bibliography-commands '("bibliography"
> >  "nobibliography"
> >  "addbibresource"))
> 
> See above.  Actually, you don't need to set
> `reftex-bibliography-commands' as well.  It has a sensible default.
> 
> Which Emacs version are you using?

Emacs 26.3 from Fedora, all updates - if any - applied, several packages
from melpa and of my own.

> 
> Best, Arash

Now I tried another example, a step to multi file projects. I applied
all the tricks, but the message was always:-(

"\\bibliography statement missing or .bib files not found"

I attach the example - the bibliographic file comes with biblatex, so I
assume that you have your own copy, it is in the BIBINPUTS serach path
and it works in another example, I've also linked it into the current
directory -, how is it working for you?

Kind regards
Jobst
-- 
Prof. Dr. Jobst Hoffmannemail: j.hoffm...@fh-aachen.de

\newif\ifsinglebibliography
\def\argsingle{single}
\ifx\lecturearg\argsingle
\def\refsectionmode{chapter}
\singlebibliographyfalse
\else
\def\refsectionmode{none}
\singlebibliographytrue
\fi

\documentclass[12pt]{scrreprt}

\usepackage[backend=biber,  % Biber und biblatex
autolang=hyphen,% Trennung gemäß der mit
% babel gesetzten Sprache
style=alphabetic,   % Verweise ähnlich zu
% alpha.bst: XXX00
citestyle=alphabetic, % mehrere Titel eines
% Autors werden XXX00a,
% XXX00b, ... zitiert
giveninits=false,   % Vornamen werden nicht
% abgekürzt
refsection=\refsectionmode,% Zitate werden in
% Abhängigkeit von \refsectionmode
% zusammengeführt
]{biblatex}

\addbibresource{biblatex-examples.bib}

\begin{document}

\ifsinglebibliography
\let\include\input
\fi

\include{chapter_one}
\include{chapter_two}
\include{chapter_three}
\include{literature}

% debug code for getting the the current bib files by applying
% the key combination C-x C-e at the point behind the closing
% parenthesis
\iffalse
\begin{verbatim}
(reftex-get-bibfile-list)
\end{verbatim}
\fi

\end{document}

%%% Local Variables:
%%% mode: latex
%%% TeX-PDF-mode: t
%%% TeX-engine: luatex
%%% TeX-master: t
%%% mode: flyspell
%%% ispell-local-dictionary: "deutsch8"
%%% mode: outline-minor-mode
%%% End:
(TeX-add-style-hook
 "lecture_multi"
 (lambda ()
   (TeX-add-to-alist 'LaTeX-provided-class-options
 

Re: No valid bibliography in this document

2020-03-17 Thread Hoffmann, Jobst
Forgot cc. auctex


Hi Arash, 

I found a special problem: I took your example as tst_02.tex and I got 
upon C-x C-e

Debugger entered--Lisp error: (error "\\bibliography statement missing
or .bib files not found")
  signal(error ("\\bibliography statement missing or .bib files not
found"))
  error("\\bibliography statement missing or .bib files not found")
  reftex-get-bibfile-list()
  eval((reftex-get-bibfile-list) nil)
  elisp--eval-last-sexp(nil)
  eval-last-sexp(nil)
  funcall-interactively(eval-last-sexp nil)
  call-interactively(eval-last-sexp nil nil)
  command-execute(eval-last-sexp)

Then I copied tst_02.tex to tst_04.tex and I got upon C-x C-e :

("/home/ax006ho/TeX/tests/biblatex/biblatex-examples_short.bib")

I can reproduce the behaviour any time.

I attach both files - diff showed no difference -, do you see any
difference?

I don't have clue what's going on here. 

Did I get you right, that these are the only lines I need in my .emacs:
(add-hook 'LaTeX-mode-hook #'turn-on-reftex)
(setq reftex-plug-into-AUCTeX t)
(setq reftex-bibliography-commands '("bibliography"
 "nobibliography"
 "addbibresource"))



Am Montag, den 16.03.2020, 21:10 +0100 schrieb Arash Esbati:
> Hi Jobst,
> 
> "Hoffmann, Jobst"  writes:
> 
> > I'm using the current AUCTeX from git://git.savannah.gnu.org/auctex
> > and
> > I try to use \cite for inserting citations.
> 
> The issue you describe below is created by RefTeX.  Since RefTeX is
> bundled with Emacs itself, the question is which Emacs version you're
> using?  I tried your example below with current Emacs from git with
> no
> problem.
> 
> > The file below compiles perfectly with C-c C-a
> > 
> > tst_01.tex
> > ~~
> > \documentclass{article}
> > \usepackage[backend=biber]{biblatex}
> > \addbibresource{biblatex-examples_short.bib}
> > \begin{document}
> > \cite{aristotle:anima}
> > 
> > \printbibliography
> > \end{document}
> > ~~~
> 
> This is the document I tried:
> 
> tst_01.tex
> --8<---cut here---start->8---
> \documentclass{article}
> 
> \usepackage[backend=biber]{biblatex}
> \addbibresource{biblatex-example_short.bib}
> 
> \begin{document}
> 
> \cite{baez/article} and \cite{aristotle:anima} and
> \cite{aristotle:anima} or \cite{baez/article}.
> 
> \begin{verbatim}
> (reftex-get-bibfile-list)
> \end{verbatim}
> 
> \end{document}
> 
> %%% Local Variables:
> %%% mode: latex
> %%% TeX-master: t
> %%% End:
> --8<---cut here---end--->8---
> 
> I tried both `C-c C-m cite RET' and `C-c [ RET', without problem.
> 
> > When I try to insert the second citation by using the \cite
> > command, an
> > error occurs in the minibuffer:
> > No valid bibliography in this document, and no default available
> 
> What do you see if you put the cursor after (reftex-get-bibfile-list)
> and hit `C-x C-e'?  If nothing, can you select from the menu
> 
> Ref->Parse Document->Entire Document
> 
> and try it again?
> 
> > In the Messages buffer I can rad the following line:
> > 
> > reftex-offer-bib-menu: No valid bibliography in this document, and
> > no
> > default available
> > 
> > My .emacs contains the following lines concerning the RefTeX
> > ~~~
> 
> Please also add:
> 
> (add-hook 'LaTeX-mode-hook #'turn-on-reftex)
> > (setq reftex-plug-into-AUCTeX t)
> > (setq reftex-bibliography-commands '("bibliography"
> >  "nobibliography"
> >  "addbibresource"))
> > (setq reftex-external-file-finders
> >   '(("tex" . "kpsewhich -format=.tex %f")
> > ("bib" . "kpsewhich -format=.bib %f")))
> 
> This is actually the default, you can remove this.
> 
> > ~~~
> > 
> > What am I missing?
> 
> Hopefully we will find out :)
> 
> Best, Arash
-- 
Prof. Dr. Jobst HoffmannTel:   +49 (241) 6009-5 31 59
Fachhochschule Aachen Abt. Jülich   Fax:   +49 (241) 6009-5 31 89
Fachbereich 09  email: j.hoffm...@fh-aachen.de
-- 
Prof. Dr. Jobst HoffmannTel:   +49 (241) 6009-5 31 59
Fachhochschule Aachen Abt. Jülich   Fax:   +49 (241) 6009-5 31 89
Fachbereich 09  email: j.hoffm...@fh-aachen.de
\documentclass{article}

\usepackage[backend=biber]{biblatex}
\addbibresource{biblatex-examples_short.bib}

\begin{document}

\cite{baez/a

[AUCTeX] No valid bibliography in this document

2020-03-16 Thread Hoffmann, Jobst
Hi,

I'm using the current AUCTeX from git://git.savannah.gnu.org/auctex and
I try to use \cite for inserting citations.

The file below compiles perfectly with C-c C-a

tst_01.tex
~~
\documentclass{article}
\usepackage[backend=biber]{biblatex}
\addbibresource{biblatex-examples_short.bib}
\begin{document}
\cite{aristotle:anima}

\printbibliography
\end{document}
~~~

The corresponding bibliography file is an excerpt form the biblatex
distribution:
biblatex-examples_short.bib
~~~
@article{baez/article,
  author   = {Baez, John C. and Lauda, Aaron D.},
  title= {Higher-Dimensional Algebra {V}: 2-Groups},
  journaltitle = {Theory and Applications of Categories},
  date = 2004,
  volume   = 12,
  pages= {423-491},
  version  = 3,
  eprint   = {math/0307200v3},
  eprinttype   = {arxiv},
  langid   = {english},
  langidopts   = {variant=american},
  annotation   = {An \texttt{article} with \texttt{eprint} and
  \texttt{eprinttype} fields. Note that the arXiv
reference is
  transformed into a clickable link if \texttt{hyperref}
support
  has been enabled.  Compare \texttt{baez\slash online},
which
  is the same item given as an \texttt{online} entry},
}

@book{aristotle:anima,
  author   = {Aristotle},
  title= {De Anima},
  date = 1907,
  editor   = {Hicks, Robert Drew},
  publisher= cup,
  location = {Cambridge},
  keywords = {primary},
  langid   = {english},
  langidopts   = {variant=british},
  annotation   = {A \texttt{book} entry with an \texttt{author} and an
  \texttt{editor}},
}
~~~

When I try to insert the second citation by using the \cite command, an
error occurs in the minibuffer:
No valid bibliography in this document, and no default available

In the Messages buffer I can rad the following line:

reftex-offer-bib-menu: No valid bibliography in this document, and no
default available

My .emacs contains the following lines concerning the RefTeX
~~~
(setq reftex-plug-into-AUCTeX t)
(setq reftex-bibliography-commands '("bibliography"
 "nobibliography"
 "addbibresource"))
(setq reftex-external-file-finders
  '(("tex" . "kpsewhich -format=.tex %f")
("bib" . "kpsewhich -format=.bib %f")))
~~~

What am I missing?

Thanks in advance
Jobst
-- 
Prof. Dr. Jobst Hoffmannemail: j.hoffm...@fh-aachen.de



Re: [AUCTeX] Logo for AUCTeX: request for ideas

2016-02-24 Thread Hoffmann, Jobst
Am Mittwoch, den 24.02.2016, 13:24 +0100 schrieb Janusz S. Bien:
> Quote/Cytat - Marcin Borkowski  (Wed 24 Feb 2016  
> 06:11:21 AM CET):
> 
> [...]
> 
> > What about a image of a gnu on a piece of metal type?  (I mean
> > "type"
> > like this:
> > https://commons.wikimedia.org/wiki/Category:Printing_letters#/media/
> > File:Blytype_2.png)
> 
> I support this idea.

And I would put the Emacs and TeX logos - perhaps stylized - on each
visible side of the metal type.

> 
> Best regards
> 
> Janusz
> 

Kind regards
Jobst
-- 
Prof. Dr. Jobst HoffmannTel:   +49 (241) 6009-5 31 59
Fachhochschule Aachen Abt. Jülich   Fax:   +49 (241) 6009-5 31 89
Fachbereich 09  email: j.hoffm...@fh-aachen.de


___
auctex mailing list
auctex@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex


[Bug-AUCTeX] Fontification error?

2014-08-16 Thread Hoffmann, Jobst
Hi,

after entering the command

emacs --no-splash --no-init-file --no-site-file
--load /usr/share/emacs/site-lisp/tex-site.el fancyvrb_tst.tex

and filling the buffer with

--%
\documentclass{article}

\usepackage{fancyvrb}

\begin{document}

\begin{VerbatimOut}{f.txt}
\begin{itemize}
\item blabla
\end{itemize}
\end{VerbatimOut}

\begin{itemize}
\item blabla
\end{itemize}

\begin{VerbatimOut}{g.txt}
\begin{itemize}
\item blabla
\end{itemize}
\end{VerbatimOut}

\begin{itemize}
\item blabla
\end{itemize}

\end{document}
--%
the fontification fails as shown in the attached .png-file.

Am I doing something wrong? If not is there a simpler remedy than
entering an empty VerbatimOut-environment?

The bug report says:
--%
Emacs  : GNU Emacs 24.3.1 (x86_64-redhat-linux-gnu, GTK+ Version 3.10.9)
 of 2014-08-05 on buildvm-27.phx2.fedoraproject.org
Package: 2014-08-15

current state:
==
(setq
 AUCTeX-date 2014-08-15
 window-system 'x
 LaTeX-version 2e
 TeX-style-path '(/usr/local/var/auctex
  /usr/share/emacs/site-lisp/auctex/style
  /home/ax006ho/.emacs.d/auctex/auto
  /home/ax006ho/.emacs.d/auctex/style auto style)
 TeX-auto-save nil
 TeX-parse-self nil
 TeX-master t
 TeX-command-list '((TeX
 %(PDF)%(tex) %(extraopts) %`%S%(PDFout)%(mode)%' %t
 TeX-run-TeX nil
 (plain-tex-mode ams-tex-mode texinfo-mode) :help
 Run plain TeX)
(LaTeX %`%l%(mode)%' %t TeX-run-TeX nil
 (latex-mode doctex-mode) :help Run LaTeX)
(Makeinfo makeinfo %(extraopts) %t TeX-run-compile nil
 (texinfo-mode) :help Run Makeinfo with Info output)
(Makeinfo HTML makeinfo %(extraopts) --html %t
 TeX-run-compile nil (texinfo-mode) :help
 Run Makeinfo with HTML output)
(AmSTeX
 %(PDF)amstex %(extraopts) %`%S%(PDFout)%(mode)%' %t
 TeX-run-TeX nil (ams-tex-mode) :help Run AMSTeX)
(ConTeXt
 texexec --once --texutil %(extraopts) %(execopts)%t
 TeX-run-TeX nil (context-mode) :help Run ConTeXt once)
(ConTeXt Full texexec %(extraopts) %(execopts)%t
 TeX-run-TeX nil (context-mode) :help
 Run ConTeXt until completion)
(BibTeX bibtex %s TeX-run-BibTeX nil t :help
 Run BibTeX)
(Biber biber %s TeX-run-Biber nil t :help Run Biber)
(View %V TeX-run-discard-or-function 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)
(Xindy texindy %s TeX-run-command nil t :help
 Run xindy to create index file)
(Check lacheck %s TeX-run-compile nil (latex-mode)
 :help Check LaTeX file for correctness)
(ChkTeX chktex -v6 %s TeX-run-compile nil (latex-mode)
 :help Check LaTeX file for common mistakes)
(Spell (TeX-ispell-document \\) TeX-run-function nil
 t :help Spell-check the document)
(Clean TeX-clean TeX-run-function nil t :help
 Delete generated intermediate files)
(Clean All (TeX-clean t) TeX-run-function nil t :help
 Delete generated intermediate and output files)
(Other  TeX-run-command t t :help
 Run an arbitrary command)
)
 )
--%


Kind regards
Jobst
-- 
Prof. Dr. Jobst HoffmannTel:   +49 (241) 6009-5 31 59
Fachhochschule Aachen Abt. Jülich   Fax:   +49 (241) 6009-5 31 89
Fachbereich 09  email: j.hoffm...@fh-aachen.de

___
bug-auctex mailing list
bug-auctex@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-auctex


[AUCTeX] Bug in listings.el

2014-05-02 Thread Hoffmann, Jobst
Hi,

in file lstings.el line 238 must be 
   '(lstDeleteShortInline Character)
^^^
instead of
   '(lstDeleteShortLine Character)   -- this command doesn't exist!
^

Could you please correct that typo?

Kind regards
Jobst
-- 
Prof. Dr. Jobst HoffmannTel:   +49 (241) 6009-5 31 59
Fachhochschule Aachen Abt. Jülich   Fax:   +49 (241) 6009-5 31 89
Fachbereich 09  email: j.hoffm...@fh-aachen.de
___
auctex mailing list
auctex@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex