I make my slides in LaTeX and my pictures in Mathematica. I want to keep the fonts the same throughout, so when I have an image with text in it, I convert the text to "CMU Bright" font in Mathematica before I export the image as a pdf.
If my image includes an overbar or a square root, it looks like this:
Image = Graphics[Text[Style[{OverBar[x] Sqrt[x],"Overscript[x, _],Sqrt[x]"}, FontFamily->"CMU Bright"], {1, 3}]]
But when I export it as a pdf there are big gaps between the x and the bar.
Export[NotebookDirectory[] <> "image.pdf", Image ]
Does anyone know what's causing this or how to fix it?
"
in your code which I think are not intended. You also should not useImage
since it's a built-in symbol. $\endgroup$Image =...
.Image
is a builtin symbol.Export[..., Image]
is also invalid. It should beExport[..., "PDF"]
. $\endgroup$