#3651 new defect

Sphinx 1.8 PDF (latex) on FreeBSD does not build

Reported by: Chris Johns Owned by:
Priority: high Milestone: 5.1
Component: doc Version: 5
Severity: critical Keywords: sphinx latex pdf
Cc: Blocked By:


The build fails with pdfindex complaining on an Undefined Control Sequence:

! Undefined control sequence.
<argument> \spxpagem 
l.88 ...ecture}, \hyperindexformat{\spxpagem}{183}

The Tex is:

\item[{Architecture\index{Architecture@\spxentry{Architecture}|spxpagem}\phantomsection\label{\detokenize{glossary/index:term-architecture}}}] \leavevmode

And the IDX entry from makeindex is:

\item \spxentry {Architecture}, \hyperindexformat{\spxpagem}{183}

Change History (1)

comment:1 Changed on Jan 8, 2019 at 11:24:50 PM by Chris Johns

Sphinx provides a Makefile in the build directory and this uses latexmk to create the PDF. I have seen posts from sphinx developers stating the Makefile should be used when building a PDF.

Sphinx 1.8 and later references \spxpagem which is provided in a support file called sphinx.xdy. The Makefile references this file in the xindy options:

export XINDYOPTS = -L english -C utf8  -M sphinx.xdy

The issue on FreeBSD with texlive-full-20150521 is the lack of the xindy command:

$ type xindy
xindy: not found

And latexmk expects it to exist.

Note: See TracTickets for help on using tickets.