Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to convert .ipynb to .pdf on Windows #2194

Closed
Wangxuechi opened this issue Nov 26, 2024 · 2 comments
Closed

Unable to convert .ipynb to .pdf on Windows #2194

Wangxuechi opened this issue Nov 26, 2024 · 2 comments

Comments

@Wangxuechi
Copy link

Hi,

When I try to convert .ipynb to .pdf, the error happened. I put the error information below

`nbconvert failed: PDF creating failed, captured latex output:
Failed to run "xelatex notebook.tex -quiet" command:
This is XeTeX, Version 3.141592653-2.6-0.999996 (TeX Live 2024) (preloaded format=xelatex)
restricted \write18 enabled.
entering extended mode
(./notebook.tex
LaTeX2e <2024-06-01> patch level 2
L3 programming layer <2024-10-09>
(d:/texlive/2024/texmf-dist/tex/latex/base/article.cls
Document Class: article 2024/02/08 v1.4n Standard LaTeX document class
(d:/texlive/2024/texmf-dist/tex/latex/base/size11.clo))
(d:/texlive/2024/texmf-dist/tex/latex/tcolorbox/tcolorbox.sty
(d:/texlive/2024/texmf-dist/tex/latex/pgf/frontendlayer/tikz.sty
(d:/texlive/2024/texmf-dist/tex/latex/pgf/basiclayer/pgf.sty
(d:/texlive/2024/texmf-dist/tex/latex/pgf/utilities/pgfrcs.sty
(d:/texlive/2024/texmf-dist/tex/generic/pgf/utilities/pgfutil-common.tex)
(d:/texlive/2024/texmf-dist/tex/generic/pgf/utilities/pgfutil-latex.def)
(d:/texlive/2024/texmf-dist/tex/generic/pgf/utilities/pgfrcs.code.tex
(d:/texlive/2024/texmf-dist/tex/generic/pgf/pgf.revision.tex)))
(d:/texlive/2024/texmf-dist/tex/latex/pgf/basiclayer/pgfcore.sty
(d:/texlive/2024/texmf-dist/tex/latex/graphics/graphicx.sty
(d:/texlive/2024/texmf-dist/tex/latex/graphics/keyval.sty)
(d:/texlive/2024/texmf-dist/tex/latex/graphics/graphics.sty
(d:/texlive/2024/texmf-dist/tex/latex/graphics/trig.sty)
(d:/texlive/2024/texmf-dist/tex/latex/graphics-cfg/graphics.cfg)
(d:/texlive/2024/texmf-dist/tex/latex/graphics-def/xetex.def)))
(d:/texlive/2024/texmf-dist/tex/latex/pgf/systemlayer/pgfsys.sty
(d:/texlive/2024/texmf-dist/tex/generic/pgf/systemlayer/pgfsys.code.tex
(d:/texlive/2024/texmf-dist/tex/generic/pgf/utilities/pgfkeys.code.tex
(d:/texlive/2024/texmf-dist/tex/generic/pgf/utilities/pgfkeyslibraryfiltered.co
de.tex)) (d:/texlive/2024/texmf-dist/tex/generic/pgf/systemlayer/pgf.cfg)
(d:/texlive/2024/texmf-dist/tex/generic/pgf/systemlayer/pgfsys-xetex.def
(d:/texlive/2024/texmf-dist/tex/generic/pgf/systemlayer/pgfsys-dvipdfmx.def
(d:/texlive/2024/texmf-dist/tex/generic/pgf/systemlayer/pgfsys-common-pdf.def))
))
(d:/texlive/2024/texmf-dist/tex/generic/pgf/systemlayer/pgfsyssoftpath.code.tex
)
(d:/texlive/2024/texmf-dist/tex/generic/pgf/systemlayer/pgfsysprotocol.code.tex
)) (d:/texlive/2024/texmf-dist/tex/latex/xcolor/xcolor.sty
(d:/texlive/2024/texmf-dist/tex/latex/graphics-cfg/color.cfg)
(d:/texlive/2024/texmf-dist/tex/latex/graphics/mathcolor.ltx))
(d:/texlive/2024/texmf-dist/tex/generic/pgf/basiclayer/pgfcore.code.tex
(d:/texlive/2024/texmf-dist/tex/generic/pgf/math/pgfmath.code.tex
(d:/texlive/2024/texmf-dist/tex/generic/pgf/math/pgfmathutil.code.tex)
(d:/texlive/2024/texmf-dist/tex/generic/pgf/math/pgfmathparser.code.tex)
(d:/texlive/2024/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.code.tex)
(d:/texlive/2024/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.basic.code.te
x)
(d:/texlive/2024/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.trigonometric
.code.tex)
(d:/texlive/2024/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.random.code.t
ex)
(d:/texlive/2024/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.comparison.co
de.tex)
(d:/texlive/2024/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.base.code.tex
)
(d:/texlive/2024/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.round.code.te
x)
(d:/texlive/2024/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.misc.code.tex
)
(d:/texlive/2024/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.integerarithm
etics.code.tex)
(d:/texlive/2024/texmf-dist/tex/generic/pgf/math/pgfmathcalc.code.tex)
(d:/texlive/2024/texmf-dist/tex/generic/pgf/math/pgfmathfloat.code.tex))
(d:/texlive/2024/texmf-dist/tex/generic/pgf/math/pgfint.code.tex)
(d:/texlive/2024/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepoints.code.tex)
(d:/texlive/2024/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepathconstruct.cod
e.tex)
(d:/texlive/2024/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepathusage.code.te
x)
(d:/texlive/2024/texmf-dist/tex/generic/pgf/basiclayer/pgfcorescopes.code.tex)
(d:/texlive/2024/texmf-dist/tex/generic/pgf/basiclayer/pgfcoregraphicstate.code
.tex)
(d:/texlive/2024/texmf-dist/tex/generic/pgf/basiclayer/pgfcoretransformations.c
ode.tex)
(d:/texlive/2024/texmf-dist/tex/generic/pgf/basiclayer/pgfcorequick.code.tex)
(d:/texlive/2024/texmf-dist/tex/generic/pgf/basiclayer/pgfcoreobjects.code.tex)

(d:/texlive/2024/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepathprocessing.co
de.tex)
(d:/texlive/2024/texmf-dist/tex/generic/pgf/basiclayer/pgfcorearrows.code.tex)
(d:/texlive/2024/texmf-dist/tex/generic/pgf/basiclayer/pgfcoreshade.code.tex)
(d:/texlive/2024/texmf-dist/tex/generic/pgf/basiclayer/pgfcoreimage.code.tex)
(d:/texlive/2024/texmf-dist/tex/generic/pgf/basiclayer/pgfcoreexternal.code.tex
) (d:/texlive/2024/texmf-dist/tex/generic/pgf/basiclayer/pgfcorelayers.code.tex
)
(d:/texlive/2024/texmf-dist/tex/generic/pgf/basiclayer/pgfcoretransparency.code
.tex)
(d:/texlive/2024/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepatterns.code.tex
) (d:/texlive/2024/texmf-dist/tex/generic/pgf/basiclayer/pgfcorerdf.code.tex)))
(d:/texlive/2024/texmf-dist/tex/generic/pgf/modules/pgfmoduleshapes.code.tex)
(d:/texlive/2024/texmf-dist/tex/generic/pgf/modules/pgfmoduleplot.code.tex)
(d:/texlive/2024/texmf-dist/tex/latex/pgf/compatibility/pgfcomp-version-0-65.st
y)
(d:/texlive/2024/texmf-dist/tex/latex/pgf/compatibility/pgfcomp-version-1-18.st
y)) (d:/texlive/2024/texmf-dist/tex/latex/pgf/utilities/pgffor.sty
(d:/texlive/2024/texmf-dist/tex/latex/pgf/utilities/pgfkeys.sty
(d:/texlive/2024/texmf-dist/tex/generic/pgf/utilities/pgfkeys.code.tex))
(d:/texlive/2024/texmf-dist/tex/latex/pgf/math/pgfmath.sty
(d:/texlive/2024/texmf-dist/tex/generic/pgf/math/pgfmath.code.tex))
(d:/texlive/2024/texmf-dist/tex/generic/pgf/utilities/pgffor.code.tex))
(d:/texlive/2024/texmf-dist/tex/generic/pgf/frontendlayer/tikz/tikz.code.tex
(d:/texlive/2024/texmf-dist/tex/generic/pgf/libraries/pgflibraryplothandlers.co
de.tex)
(d:/texlive/2024/texmf-dist/tex/generic/pgf/modules/pgfmodulematrix.code.tex)
(d:/texlive/2024/texmf-dist/tex/generic/pgf/frontendlayer/tikz/libraries/tikzli
brarytopaths.code.tex)))
(d:/texlive/2024/texmf-dist/tex/latex/tools/verbatim.sty)
(d:/texlive/2024/texmf-dist/tex/latex/environ/environ.sty
(d:/texlive/2024/texmf-dist/tex/latex/trimspaces/trimspaces.sty))
(d:/texlive/2024/texmf-dist/tex/latex/etoolbox/etoolbox.sty)
(d:/texlive/2024/texmf-dist/tex/latex/tcolorbox/tcbbreakable.code.tex
Library (tcolorbox): 'tcbbreakable.code.tex' version '6.4.1'
(d:/texlive/2024/texmf-dist/tex/latex/pdfcol/pdfcol.sty
(d:/texlive/2024/texmf-dist/tex/generic/ltxcmds/ltxcmds.sty)
(d:/texlive/2024/texmf-dist/tex/generic/infwarerr/infwarerr.sty)
(d:/texlive/2024/texmf-dist/tex/generic/iftex/iftex.sty))))
(d:/texlive/2024/texmf-dist/tex/latex/parskip/parskip.sty
(d:/texlive/2024/texmf-dist/tex/latex/kvoptions/kvoptions.sty
(d:/texlive/2024/texmf-dist/tex/latex/kvsetkeys/kvsetkeys.sty)))
(d:/texlive/2024/texmf-dist/tex/latex/caption/caption.sty
(d:/texlive/2024/texmf-dist/tex/latex/caption/caption3.sty))
(d:/texlive/2024/texmf-dist/tex/latex/float/float.sty)
(d:/texlive/2024/texmf-dist/tex/latex/tools/enumerate.sty)
(d:/texlive/2024/texmf-dist/tex/latex/geometry/geometry.sty
(d:/texlive/2024/texmf-dist/tex/generic/iftex/ifvtex.sty))
(d:/texlive/2024/texmf-dist/tex/latex/amsmath/amsmath.sty
For additional information on amsmath, use the `?' option.
(d:/texlive/2024/texmf-dist/tex/latex/amsmath/amstext.sty
(d:/texlive/2024/texmf-dist/tex/latex/amsmath/amsgen.sty))
(d:/texlive/2024/texmf-dist/tex/latex/amsmath/amsbsy.sty)
(d:/texlive/2024/texmf-dist/tex/latex/amsmath/amsopn.sty))
(d:/texlive/2024/texmf-dist/tex/latex/amsfonts/amssymb.sty
(d:/texlive/2024/texmf-dist/tex/latex/amsfonts/amsfonts.sty))
(d:/texlive/2024/texmf-dist/tex/latex/base/textcomp.sty)
(d:/texlive/2024/texmf-dist/tex/latex/upquote/upquote.sty)
(d:/texlive/2024/texmf-dist/tex/latex/eurosym/eurosym.sty)
(d:/texlive/2024/texmf-dist/tex/latex/fontspec/fontspec.sty
(d:/texlive/2024/texmf-dist/tex/latex/l3packages/xparse/xparse.sty
(d:/texlive/2024/texmf-dist/tex/latex/l3kernel/expl3.sty
(d:/texlive/2024/texmf-dist/tex/latex/l3backend/l3backend-xetex.def)))
(d:/texlive/2024/texmf-dist/tex/latex/fontspec/fontspec-xetex.sty
(d:/texlive/2024/texmf-dist/tex/latex/base/fontenc.sty)
(d:/texlive/2024/texmf-dist/tex/latex/fontspec/fontspec.cfg)))
(d:/texlive/2024/texmf-dist/tex/latex/unicode-math/unicode-math.sty
(d:/texlive/2024/texmf-dist/tex/latex/unicode-math/unicode-math-xetex.sty
(d:/texlive/2024/texmf-dist/tex/latex/l3packages/l3keys2e/l3keys2e.sty)
(d:/texlive/2024/texmf-dist/tex/latex/base/fix-cm.sty
(d:/texlive/2024/texmf-dist/tex/latex/base/ts1enc.def))
(d:/texlive/2024/texmf-dist/tex/latex/unicode-math/unicode-math-table.tex)))
(d:/texlive/2024/texmf-dist/tex/latex/fancyvrb/fancyvrb.sty)
(d:/texlive/2024/texmf-dist/tex/latex/grffile/grffile.sty)
(d:/texlive/2024/texmf-dist/tex/latex/adjustbox/adjustbox.sty
(d:/texlive/2024/texmf-dist/tex/latex/xkeyval/xkeyval.sty
(d:/texlive/2024/texmf-dist/tex/generic/xkeyval/xkeyval.tex
(d:/texlive/2024/texmf-dist/tex/generic/xkeyval/xkvutils.tex)))
(d:/texlive/2024/texmf-dist/tex/latex/adjustbox/adjcalc.sty)
(d:/texlive/2024/texmf-dist/tex/latex/adjustbox/trimclip.sty
(d:/texlive/2024/texmf-dist/tex/latex/collectbox/collectbox.sty)
(d:/texlive/2024/texmf-dist/tex/latex/adjustbox/tc-xetex.def))
(d:/texlive/2024/texmf-dist/tex/latex/ifoddpage/ifoddpage.sty)
(d:/texlive/2024/texmf-dist/tex/latex/varwidth/varwidth.sty))
(d:/texlive/2024/texmf-dist/tex/latex/hyperref/hyperref.sty
(d:/texlive/2024/texmf-dist/tex/generic/kvdefinekeys/kvdefinekeys.sty)
(d:/texlive/2024/texmf-dist/tex/generic/pdfescape/pdfescape.sty
(d:/texlive/2024/texmf-dist/tex/generic/pdftexcmds/pdftexcmds.sty))
(d:/texlive/2024/texmf-dist/tex/latex/hycolor/hycolor.sty)
(d:/texlive/2024/texmf-dist/tex/latex/hyperref/nameref.sty
(d:/texlive/2024/texmf-dist/tex/latex/refcount/refcount.sty)
(d:/texlive/2024/texmf-dist/tex/generic/gettitlestring/gettitlestring.sty))
(d:/texlive/2024/texmf-dist/tex/generic/stringenc/stringenc.sty)
(d:/texlive/2024/texmf-dist/tex/latex/hyperref/pd1enc.def)
(d:/texlive/2024/texmf-dist/tex/generic/intcalc/intcalc.sty)
(d:/texlive/2024/texmf-dist/tex/latex/hyperref/puenc.def)
(d:/texlive/2024/texmf-dist/tex/latex/url/url.sty)
(d:/texlive/2024/texmf-dist/tex/generic/bitset/bitset.sty
(d:/texlive/2024/texmf-dist/tex/generic/bigintcalc/bigintcalc.sty))
(d:/texlive/2024/texmf-dist/tex/latex/base/atbegshi-ltx.sty))
(d:/texlive/2024/texmf-dist/tex/latex/hyperref/hxetex.def
(d:/texlive/2024/texmf-dist/tex/latex/rerunfilecheck/rerunfilecheck.sty
(d:/texlive/2024/texmf-dist/tex/latex/base/atveryend-ltx.sty)
(d:/texlive/2024/texmf-dist/tex/generic/uniquecounter/uniquecounter.sty)))
(d:/texlive/2024/texmf-dist/tex/latex/titling/titling.sty)
(d:/texlive/2024/texmf-dist/tex/latex/tools/longtable.sty)
(d:/texlive/2024/texmf-dist/tex/latex/booktabs/booktabs.sty)
(d:/texlive/2024/texmf-dist/tex/latex/tools/array.sty)
(d:/texlive/2024/texmf-dist/tex/latex/tools/calc.sty)
(d:/texlive/2024/texmf-dist/tex/latex/enumitem/enumitem.sty)
(d:/texlive/2024/texmf-dist/tex/generic/ulem/ulem.sty)
(d:/texlive/2024/texmf-dist/tex/generic/soul/soul.sty
(d:/texlive/2024/texmf-dist/tex/generic/soul/soul-ori.sty)
(d:/texlive/2024/texmf-dist/tex/generic/etexcmds/etexcmds.sty))
(d:/texlive/2024/texmf-dist/tex/latex/jknapltx/mathrsfs.sty)
No file notebook.aux.
(d:/texlive/2024/texmf-dist/tex/latex/caption/ltcaption.sty)
geometry driver: auto-detecting
geometry detected driver: xetex
geometry verbose mode - [ preamble ] result:

  • driver: xetex
  • paper:
  • layout:
  • layoutoffset:(h,v)=(0.0pt,0.0pt)
  • modes:
  • h-part:(L,W,R)=(72.26999pt, 469.75502pt, 72.26999pt)
  • v-part:(T,H,B)=(72.26999pt, 650.43001pt, 72.26999pt)
  • \paperwidth=614.295pt
  • \paperheight=794.96999pt
  • \textwidth=469.75502pt
  • \textheight=650.43001pt
  • \oddsidemargin=0.0pt
  • \evensidemargin=0.0pt
  • \topmargin=-37.0pt
  • \headheight=12.0pt
  • \headsep=25.0pt
  • \topskip=11.0pt
  • \footskip=30.0pt
  • \marginparwidth=59.0pt
  • \marginparsep=10.0pt
  • \columnsep=10.0pt
  • \skip\footins=10.0pt plus 4.0pt minus 2.0pt
  • \hoffset=0.0pt
  • \voffset=0.0pt
  • \mag=1000
  • @twocolumnfalse
  • @twosidefalse
  • @mparswitchfalse
  • @reversemarginfalse
  • (1in=72.27pt=25.4mm, 1cm=28.453pt)

