最近的
![Using PSTricks with pdflatex on Overleaf](https://writelatex.s3.amazonaws.com/published_ver/24016.jpeg?X-Amz-Expires=14400&X-Amz-Date=20240629T170010Z&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAWJBOALPNFPV7PVH5/20240629/us-east-1/s3/aws4_request&X-Amz-SignedHeaders=host&X-Amz-Signature=3d7d3c6c59bd747548f8337fd8cfe0da08756c5c8df8a00e23d4ed233aea73ab)
Using PSTricks with pdflatex on Overleaf
PSTricks drawings can't be compiled under pdflatex and lualatex (Frequently done errors #5). Instead, compilation with XeLaTeX is preferred if you need to use .jpg/.png/.pdf images in your project.
But if you absolutely need to compile with pdflatex, this example demonstrates how to use PStricks with pdflatex using auto-pst-pdf on Overleaf (But you still can't use .jpg/.png/.pdf images within your PSTricks drawings).
Overleaf