auctex
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Reporting warnings from pdftex itself (not LaTeX macro layer)


From: Andreas Matthias
Subject: Re: Reporting warnings from pdftex itself (not LaTeX macro layer)
Date: Thu, 28 Nov 2024 18:14:07 +0100


Ikumi Keita <ikumi@ikumi.que.jp> wrote:
>>>>> Andreas Matthias <andreas.matthias@gmail.com> writes:
> Here are the functions that generate the warnings.
> pdfTeX:
> <
> https://github.com/TeX-Live/texlive-source/blob/trunk/texk/web2c/pdftexdir/pdftex.web#L15627-L15643>


> luaTeX:
> <
> https://github.com/TeX-Live/texlive-source/blob/trunk/texk/web2c/luatexdir/tex/errors.c#L988-L1040
>>

> Andreas

Thanks. It's hard for me to tell how the LuaTeX warning begins, so my
tentative plan is to support only pdfTeX warnings. I hope the attached
patch does the expected job.

AFAIU TeX-warnings of LuaTeX look like "warning  (<type>):"

   * They have no prefix like "pdfTeX".
   * <type> may contain spaces, e.g. "pdf backend".
   *  There are 2 spaces after "warning"

The following regexp find LuaTeX's TeX-warnings:

"\\(?:LaTeX\\|Class\\|Package\\|pdfTeX\\|\\*\\)? ?[-A-Za-z0-9]* ?[Ww]arning\\(?: +([- A-Za-z0-9]+)\\)?:"

Andreas


reply via email to

[Prev in Thread] Current Thread [Next in Thread]