Package hyperref Warning: Rerun to get /PageLabels entry.

(d:/texlive/2024/texmf-dist/tex/latex/amsfonts/umsa.fd)
(d:/texlive/2024/texmf-dist/tex/latex/amsfonts/umsb.fd)
(d:/texlive/2024/texmf-dist/tex/latex/jknapltx/ursfs.fd)

LaTeX Warning: No \author given.

Package hyperref Warning: Difference (2) between bookmark levels is greater
(hyperref) than one, level fixed on input line 400.

[1]
Missing character: There is no θ (U+03B8) in font [lmmono10-regular]:!

[2]
Underfull \hbox (badness 10000) in paragraph at lines 566--567

[3]
! Missing $ inserted.

$
l.569 ...} /(\textbackslash dfrac{1}{r_m})}}
\label{plot-tan-against-df...

?
! Emergency stop.

$
l.569 ...} /(\textbackslash dfrac{1}{r_m})}}
\label{plot-tan-against-df...

Output written on notebook.pdf (3 pages).
Transcript written on notebook.log.`

@Wangxuechi
Copy link
Author

I saw from website, saying that if the notebook file has markdown blocks, it will fail to convert to pdf file.

@Wangxuechi
Copy link
Author

Well, I think I may have a doable solution to deal with it. That is to convert to .tex at first then use xelatex-dev to convert to pdf.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant