{"id":15579131,"url":"https://github.com/jayqi/nbconvert-windows-pdf-repro","last_synced_at":"2026-02-04T02:03:28.677Z","repository":{"id":96914858,"uuid":"279720286","full_name":"jayqi/nbconvert-windows-pdf-repro","owner":"jayqi","description":"Minimal example to reproduce a bug with nbconvert --to pdf on Windows","archived":false,"fork":false,"pushed_at":"2020-07-15T02:14:46.000Z","size":82,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-08T03:09:58.039Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TeX","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jayqi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-07-15T00:12:05.000Z","updated_at":"2020-07-15T01:44:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"c51cf000-af11-40b7-921c-c3f6d4e92bb2","html_url":"https://github.com/jayqi/nbconvert-windows-pdf-repro","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jayqi/nbconvert-windows-pdf-repro","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jayqi%2Fnbconvert-windows-pdf-repro","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jayqi%2Fnbconvert-windows-pdf-repro/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jayqi%2Fnbconvert-windows-pdf-repro/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jayqi%2Fnbconvert-windows-pdf-repro/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jayqi","download_url":"https://codeload.github.com/jayqi/nbconvert-windows-pdf-repro/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jayqi%2Fnbconvert-windows-pdf-repro/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29064211,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-04T01:55:38.219Z","status":"online","status_checked_at":"2026-02-04T02:00:07.999Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-02T19:13:56.062Z","updated_at":"2026-02-04T02:03:28.646Z","avatar_url":"https://github.com/jayqi.png","language":"TeX","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Reproducible Example for nbconvert Windows and PDF Bug\n\nThis repo attempts to provide a minimal reproducible example for the bug reported in [jupyter/nbconvert Issue #974](https://github.com/jupyter/nbconvert/issues/974) by using GitHub Actions.\n\n## Notes about environment setup\n\n- `nbconvert` and `pandoc` are installed using miniconda\n- the TeX distribution comes from [TinyTeX](https://yihui.org/tinytex/), a popular cross-platform TeX distribution used by the R community\n- additional dependencies required by `nbconvert` are manually installed with `tlmgr` using the `install_latex_deps.sh` and `install_latex_deps.ps1` scripts\n\nEnvironment for failed build (from logs):\n\n- Microsoft Windows Server 2019\n- Python 3.8.3\n- nbconvert 5.6.1\n- pandoc 2.10\n- TeX Live 2020 via TinyTeX\n\n## Results\n\n[Build #5](https://github.com/jayqi/nbconvert-windows-pdf-repro/actions/runs/169400753) demonstrates an example where `ubuntu-latest` and `macos-latest` pass as expected, but `windows-latest` fails. You can see the failed build log here: [link](https://github.com/jayqi/nbconvert-windows-pdf-repro/runs/871565528?check_suite_focus=true#step:10:14)\n\n```\n[NbConvertApp] Running xelatex 3 times: ['xelatex', '.\\\\notebook.tex', '-quiet']\n[NbConvertApp] CRITICAL | x failed: xelatex .\\notebook.tex -quiet\nThis is XeTeX, Version 3.14159265-2.6-0.999992 (TeX Live 2020/W32TeX) (preloaded format=xelatex)\n\n restricted \\write18 enabled.\n\nentering extended mode\n\n! Undefined control sequence.\n\n\u003c*\u003e .\\notebook\n\n              .tex -quiet\n\n?\n\n! Emergency stop.\n\n\u003c*\u003e .\\notebook\n\n              .tex -quiet\n\nNo pages of output.\n\nTranscript written on ?.\n```\n\nArtifacts from [build #5](https://github.com/jayqi/nbconvert-windows-pdf-repro/actions/runs/169400753) have been copied into `artifacts/` for reference.\n\nNote that the `artifacts/windows-latest-the_notebook-latex/the_notebook.tex` file from Windows has Windows-style CRLF line endings. I converted it to Unix-style LF line endings (`artifacts/windows-latest-the_notebook-latex/the_notebook_lf.tex`), and this appears to produce identical files to the Ubuntu and MacOS runs.\n\n```\n$ find artifacts -type f -exec md5sum {} \\; | sort\n03a09f34782ea7a18044f4a846eb753a  artifacts/macos-latest-the_notebook-latex/the_notebook_files/the_notebook_1_1.png\n03a09f34782ea7a18044f4a846eb753a  artifacts/ubuntu-latest-the_notebook-latex/the_notebook_files/the_notebook_1_1.png\n03a09f34782ea7a18044f4a846eb753a  artifacts/windows-latest-the_notebook-latex/the_notebook_files/the_notebook_1_1.png\n0c6e074242f45693b5691122aec3950e  artifacts/macos-latest-the_notebook.pdf\n43aef34985d51c5fcae20efef3b33b19  artifacts/ubuntu-latest-the_notebook.pdf\n5da10de1a8757c9fdde8f74dbabc8c77  artifacts/macos-latest-the_notebook-latex/the_notebook.tex\n5da10de1a8757c9fdde8f74dbabc8c77  artifacts/ubuntu-latest-the_notebook-latex/the_notebook.tex\n5da10de1a8757c9fdde8f74dbabc8c77  artifacts/windows-latest-the_notebook-latex/the_notebook_lf.tex\ne2d21840f02c1986fd71b3703fae6403  artifacts/windows-latest-the_notebook-latex/the_notebook.tex\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjayqi%2Fnbconvert-windows-pdf-repro","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjayqi%2Fnbconvert-windows-pdf-repro","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjayqi%2Fnbconvert-windows-pdf-repro/lists"}