I want to create plots in Mathematica where all labels have font sizes which match those in a LaTeX document. I start by defining
Needs["MaTeX`"];
texStyle = {FontFamily -> "Latin Modern Roman", FontSize -> 12}
Now, if I export a simple plot
Export["test1.pdf",
Plot[{Sin[x], Cos[x]}, {x, 0, 2 Pi},
BaseStyle -> texStyle,
ImageSize -> 400]]
the font sizes match those in my document. However, if I include a plot legend
Export["test2.pdf",
Plot[{Sin[x], Cos[x]}, {x, 0, 2 Pi},
BaseStyle -> texStyle,
ImageSize -> 400,
PlotLegends -> Placed[MaTeX[{"\\sin(x)", "\\cos(x)"}], {0.6, 0.8}]]]
the font size in the plot is too small. This might have to do with the fact that Mathematica makes the second plot smaller (independent of MaTeX).
MaTeX
does use a 12 pt font size by default, but instead of relying on that (it may change in the future!) I would set it explicitly too. $\endgroup$