Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

graphviz dot RESULTS ignored in org-mode #3477

Closed
fommil opened this issue Feb 28, 2017 · 2 comments
Closed

graphviz dot RESULTS ignored in org-mode #3477

fommil opened this issue Feb 28, 2017 · 2 comments

Comments

@fommil
Copy link

fommil commented Feb 28, 2017

I'm trying to get pandoc to show a dot image in org-mode, while hiding the input source.

This is my code

#+BEGIN_SRC dot :file images/graphpocalypse.png :exports results :cmdline -Kdot -Tpng
digraph {
  // graph from left to right
  rankdir=LR;
  splines=true;
  node [shape=box];
 
  id [label="Install Graphviz"]
  conf [label="Configure org-babel"]
  dot [label="DOT in org-mode"]
 
  id -> conf
  conf -> dot
  dot -> "Profit"
  dot -> "Success" [style=dotted]
}
#+END_SRC

#+RESULTS:
[[file:images/graphpocalypse.png]]

Part of this revealjs talk https://github.com/ensime/ensime.github.io/tree/20e714c2aa3344fda0c3270621859607b11a0fc8/talks/scalasphere17

But every time I run pandoc on it (exact command in the .pandoc file in the same directory), the SRC is included but the image is ignored.

This is kind of weird because I have a dittaa image higher up in the same file, and pandoc is able to correctly hide the SRC but show the RESULTS there.

$ pandoc -v
pandoc 1.19.2.1
Compiled with pandoc-types 1.17.0.5, texmath 0.9.1, skylighting 0.1.1.5

(ArchLinux)

@tarleb tarleb self-assigned this Apr 23, 2017
@tarleb tarleb closed this as completed in 04cb602 Apr 23, 2017
@tarleb tarleb modified the milestone: pandoc 2.0 May 17, 2017
@stefanq
Copy link

stefanq commented May 18, 2017

The fix repairs a powerful and thus important feature for users of org-mode and I'm not sure if pandoc 2 will be subject to a release in the near future.
Could this fix therefore maybe back-ported to the current release?

@tarleb
Copy link
Collaborator

tarleb commented May 18, 2017

I don't think there will be an intermediate release. You can grab a current build from pandoc nightly if multi-word arguments are very important to you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants