Code Monkey home page Code Monkey logo

ob-blockdiag.el's Introduction

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.

ob-blockdiag.el's People

Contributors

corpix avatar weirdvic avatar et2010 avatar kinote avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.