Some standalone math equations to use in other documents.
Go to file
2021-12-05 12:12:42 -05:00
build Added sample svg file 2021-12-05 12:12:42 -05:00
.gitignore Added remote repo 2021-12-05 10:35:23 -05:00
circle.tex Use paired minipage environments to align drawings with equations vertically 2021-12-05 10:41:38 -05:00
README.md Updated readme with information about pdf2svg 2021-12-05 12:12:24 -05:00

git-standalones

Some standalone math equations to use in other documents.

LibreOffice Writer

Alas, when using LibreOffice Writer, inserting a pdf as an image results in a blurry image, and inserting it as an OLE object causes it to lose its font information.

Convert to tif

It is possible to use GhostScript to convert to a .tif image, which overcomes both of these limitations.

To convert to 600dpi images:

gs -q -dNOPAUSE -dBATCH -sDEVICE=tiffg4  -r600x600 -sOutputFile=test.tif test.pdf

To convert to 1200dpi images:

gs -q -dNOPAUSE -dBATCH -sDEVICE=tiffg4  -r1200x1200 -sOutputFile=test.tif test.pdf

Convert to eps

A better solution may be to convert the pdf to an .eps file, using pdftops. The syntax is:

pdftops -eps input.pdf output.eps

I am including both .tif and .eps images here (in the build folder) as I create them, but will probably go to just creating .eps images shortly. See next section

Convert to svg

The best solution I have found so far is to convert the files to svg. Not all utilities are equally adept at this, as most lost the font information. But pdf2svg seems to have none of those limitations. It can easily be install with apt and has a very simple command structure:

pdf2svg input.pdf output.svg

(See also this note as pdf2svg has not been updated (although it still does work as of today).