I'm using the Tikz package to create a series of plots directly in my main .tex file. I opted for this method because the labels match perfectly the font and size of my main file even if I scale or not the plot. Now I encountered a common problem that is the one related to the TeX capacity exceeded. The suggestion to overcome this problem seems to be to externalize the plots. About that I have two problems
- If I create the plot outside my main .tex file, will the font and size of the labels be math with the main .tex file even if I scale the figure?
- If yes, can someone describe the procedure to follow? I searched on other threads but I didn't fully understand the procedure. To write my .tex files I use TexMaker.
tikzexternalizelibrary, which is automatic (see TikZ manual around page 666) – Rmano Mar 07 '21 at 11:39standaloneclass file manually (this is handy too), be sure to use the same fonts of your main file, and do not scale the generated.pdfwhen you load it via\includegraphics. – Rmano Mar 07 '21 at 11:43pgfplotsmanual there are hundreds of plots. Are you sure you are not overdoing with point density? Over a certain number is even bad for the plot: https://tex.stackexchange.com/a/318524/38080 – Rmano Mar 07 '21 at 11:47tikzexternalizethe font is matched too, and also if you usestandalonecorrectly --- the only thing you have to check is that you do not scale anything. – Rmano Mar 07 '21 at 11:49externallibrary can be used, have a look at e.g. https://tex.stackexchange.com/q/253181/95441 and the duplicate question that it links to. – Stefan Pinnow Mar 08 '21 at 15:58