Add period to pop empty color page stack warning

Max Chernoff tex at maxchernoff.ca
Thu Apr 24 10:43:45 CEST 2025


Hi Sam,

On Thu, 2025-04-24 at 01:22 +0200, Sam Carter via tex-live wrote:
> The fact that -- unlike other warnings -- this one does not end with a
> period,

>From my testing, less than half of the pdfTeX warnings end with a
period. Compiling the following file:

    \pdfmajorversion=1
    \pdfminorversion=1
    \pdfximage{example-image-a.pdf}\pdfrefximage\pdflastximage

    \special{doesn't exist}

    \pdfmapline{ptmr8y NimbusRomNo9L-Regu}
    \font\testfont=ptmr8y at 12pt
    {\testfont Hello, world!}

    \pdfpageref999

    \pdfdest name {test} xyz
    \pdfdest name {test} xyz

    \ignoreprimitiveerror=1
    \setbox0=\vbox{\hrule height 1pt \vskip 0pt minus 1fill}
    \setbox1=\vsplit0 to 5pt

    \pdfcolorstack0 pop

    \bye

gives the following output:

    This is pdfTeX, Version 3.141592653-2.6-1.40.27 (TeX Live 2026/dev) (preloaded format=pdftex)
     restricted \write18 enabled.
    entering extended mode
    (./pdftex-warnings.tex
    pdfTeX warning (Object streams): \pdfobjcompresslevel > 0 requires PDF-1.5 or greater. Object streams disabled now.


    pdfTeX warning: pdftex (file /usr/local/texlive/2025/texmf-dist/tex/latex/mwe/example-image-a.pdf): PDF inclusion: found PDF version <1.5>, but at most version <1.1> allowed
    ignored error: Infinite glue shrinkage found in box being split
    Underfull \vbox (badness 10000) detected at line 18
    [1
    Non-PDF special ignored!
    <special> doesn't exist

    pdfTeX warning (ext4): destination with the same identifier (name{test}) has been already used, duplicate ignored

    \plainoutput ->\shipout \vbox {\makeheadline \pagebody \makefootline }
                                                                          \advancepageno \ifnum \outputpenalty >-\@MM \else \dosupereject \fi
    <output> {\plainoutput
                           }
    \supereject ->\par \penalty -\@MM

    \bye ->\par \vfill \supereject
                                   \end
    l.22 \bye


    pdfTeX warning: pdftex: pop empty color page stack 0
     </usr/local/texlive/2025/texmf-dist/tex/latex/mwe/example-image-a.pdf>] )
    (see the transcript file for additional information)
    pdfTeX warning (dest): Page 999 has been referenced but does not exist!

     </usr/local/texlive/2025/texmf-dist/fonts/pk/ljfour/public/cm/dpi600/cmr10.pk>

    pdfTeX warning: pdftex: No flags specified for non-embedded font `NimbusRomNo9L-Regu' (ptmr8y) (I'm using 34): fix your map entry.


    pdfTeX warning: pdftex: font `NimbusRomNo9L-Regu' is not a standard font; I suppose it is available to your PDF viewer then
    Output written on pdftex-warnings.pdf (1 page, 15345 bytes).
    Transcript written on pdftex-warnings.log.

> confuses some log parsing tools like the log summary from TeXstudio.

Really, the best solution here is to fix the buggy parsers. It's usually
just a regex, so it's likely easier than you think. I've actually done
this before for a similar issue:

    https://github.com/TeXworks/texworks/pull/971

    https://github.com/overleaf/overleaf/pull/1024

> Is there any chance a period could be added to the end of the
> warning?

I've attached a patch that will do this, but I'll hold off on merging it
until I hear from Karl/Thanh.

Thanks,
-- Max
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-pdfTeX-Always-end-warning-messages-with-a-period.patch
Type: text/x-patch
Size: 7604 bytes
Desc: not available
URL: <https://tug.org/pipermail/tex-live/attachments/20250424/283c7834/attachment.bin>


More information about the tex-live mailing list.