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

Bug#1017969: texlive-latex-recommended: As configured by texlive-latex-recommended, fontspec using XeLaTeX cannot find system fonts by name.



Package: texlive-latex-recommended
Version: 2022.20220722-1
Severity: normal

Dear Maintainer,

*** Reporter, please consider answering these questions, where appropriate ***

As installed by vanilla installation of texlive-full, \fontspec used with
XeLaTeX
doesn't find TrueType/Opentype "system" fonts (i. e. found by fc-list), when
the
fonts are denoted by font name, and the compilation stops with an error
(sometimes
after a large number of attempts to call Metafont...).

  - \fontspec used with LuaLaTeX does find them by font name ;

  - \fontspec used with XeLaTeX does find them when the fonts are denoted by
file name ;

  - the TeXlive guide points to a configuration file
(TEXMFSYSVAR/fonts/conf/texlive-fontconfig.conf)
    which does not exost in the Debian-installed system.

See (https://www.tug.org/texlive/doc/texlive-en/texlive-en.html#x1-330003.4.4)
about the latter.

A minimal (non-)working example is :

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Minimal demonstration of font specification problems with XeTeX as
% installed by Debian's texlive-full package.

\documentclass[11pt, english]{article}

\usepackage{iftex}
\ifpdftex
  \usepackage[utf8]{inputenc}
  \usepackage[T1]{fontenc}
  \usepackage{lmodern}
\else
  \usepackage{fontspec}
  \usepackage{unicode-math}
  \usepackage[french]{babel}
  \ifluatex
    % With LuaTeX, font name specification works beautifully.
    \setmainfont{Tex Gyre Termes}
    \setmathfont{Tex Gyre Termes Math}
  \else% XeTeX...
    % \setmainfont{TexGyreTermes}
    % \setmathfont{Tex Gyre Termes Math}
    % With XeTeX, font name specification doesn't work.
    % The least verbose way is :
    \setmainfont{texgyretermes}[
      Extension = .otf,
      UprightFont = *-regular,
      BoldFont = *-bold,
      ItalicFont = *-italic,
      BoldItalicFont = *-bolditalic]
    \setmathfont{texgyretermes-math.otf}
  \fi
\fi
\begin{document}

This is compiled by \ifluatex Lua\TeX{} \else
  \ifxetex Xe\TeX{} \else pdf\TeX\fi\fi.

Math typesetting check :

\[%
  \phi_{\mu,\,\sigma}\left(x\right)\,=\,
  \displaystyle\frac{%
    e^{-\frac{\left(x-\mu\right)^2}{2\sigma^2}}}{
    \sqrt{2\pi}}\,.%
\]


\end{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

A bit of Googling shows a number of occurrences of the problem, with no clear
resolution.

A solution to this problem might help would-be XeLaTeX users : some
installation script
should install whatever is adapted to "The Debian Way(TM)" of installing
TeXlive...

Failing that, this should be documented,and a workaround suggested.


-- Package-specific info:
IMPORTANT INFORMATION: We will only consider bug reports concerning
the packaging of TeX Live as relevant. If you have problems with
combination of packages in a LaTeX document, please consult your
local TeX User Group, the comp.text.tex user group, the author of
the original .sty file, or any other help resource. 

In particular, bugs that are related to up-upstream, i.e., neither
Debian nor TeX Live (upstream), but the original package authors,
will be closed immediately.

   *** The Debian TeX Team is *not* a LaTeX Help Desk ***

If you report an error when running one of the TeX-related binaries 
(latex, pdftex, metafont,...), or if the bug is related to bad or wrong
output, please include a MINIMAL example input file that produces the
error in your report.

Please run your example with
	(pdf)latex -recorder ...
(or any other program that supports -recorder) and send us the generated
file with the extension .fls, it lists all the files loaded during
the run and can easily explain problems induced by outdated files in
your home directory.

Don't forget to also include minimal examples of other files that are 
needed, e.g. bibtex databases. Often it also helps
to include the logfile. Please, never send included pictures!

If your example file isn't short or produces more than one page of
output (except when multiple pages are needed to show the problem),
you can probably minimize it further. Instructions on how to do that
can be found at

http://www.minimalbeispiel.de/mini-en.html (english)

or 

http://www.minimalbeispiel.de/mini.html (german)

##################################
minimal input file


##################################
other files

######################################
 List of ls-R files

-rw-rw-r-- 1 root staff 1233 Nov 30  2019 /usr/local/share/texmf/ls-R
-rw-r--r-- 1 root root 3708 Aug 22 09:16 /var/lib/texmf/ls-R
lrwxrwxrwx 1 root root 29 Sep  4  2021 /usr/share/texmf/ls-R -> /var/lib/texmf/ls-R-TEXMFMAIN
lrwxrwxrwx 1 root root 31 Jul 25 16:02 /usr/share/texlive/texmf-dist/ls-R -> /var/lib/texmf/ls-R-TEXLIVEDIST
lrwxrwxrwx 1 root root 31 Jul 25 16:02 /usr/share/texlive/texmf-dist/ls-R -> /var/lib/texmf/ls-R-TEXLIVEDIST
######################################
 Config files
-rw-r--r-- 1 root root 475 Sep  9  2021 /etc/texmf/web2c/texmf.cnf
lrwxrwxrwx 1 root root 33 Jul 25 16:02 /usr/share/texmf/web2c/fmtutil.cnf -> /var/lib/texmf/fmtutil.cnf-DEBIAN
lrwxrwxrwx 1 root root 32 Jul 25 16:02 /usr/share/texmf/web2c/updmap.cfg -> /var/lib/texmf/updmap.cfg-DEBIAN
-rw-r--r-- 1 root root 5130 Jul 31 07:48 /var/lib/texmf/tex/generic/config/language.dat
######################################
 Files in /etc/texmf/web2c/
total 8
-rw-r--r-- 1 root root 283 Sep  2  2018 mktex.cnf
-rw-r--r-- 1 root root 475 Sep  9  2021 texmf.cnf
######################################
 md5sums of texmf.d
ca40c66f144b4bafc3e59a2dd32ecb9c  /etc/texmf/texmf.d/00debian.cnf

-- System Information:
Debian Release: bookworm/sid
  APT prefers testing
  APT policy: (650, 'testing'), (60, 'unstable')
merged-usr: no
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.18.0-4-amd64 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages texlive-latex-recommended depends on:
ii  tex-common          6.17
ii  texlive-base        2022.20220722-1
ii  texlive-binaries    2022.20220321.62855-4
ii  texlive-latex-base  2022.20220722-1

texlive-latex-recommended recommends no packages.

Versions of packages texlive-latex-recommended suggests:
ii  texlive-latex-recommended-doc  2022.20220722-1
ii  texlive-luatex                 2022.20220722-1
ii  texlive-pstricks               2022.20220722-2

Versions of packages tex-common depends on:
ii  dpkg  1.21.9
ii  ucf   3.0043

Versions of packages tex-common suggests:
ii  debhelper  13.9

Versions of packages texlive-latex-recommended is related to:
ii  tex-common        6.17
ii  texlive-binaries  2022.20220321.62855-4

-- no debconf information


Reply to: