I have foo.Rnw
file which uses the extrafont
package for generating figures with text elements that use non-standard font families. After knitr calls pdflatex on my document, I want to run extrafont::embed_fonts
on the resulting foo.pdf
file.
I can do this manually, but is there a way to do this from within knitr? (e.g., some knitr package option I can set to automatically call extrafont::embed_fonts
after it knits my file and runs it through pdflatex)