# Scribble to PDF pain

**URL:** <https://racket.discourse.group/t/scribble-to-pdf-pain/1076>\
**Category:** Questions & Answers\
**Tags:** scribble\
**Created:** [June 11, 2022, 1:17am UTC](https://racket.discourse.group/t/scribble-to-pdf-pain/1076 "2022-06-11T01:17:53Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![soegaard](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/soegaard/32/19_2.png) [@soegaard](https://racket.discourse.group/u/soegaard)\
**Post date:** [June 11, 2022, 12:22pm UTC](https://racket.discourse.group/t/scribble-to-pdf-pain/1076/8 "2022-06-11T12:22:51Z")

</div>

Sounds like this issue:

> <https://github.com/racket/scribble/issues/324>
>
> The following LaTeX document is reduced from what scribble generates from a hell…o world document. With 
> newtxmath.sty 1.7 (2021/12/18), it generates an error because \\widebar is already defined. Uncomenting the let
> for widebar seems to "fix" it, no idea if that's the best approach.
>  
> \`\`\`latex
> \\documentclass{article}
> \\usepackage{amsmath}
> \\usepackage{mathabx}
> \\let\\widering=\\relax
> %\\let\\widebar=\\relax
> \\usepackage{newtxmath}
> \\begin{document}
> hello world
> \\end{document}
> \`\`\`
> Here's the scribble document.
> 
> \`\`\`racket
> \#lang scribble/base
> @(require scribble/core
> scribble/manual)
> 
> hello world
> \`\`\`

and

> [@Problems generating pdf/latex from scribble](https://racket.discourse.group/t/problems-generating-pdf-latex-from-scribble/1010):
>
> I'm trying to get started using scribble to replace regular latex in my toolchain. However, I'm having a hard time generating both pdf and latex. I believe the error in both instances is related to the same error about \widebar. Here's the error I get when I tried to get a pdf from the scribble-generated tex: This is pdfTeX, Version 3.141592653-2.6-1.40.24 (TeX Live 2022) (preloaded format=pdflatex) restricted \write18 enabled. entering extended mode (./test.tex LaTeX2e \<2021-11-15\> patch lev…

---

_[View the full topic](https://racket.discourse.group/t/scribble-to-pdf-pain/1076)._
