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.

44 lines
1.5 KiB

2 years ago
  1. # git-standalones
  2. Some standalone math equations to use in other documents.
  3. ## LibreOffice Writer
  4. 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.
  5. ### Convert to tif
  6. It is possible to use GhostScript to convert to a .tif image, which overcomes both of these limitations.
  7. To convert to 600dpi images:
  8. ````
  9. gs -q -dNOPAUSE -dBATCH -sDEVICE=tiffg4 -r600x600 -sOutputFile=test.tif test.pdf
  10. ````
  11. To convert to 1200dpi images:
  12. ````
  13. gs -q -dNOPAUSE -dBATCH -sDEVICE=tiffg4 -r1200x1200 -sOutputFile=test.tif test.pdf
  14. ````
  15. ### Convert to eps
  16. A better solution may be to convert the pdf to an .eps file, using `pdftops`. The syntax is:
  17. ````
  18. pdftops -eps input.pdf output.eps
  19. ````
  20. 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**
  21. ### Convert to svg
  22. 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:
  23. ````
  24. pdf2svg input.pdf output.svg
  25. ````
  26. (See also [this note]( as pdf2svg has not been updated (although it still does work as of today).