0

As of this week it appears that some font packages when used with PdfLaTexify do not provide selectable text in a pdf. In this MWE when I include \usepackage{tgpagella} I get a pdf from which I cannot select any part of the text. Whereas if I don't use this font package, then a proper pdf with selectable text is available. The same happens with MinionPro (and maybe others, but I did not try).

\documentclass[12pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{tgpagella} 
\usepackage{amsmath,amsthm}
\usepackage{amsfonts}
\begin{document}

\title{This is a title}%
\author{Myself \thanks{Ombú tree drive, 123, Buenos Aires, Argentina}}%

\date{July 9th, 2024}%
\maketitle
% ----------------------------------------------------------------
\section{Section}

The aim of this work is to generalize Lomonosov's techniques in order to apply them to a wider class of not necessarily compact operators. We start by establishing a connection between the existence of invariant subspaces and density of what we define as the associated Lomonosov space in a certain function space. On a Hilbert space, approximation with Lomonosov functions results in an extended version of Burnside's Theorem. An application of this theorem to the algebra generated by an essentially self-adjoint operator $A$ yields the existence of vector states on the space of all polynomials restricted to the essential spectrum of $A$. Finally, the invariant subspace problem for compact perturbations of self-adjoint operators acting on a real Hilbert space is translated into an extreme problem and the solution is obtained upon differentiating certain real-valued functions at their extreme.

\end{document}

Has anybody encountered this phenomenon? What can be done? By the way I use MiKTeX 2.9 on Win11 x64 updated to latest packages.

[Edit] I add here the log file when tgpagella is used as font:

This is pdfTeX, Version 3.141592653-2.6-1.40.26 (MiKTeX 24.4) (preloaded format=pdflatex 2024.7.7)  9 JUL 2024 17:02
entering extended mode
 restricted \write18 enabled.
 %&-line parsing enabled.
**D:/Users/Xavier/Documents/UCL/Recherche/Papers/LaTeX_Help/MWE_PdfLatexify.tex

(D:/Users/Xavier/Documents/UCL/Recherche/Papers/LaTeX_Help/MWE_PdfLatexify.tex
LaTeX2e <2024-06-01> patch level 2
L3 programming layer <2024-05-27>
(C:\Users\xavier\AppData\Local\Programs\MiKTeX\tex/latex/base\article.cls
Document Class: article 2024/02/08 v1.4n Standard LaTeX document class
(C:\Users\xavier\AppData\Local\Programs\MiKTeX\tex/latex/base\size12.clo
File: size12.clo 2024/02/08 v1.4n Standard LaTeX file (size option)
)
\c@part=\count194
\c@section=\count195
\c@subsection=\count196
\c@subsubsection=\count197
\c@paragraph=\count198
\c@subparagraph=\count199
\c@figure=\count266
\c@table=\count267
\abovecaptionskip=\skip49
\belowcaptionskip=\skip50
\bibindent=\dimen141
)
(C:\Users\xavier\AppData\Local\Programs\MiKTeX\tex/latex/base\fontenc.sty
Package: fontenc 2021/04/29 v2.0v Standard LaTeX package
)
(C:\Users\xavier\AppData\Local\Programs\MiKTeX\tex/latex/tex-gyre\tgpagella.sty
Package: tgpagella 2009/09/27 v1.2 TeX Gyre Pagella as default roman family

(C:\Users\xavier\AppData\Local\Programs\MiKTeX\tex/latex/kvoptions\kvoptions.st
y
Package: kvoptions 2022-06-15 v3.15 Key value format for package options (HO)
 (C:\Users\xavier\AppData\Local\Programs\MiKTeX\tex/latex/graphics\keyval.sty
Package: keyval 2022/05/29 v1.15 key=value parser (DPC)
\KV@toks@=\toks17
) (C:\Users\xavier\AppData\Local\Programs\MiKTeX\tex/generic/ltxcmds\ltxcmds.st
y
Package: ltxcmds 2023-12-04 v1.26 LaTeX kernel commands for general use (HO)
)
(C:\Users\xavier\AppData\Local\Programs\MiKTeX\tex/latex/kvsetkeys\kvsetkeys.st
y
Package: kvsetkeys 2022-10-05 v1.19 Key value parser (HO)
)))
(C:\Users\xavier\AppData\Local\Programs\MiKTeX\tex/latex/amsmath\amsmath.sty
Package: amsmath 2024/05/23 v2.17q AMS math features
\@mathmargin=\skip51

For additional information on amsmath, use the `?' option.
(C:\Users\xavier\AppData\Local\Programs\MiKTeX\tex/latex/amsmath\amstext.sty
Package: amstext 2021/08/26 v2.01 AMS text

(C:\Users\xavier\AppData\Local\Programs\MiKTeX\tex/latex/amsmath\amsgen.sty
File: amsgen.sty 1999/11/30 v2.0 generic functions
\@emptytoks=\toks18
\ex@=\dimen142
))
(C:\Users\xavier\AppData\Local\Programs\MiKTeX\tex/latex/amsmath\amsbsy.sty
Package: amsbsy 1999/11/29 v1.2d Bold Symbols
\pmbraise@=\dimen143
)
(C:\Users\xavier\AppData\Local\Programs\MiKTeX\tex/latex/amsmath\amsopn.sty
Package: amsopn 2022/04/08 v2.04 operator names
)
\inf@bad=\count268
LaTeX Info: Redefining \frac on input line 233.
\uproot@=\count269
\leftroot@=\count270
LaTeX Info: Redefining \overline on input line 398.
LaTeX Info: Redefining \colon on input line 409.
\classnum@=\count271
\DOTSCASE@=\count272
LaTeX Info: Redefining \ldots on input line 495.
LaTeX Info: Redefining \dots on input line 498.
LaTeX Info: Redefining \cdots on input line 619.
\Mathstrutbox@=\box52
\strutbox@=\box53
LaTeX Info: Redefining \big on input line 721.
LaTeX Info: Redefining \Big on input line 722.
LaTeX Info: Redefining \bigg on input line 723.
LaTeX Info: Redefining \Bigg on input line 724.
\big@size=\dimen144
LaTeX Font Info:    Redeclaring font encoding OML on input line 742.
LaTeX Font Info:    Redeclaring font encoding OMS on input line 743.
\macc@depth=\count273
LaTeX Info: Redefining \bmod on input line 904.
LaTeX Info: Redefining \pmod on input line 909.
LaTeX Info: Redefining \smash on input line 939.
LaTeX Info: Redefining \relbar on input line 969.
LaTeX Info: Redefining \Relbar on input line 970.
\c@MaxMatrixCols=\count274
\dotsspace@=\muskip17
\c@parentequation=\count275
\dspbrk@lvl=\count276
\tag@help=\toks19
\row@=\count277
\column@=\count278
\maxfields@=\count279
\andhelp@=\toks20
\eqnshift@=\dimen145
\alignsep@=\dimen146
\tagshift@=\dimen147
\tagwidth@=\dimen148
\totwidth@=\dimen149
\lineht@=\dimen150
\@envbody=\toks21
\multlinegap=\skip52
\multlinetaggap=\skip53
\mathdisplay@stack=\toks22
LaTeX Info: Redefining \[ on input line 2953.
LaTeX Info: Redefining \] on input line 2954.
)
(C:\Users\xavier\AppData\Local\Programs\MiKTeX\tex/latex/amscls\amsthm.sty
Package: amsthm 2020/05/29 v2.20.6
\thm@style=\toks23
\thm@bodyfont=\toks24
\thm@headfont=\toks25
\thm@notefont=\toks26
\thm@headpunct=\toks27
\thm@preskip=\skip54
\thm@postskip=\skip55
\thm@headsep=\skip56
\dth@everypar=\toks28
)
(C:\Users\xavier\AppData\Local\Programs\MiKTeX\tex/latex/amsfonts\amsfonts.sty
Package: amsfonts 2013/01/14 v3.01 Basic AMSFonts support
\symAMSa=\mathgroup4
\symAMSb=\mathgroup5
LaTeX Font Info:    Redeclaring math symbol \hbar on input line 98.
LaTeX Font Info:    Overwriting math alphabet `\mathfrak' in version `bold'
(Font)                  U/euf/m/n --> U/euf/b/n on input line 106.
)
LaTeX Font Info:    Trying to load font information for T1+qpl on input line 8.

(C:\Users\xavier\AppData\Local\Programs\MiKTeX\tex/latex/tex-gyre\t1qpl.fd
File: t1qpl.fd 2009/09/25 v1.2 font definition file for T1/qpl
)
(C:\Users\xavier\AppData\Local\Programs\MiKTeX\tex/latex/l3backend\l3backend-pd
ftex.def
File: l3backend-pdftex.def 2024-05-08 L3 backend support: PDF output (pdfTeX)
\l__color_backend_stack_int=\count280
\l__pdf_internal_box=\box54
) (MWE_PdfLatexify.aux)
\openout1 = `MWE_PdfLatexify.aux'.

LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 8.
LaTeX Font Info:    ... okay on input line 8.
LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 8.
LaTeX Font Info:    ... okay on input line 8.
LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 8.
LaTeX Font Info:    ... okay on input line 8.
LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 8.
LaTeX Font Info:    ... okay on input line 8.
LaTeX Font Info:    Checking defaults for TS1/cmr/m/n on input line 8.
LaTeX Font Info:    ... okay on input line 8.
LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 8.
LaTeX Font Info:    ... okay on input line 8.
LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 8.
LaTeX Font Info:    ... okay on input line 8.
LaTeX Font Info:    Trying to load font information for U+msa on input line 14.


(C:\Users\xavier\AppData\Local\Programs\MiKTeX\tex/latex/amsfonts\umsa.fd
File: umsa.fd 2013/01/14 v3.01 AMS symbols A
)
LaTeX Font Info:    Trying to load font information for U+msb on input line 14.


(C:\Users\xavier\AppData\Local\Programs\MiKTeX\tex/latex/amsfonts\umsb.fd
File: umsb.fd 2013/01/14 v3.01 AMS symbols B
)
LaTeX Font Info:    Trying to load font information for TS1+qpl on input line 1
4.

(C:\Users\xavier\AppData\Local\Programs\MiKTeX\tex/latex/tex-gyre\ts1qpl.fd
File: ts1qpl.fd 2009/09/25 v1.2 font definition file for TS1/qpl
)

[1

{C:/Users/xavier/AppData/Local/MiKTeX/fonts/map/pdftex/pdftex.map}{C:/Users/xav
ier/AppData/Local/Programs/MiKTeX/fonts/enc/dvips/tex-gyre/q-ec.enc}{C:/Users/x
avier/AppData/Local/Programs/MiKTeX/fonts/enc/dvips/tex-gyre/q-ts1.enc}]
(MWE_PdfLatexify.aux)
 ***********
LaTeX2e <2024-06-01> patch level 2
L3 programming layer <2024-05-27>
 ***********
 ) 
Here is how much of TeX's memory you used:
 2067 strings out of 473904
 32031 string characters out of 5726090
 1929908 words of memory out of 5000000
 24933 multiletter control sequences out of 15000+600000
 588066 words of font info for 78 fonts, out of 8000000 for 9000
 1141 hyphenation exceptions out of 8191
 57i,11n,65p,1000b,347s stack positions out of 10000i,1000n,20000p,200000b,200000s
<C:/Users/xavier/AppData/Local/Programs/MiKTeX/fonts/type1/public/amsfonts/cm
/cmmi12.pfb><C:/Users/xavier/AppData/Local/Programs/MiKTeX/fonts/type1/public/t
ex-gyre/qplb.pfb><C:/Users/xavier/AppData/Local/Programs/MiKTeX/fonts/type1/pub
lic/tex-gyre/qplr.pfb>
Output written on MWE_PdfLatexify.pdf (1 page, 110111 bytes).
PDF statistics:
 26 PDF objects out of 1000 (max. 8388607)
 0 named destinations out of 1000 (max. 500000)
 1 words of extra memory for PDF output out of 10000 (max. 10000000)

I use both sumatrpdf and Acrobat v.9 to visulaize a pdf file.

13
  • 1
    No problem for me, but I have TeXLive. What does pdffonts say?
    – campa
    Commented Jul 9 at 13:49
  • Off-topic: don't load inputenc. Please post the log file.
    – cfr
    Commented Jul 9 at 14:15
  • @campa: how do I use pdffonts?
    – Xavier_B
    Commented Jul 9 at 14:31
  • 1
    no problem here with a current miktex. Show the log-file and tell which viewer you use to select the text. Commented Jul 9 at 14:51
  • 1
    I found out which package was making mischief: miktex-misc. I uninstalled it and reinstalled it and now I can again correctly select text in both sumatrapdf and Acrobat. This package is a set of configuration files for MikTeX. I was last updated on July 7th, 2024.
    – Xavier_B
    Commented Jul 10 at 7:37

1 Answer 1

0

To correct this behaviour, you may want to investigate the latest packages which were installed or updated. In my case, the culprit was an update of miktex-misc the version packaged on Sunday 7th, July 2024 which I donwloaded and installed on the same day. That package has some files ending in .tcx and there is also a updmap.cfg.template. I don't know which one was causing trouble.

In uninstalled this package, compiled the MWE above, got a pdf, and could select the text in both my pdf viewers. After checking again with the MiKTeX console, I saw that the package had been installed again but now with no trouble.

Not the answer you're looking for? Browse other questions tagged .