最近的
![Using PSTricks with pdflatex on Overleaf](https://writelatex.s3.amazonaws.com/published_ver/24016.jpeg?X-Amz-Expires=14400&X-Amz-Date=20240727T034342Z&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAWJBOALPNFPV7PVH5/20240727/us-east-1/s3/aws4_request&X-Amz-SignedHeaders=host&X-Amz-Signature=9b870a4223e38c60ac865a8af8e715cdc66b19f5bdba69e8d9420ceeba6e2b81)
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