Comments (3)
I think it would help us help you if you gave an example of an Org file you have, the output or error you get and the expected results. For what it's worth this works for me:
#+begin_src plantuml :file plantuml-demo.png
title Authentication Sequence
Alice->Bob: Authentication Request
note right of Bob: Bob thinks about it
Bob->Alice: Authentication Response
#+end_src
(The :file filename.png
is very important.)
"Executing" that by positioning cursor anywhere in the source block and hitting C-c C-c
asks me "Evaluate this plantuml code block on your system? (y or n)".
FWIW my PlantUML config (this week) is https://github.com/stig/dotfiles/blob/trunk/Emacs.org#plantuml
and my babel configuration is:
(org-babel-do-load-languages 'org-babel-load-languages
'((emacs-lisp . t)
(sql . t)
(shell . t)
(plantuml . t))))
from plantuml-mode.
As far as I known plantuml-mode
is not used for org-mode except for the indentation and syntax highlighting if you have enabled that. All the Babel stuff comes from ob-plantuml
bundled with org-mode
.
from plantuml-mode.
Thank you both for your help. With it, I now have my expected environment, which is I can write PlantUML both in a major mode and in Org mode, and it behaves identically to writing GraphViz: one is able to preview (in the former), and generate results (in the latter).
My path there was a little circuitous. I tried to follow @stig's config (that's fun to say), and after realizing (after @terlar's comment) that I am not to replace ob-plantuml
with plantuml-mode
, I started making progress. I got a bit stuck on trying to follow Stig's configuration in that ob-plantuml
wouldn't load. Of course not, it doesn't exist as a package anymore (Terje told me that, I'm just slow).
So, I removed all configuration of ob-plantuml
in my config, and set the (as of org-mode 9.4) org-plantuml-exec-mode
to 'plantuml
(which was really my goal all alongβto use the executable configuration of plantuml-mode
so that I didn't have to use the jar).
I do still have this issue (put here for completeness, but not related to plantuml-mode
) the first time I try and to generate results in Org mode:
Code block produced no output.
It works the second time. Maybe it has to do with the order that things are loaded... but I'm not that worried about it.
What I'm stoked about is the major mode works flawlessly, and in Org mode it's "good enough."
Again, thank you both for your help.
from plantuml-mode.
Related Issues (20)
- Only display stdout in preview HOT 5
- plantuml jar exec mode HOT 2
- plantuml-mode function to create figure HOT 1
- Configuring exec mode does not have effect HOT 1
- use server exec-mode,this error:the plugin you are using seems to generated a bad URL. HOT 10
- Cannot donload plantuml -jar due XML Not Well-Formed HOT 1
- Refactor regular expressions used for font-locking HOT 2
- indentation breaks after note anchored to method HOT 2
- indentation breaks after named multiline note HOT 2
- Syntax errors on wrong line HOT 2
- --illegal-access=deny; support was removed HOT 3
- Feature Request: plantuml toggle display toggle on or off as message
- No Syntax Highlight
- π’π’ Seeking New Maintainer π’π’ HOT 6
- plantuml-mode accumulates spurious tabs HOT 1
- Failed to run plantuml in an org-babel src block HOT 1
- base64 encoding not supported by plantuml pico server HOT 2
- Bug: Comment Highlighting Applied Within Lines
- Typo in README
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from plantuml-mode.