Arch Linux

Please read this before reporting a bug:

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!

FS#67856 - [texlive-core] Missing dependency `ctexhook.sty'

Attached to Project: Arch Linux
Opened by Al Gebra (cpuheater) - Wednesday, 09 September 2020, 08:55 GMT
Last edited by freswa (frederik) - Thursday, 10 September 2020, 13:35 GMT
Task Type Bug Report
Category Packages: Extra
Status Assigned
Assigned To Rémy Oudompheng (remyoudompheng)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No


`texlive-core` includes the package `/usr/share/texmf-dist/tex/xelatex/xecjk/xeCJK.sty`. This file contains the line `\RequirePackage { ctexhook }` which leads to `LaTeX Error: File `ctexhook.sty' not found.`.

Package versions in which the bug exists:

poppler 20.09.0-1
texlive-bin 2020.54586-5
texlive-core 2020.55416-1
texlive-latexextra 2020.55418-1

Package versions in which the bug does not exist:

poppler 0.88.0-1
texlive-bin 2019.51075-10
texlive-core 2019.52579-1
texlive-latexextra 2019.52575-1

Steps to reproduce:

1. In an empty folder, create `test.tex`:

\setCJKmainfont{HanaMinA} % requires the Arch Linux package "ttf-hanazono" to be installed

2. Run `xelatex test.tex`

3a. Expected output:

Output written on test.pdf (1 page).
Transcript written on test.log.

3b. Actual output:

This is XeTeX, Version 3.14159265-2.6-0.999992 (TeX Live 2020/Arch Linux) (preloaded format=xelatex)
restricted \write18 enabled.
entering extended mode
LaTeX2e <2020-02-02> patch level 5
L3 programming layer <2020-06-03>
Document Class: article 2019/12/20 v1.4l Standard LaTeX document class

! LaTeX Error: File `ctexhook.sty' not found.

Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: sty)

Enter file name:
This task depends upon

Comment by NdV (eizanprime) - Tuesday, 15 September 2020, 22:27 GMT
I have the exact same bug, thank you for the writeup !
Comment by Joseph (charfoxt) - Saturday, 26 September 2020, 12:58 GMT
I had the same problem and did not encounter it in the past.
The problem seems to be fixed after installing the package "texlive-langchinese 2020.55162-1".
Comment by Joseph (charfoxt) - Sunday, 27 September 2020, 07:58 GMT