Skip to content

Commit

Permalink
Get the image to actually appear in the README
Browse files Browse the repository at this point in the history
  • Loading branch information
d-torrance committed Dec 28, 2023
1 parent 86bde0c commit 9cb3500
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions README.org
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,8 @@ Org Mode manual.
To generate graphics, specify the =file= type and =graphics= format along
with a =:file= header argument. Then in your Macaulay2 code, call [[https://macaulay2.com/doc/Macaulay2/share/doc/Macaulay2/Macaulay2Doc/html/_show.html][show]] (or
a function that calls it like [[https://macaulay2.com/doc/Macaulay2/share/doc/Macaulay2/Graphs/html/_display__Graph.html][displayGraph]]). The resulting image will be
generated with the desired filename. (Note that the =convert= utility from
[[https://imagemagick.org/][ImageMagick]] must be present for this to work.) Initially, a link to the image
file will appear, but it may be displayed in the buffer by calling
=M-x org-toggle-inline-images=.
generated with the desired filename. Note that the =convert= utility from
[[https://imagemagick.org/][ImageMagick]] must be present for this to work.

#+BEGIN_SRC org
,#+BEGIN_SRC M2 :results file graphics :file barbell.png
Expand All @@ -81,3 +79,8 @@ file will appear, but it may be displayed in the buffer by calling
,#+RESULTS
[[file:barbell.png]]
#+END_SRC

Initially, a link to the image file will appear, but it may be
displayed in the buffer by calling =M-x org-toggle-inline-images=.

[[barbell.png]]

0 comments on commit 9cb3500

Please sign in to comment.