GitXplorerGitXplorer
c

ob-blockdiag.el

public
10 stars
4 forks
0 issues

Commits

List of commits on branch master.
Verified
272fafcf3bc37f9de41b11beb6a33e0dbf0a1909

Merge pull request #3 from kinote/master

ccorpix committed 5 years ago
Unverified
afab79b5faec9d458d5303ada15fbae011538c45

Allow specifying output file format type

kkinote committed 6 years ago
Unverified
634fcf64a4ae735afe7001d865b03f5d71e23046

Added license information, closing #2

ccorpix committed 7 years ago
Unverified
715e7d41124a98d3f1e38e430e3a7f31b52704e4

Merge pull request #1 from et2010/fix-typo

ccorpix committed 8 years ago
Unverified
8d9a78262a9dc6c126a997d9f6a77c004ba3eb80

Remove redundant '-mode' suffix

eet2010 committed 8 years ago
Unverified
e6532af46dcea8e79f3ad3cb2863cbbe516efbf6

Fixed shity bugs not appeared when testing

ccorpix committed 8 years ago

README

The README file for this repository.

ob-blockdiag.el

An extension for org-babel to support blockdiag.

Installation

This package is availaple in MELPA.

How to enable MELPA.

With "MELPA enabled emacs" you could install this package by typing this sequence:

M-x
package-install
ob-blockdiag
⏎

Now you could enable this package in your Emacs config with:

(org-babel-do-load-languages 'org-babel-load-languages
 '((blockdiag . t))
)

Example

Blockdiag in Fedora installed from python3-blockdiag package which has unusual executable name. Output file name is ololo.png

#+BEGIN_SRC blockdiag :tool blockdiag-3.5 :file ololo.png
blockdiag {
   A [label = "foo"];
   B [label = "bar"];
   C [label = "baz"];
   A -> B [label = "click bar", textcolor="red"];
   B -> C [label = "click baz"];
   C -> A;
}
#+END_SRC

Arguments

There are some things you could customize:

- `:tool` if you have blockdiag in unusual location or want to use seqdiag or [others](http://blockdiag.com/en/#table-of-contents)
- `:transparency t` to make transparent background of diagram (PNG only)
- `:antialias t` pass diagram image to anti-alias filter
- `:font` if you want the `:tool` to use provided font
- `:size` if you want the `:tool` to use custom size
- `:type` if you want the `:tool` to use different file format type, e.g. pdf, svg

Errors and output

It recreates a buffer with name *ob-blockdiag* every time you evaluating something.

There will be errors and output.