[Bug]: xdvipdfmx: Assertion `!indirect->pf' failed. #668
Replies: 5 comments
-
|
Hmm, I can include the PDF without any problem… Have you tried My env:
% !TeX program = xelatex
\documentclass[type=bachelor_english]{bithesis}
\begin{document}
\frontmatter
\mainmatter
\begin{figure}
\centering
\includegraphics[page=21,width=0.55\textwidth,trim=3.75cm 12.75cm 4.4cm 3.25cm,clip]{DS-000189-ICM-20948-v1.3.pdf}
\caption{Block Diagram of ICM-20948 IMU}
\end{figure}
\end{document} |
Beta Was this translation helpful? Give feedback.
-
|
Besides, you can join the QQ chat group 737548118 if you use QQ. |
Beta Was this translation helpful? Give feedback.
-
|
Thank you. For now I just included the figure as a png screenshot instead. |
Beta Was this translation helpful? Give feedback.
-
Yeah, that's a feasible workround.
Fine, then just keep using GitHub Issues / Discussions.
Wow, cool! I will move this issue to GitHub Discussions, because there's nothing to do for BIThesis. We can discuss there later. |
Beta Was this translation helpful? Give feedback.
-
|
这里有一些有关的信息: https://ask.latexstudio.net/index.php/ask/question/17725.html |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
发生了什么?
Trying to compile results in an error in the final step where XeLaTeX converts the final
.xdvfile into.pdfusingxdvipdfmx.Already searched on stackoverflow and some comments suggested to run
xelatex --no-pdf mainand then manually runxdvipdfmx main.xdvseparately to get more error information. This log is shown below:The chapter that causes this compile error includes some TikZ diagrams, png/jpg graphics and pdf graphics. Commenting out TikZ diagrams still give the same error. Some pdf graphics are reused in multiple figures with different trim and clip parameters.
After commenting out figures, the cause was narrowed down to inclusion of one particular PDF. Interestingly, with another template that uses PDFLaTeX, there is no problem including this document.
Below is the PDF in this particular figure:
DS-000189-ICM-20948-v1.3.pdf
你期望的结果
Including this PDF figure should not cause errors, as when including it in PDFLaTeX with other templates:
问题复现的步骤(或者截图)
BIThesis 模板
本科·毕业设计或读书报告 — undergraduate-thesis[-en]、paper-translation、reading-report
操作系统或平台
Linux
LaTeX 发行版以及发行年份
TeX Live 2025.2-1 tlmgr 74241 XeTeX 3.141592653-2.6-0.999997 (TeX Live 2026/dev/Arch Linux) xdvipdfmx Version 20250317
日志信息(可选)
Beta Was this translation helpful? Give feedback.
All reactions