Symptoms
When attempting to print a PDF generated by a tex editor, such as MacTex or Overleaf, the printer only prints out an error code.
Environment
- macOS 12 Monterey
- Xerox Printers
- Preview
- Adobe Acrobat
- Tex Editors and Compilers
Cause
This is a known bug in macOS 12 Monterey. As a helpful stackexchange user explains it,
MacOS prints by first converting the print job to a pdf file. Then it looks at the printer. If the user has a postscript printer, macOS converts the pdf file to a postscript file and sends that to the printer. The print dialog also allows users to write this postscript file to disk. A bug in Monterey causes macOS to write defective postscript files when the pdf contains certain TeX fonts, including Computer Modern.
Resolution
There are currently 2 workarounds for this issue:
- Adding \usepackage{lmodern} to the tex file source code.
- Using a different PDF compiler.
- PDFLaTeX does not appear to work, ExLaTex does.
Additional notes
Some people have found printing from Adobe Acrobat may work, others have not.