Skip to content

Instantly share code, notes, and snippets.

@gerritgr
Last active July 26, 2023 08:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gerritgr/15d411170b6647bcc454a5b9226b2907 to your computer and use it in GitHub Desktop.
Save gerritgr/15d411170b6647bcc454a5b9226b2907 to your computer and use it in GitHub Desktop.
_Simple: Keynote_
1) drag and drop pyplot (pdf export) or compiled latex (as pdf) or standard latex (via keynote equation editor or latexit) into keynote
2) do whateva editing in keynote
3) Export as PDF and crop somehow
_Edit in Illustrator or Affinity Designer_
1) Export as PDF
2) in some cases (when you want to convert text to paths): convert pdf to svg and back to pdf
3) open in illustrator or affinity
(there also seems to be a trick to create canvas first and then imoprt pdf, maybe also conversion through keynote works)
_Latex in to illustrator_
1) use Latex it (https://www.chachatelier.fr/latexit/)
2) use inline modus and make sure "pdf with ..." and "SVG" are activated
3) drag and drop into Illustrator
4) In illustrator you might have to remove some additional objects for some reason (alternativly select the latex-text with the amgic wand tool)
_Export Settings_
Also this one seems to work:
import matplotlib
matplotlib.rcParams['pdf.fonttype'] = 42
matplotlib.rcParams['ps.fonttype'] = 42
(http://jonathansoma.com/lede/data-studio/matplotlib/exporting-from-matplotlib-to-open-in-adobe-illustrator/)
_Render paths in PDF_
print with macOS print menu
or export as PDF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment