Some standalone math equations to use in other documents.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Kenneth John Odle 16cb8c91e3 Added sample svg file 7 months ago
build Added sample svg file 7 months ago
.gitignore Added remote repo 7 months ago Updated readme with information about pdf2svg 7 months ago
circle.tex Use paired minipage environments to align drawings with equations vertically 7 months ago


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).