Before you say this has been asked before, I did try to look this up and found these thread:
The issue is that I couldn't get the answers to work, probably because I'm not experienced enough. I tried to use the standalone class by writing
but it gives me an error "Class standalone Warning: Conversion failed! Please ensure that shell escape is enabled (e.g. use '-shell-escape')."
Now, I have no idea how to use this -shell-escape function.
I'm using the software TeXworks and tried implementing the following solution:
But this again just gives me the same error.
Any help is greatly appreciated!