# creation of EPS/PDF figures with LaTeX

I have the following problem. While earlier I succeeded to create EPS/PDF figures with LaTeX command (a specific file feynman. sty), and each picture was of a normal size, now something changed in LaTeX in a new version of TexStudio, and the EPS/PDF figure occupies an entire page. fourpoint.pdf Using Linux-like style of LaTeX through terminal (which earlier helped to solve this problem on Mac computers) now also does not help. Thus, the question is -- how to obtain a small-size image in LaTeX?

• Welcome to TeX SX! Why not make your epd.pdf figures as independenr figures with the `standalone` class, and include the result via `\includegraphics`? Jul 3, 2021 at 14:57
• Dear Bernard, If I understand you correctly, you want to say that I need to add the standalone class to preamble? From another side, the problem is that earlier I was created figures with LaTeX, but now the result is not satisfactory. Certainly, creating of figures with some another program with their subsequent inclusion to LaTeX is a good solution. But I would like to create figures with LaTeX. Jul 3, 2021 at 15:11
• No, you don't have to add whatever to the preamble. You just create one independent file per figure, with the standalone class and the relevant packages, and create autonomous figures in the same directory as the main file. That's the way I work, personally (usually with pstricks and xelatex). Jul 3, 2021 at 15:18
• It is rather hard to guess what you did before or what you are doing now that is changed. Show a small complete example document that shows the problem, then someone can suggest how to correct it, and test their answer. Jul 3, 2021 at 15:34
• Dear Colleagues, Whether there is a possibility to attach the TEX file which I used to create a picture? The reason is that I used the specific style which I included into the body of the TEX file. Jul 4, 2021 at 16:07