RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1856905 - pandoc PDF support broken
Summary: pandoc PDF support broken
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: texlive
Version: 8.2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: 8.0
Assignee: Than Ngo
QA Contact: CS System Management SST QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-07-14 16:44 UTC by Leon Fauster
Modified: 2023-10-12 04:53 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-07-15 13:34:45 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-49112 0 None None None 2023-10-12 04:49:51 UTC

Description Leon Fauster 2020-07-14 16:44:00 UTC
## Description of problem:

The usage in EL8 of

pandoc --pdf-engine=xelatex
pandoc --pdf-engine=lualatex 

aborts with an error like
Error producing PDF.
! LaTeX Error: File `ucharcat.sty' not found.

EL8 does not provide texlive-ucharcat-%{VERSION}.rpm


## How reproducible:

$ echo -e "# Test\n\n CLI:\n\t pandoc --help\n\n" > test.md

$ pandoc --pdf-engine=xelatex -V documentclass:article -V mainfont:Montserrat-Light -V papersize:A4 -f markdown_strict -o test.pdf test.md


## Actual results:


Error producing PDF.
! LaTeX Error: File `ucharcat.sty' not found.

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

Enter file name: 
! Emergency stop.
<read *> 
         
l.41 \RequirePackage



## Expected results:

$ echo $?
0

Comment 1 Jens Petersen 2020-07-15 04:26:43 UTC
Unfortunately the pandoc-pdf subpackage is not shipped in RHEL8.

Maybe you try installing pandoc-pdf-2.0.6-4.el8
from https://koji.mbox.centos.org/koji/buildinfo?buildID=1485

With that at least `pandoc -o test.pdf` works for me.

But I can reproduce your problem with `pandoc --pdf-engine=lualatex -o test.pdf`.

I looks like the texlive in RHEL8 does not provide ucharcat.sty.

Comment 2 Jens Petersen 2020-07-15 06:56:48 UTC
In Fedora, texlive-collection-latex and texlive-ec seem to be sufficient but maybe more precise dependencies are required to avoid this problem.

In Fedora texlive-ucharcat provides ucharcat.sty.

In RHEL8 texlive-unicode-math does not require/pull-in texlive-ucharcat apparently.
So it looks like RHEL8 texlive is a subset of Fedora's texlive.

Comment 3 Leon Fauster 2020-07-15 12:18:02 UTC
My workaround for now is: 

As it is a noarch package installing texlive-ucharcat-svn38907-20.fc29.noarch from Fedora29 helps (to not diverge to much from EL8).

The PDF output with pandoc --pdf-engine works with that FC29 rpm.


$ rpm -qa |egrep 'pandoc|ucharca|texlive-2'|sort

pandoc-2.0.6-4.el8.x86_64
pandoc-common-2.0.6-4.el8.noarch
texlive-20180414-14.el8.x86_64
texlive-ucharcat-svn38907-20.fc29.noarch


$ rpm -ql texlive-ucharcat-svn38907-20.fc29.noarch

/usr/share/licenses/texlive-ucharcat
/usr/share/licenses/texlive-ucharcat/lppl1.txt
/usr/share/texlive/texmf-dist/tex/latex/ucharcat
/usr/share/texlive/texmf-dist/tex/latex/ucharcat/ucharcat.sty

$ rpm -qi texlive-ucharcat-svn38907-20.fc29.noarch |grep Source

Source RPM  : texlive-2018-20.fc29.src.rpm


IMO: the solution would be the extension of the texlive subset ?

Comment 4 Than Ngo 2020-07-15 13:34:45 UTC
It's the intention to keep texlive in 8 small, many texlive extensions are therefore included in texlive-extention in epel8.

If someone needs more texlive extensions, please open the bug in texlive-extension in epel and make a request.

Please have a look at:
  https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2020-b907b63b2f
  https://koji.fedoraproject.org/koji/buildinfo?buildID=1542152

There's new version texlive-extension-20180414-4.epel8 which includes the ucharcat.sty.

Thanks

Comment 5 Leon Fauster 2020-07-15 14:25:42 UTC
(In reply to Than Ngo from comment #4)
> It's the intention to keep texlive in 8 small, many texlive extensions are
> therefore included in texlive-extention in epel8.


As pandoc shows a regression, its not an additional its mandatory extension thats missing, IMO.



> If someone needs more texlive extensions, please open the bug in
> texlive-extension in epel and make a request.


I thought about that and opened a bug report 3 month ago:

https://bugzilla.redhat.com/show_bug.cgi?id=1820194


 
> Please have a look at:
>   https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2020-b907b63b2f
>   https://koji.fedoraproject.org/koji/buildinfo?buildID=1542152
> 
> There's new version texlive-extension-20180414-4.epel8 which includes the
> ucharcat.sty.


Thats look promising, thanks.

Comment 6 John 2023-10-12 04:48:12 UTC
Nope. Not promising.

dnf --enablerepo=epel list | grep texlive-extension
#

no output.

Package is gone.

As usual, it's Red Hat, so, no bug is ever fixed properly.

Comment 7 John 2023-10-12 04:53:06 UTC
epel 8 does now have this though, which worked for me:

texlive-ucharcat.noarch


Note You need to log in before you can comment on or make changes to this bug.