Comments (4)
This would depend a bit on what you mean.
If you are talking about about code blocks having LaTeX support, that would be pretty easy to do and I’d be happy to give you some guidance on how to make the change in organized to support it.
If you are talking about LaTeX export, that’s going to have to wait a bit. I have plans to allow exporting to HTML and maybe PDF at some undetermined point in the future. Getting there is going to require some design work and refactoring on my part to avoid something that’s impossible to maintain. My work on Organized is adhoc, uneven, and mostly done on a train, so no guarantees when that will happen.
from organized.
from organized.
Sure, I'd be happy to accept a PR on this.
Organized relies on other plugins for highlighting support. For example in Java, it relies on https://github.com/atom/language-java to do the highlighting. To make highlighting work in organized, we need to instruct organized/atom to know that the code inside a code block is actually LaTeX code. This amounts to mapping the latex part of
```latex
```
To something that knows the grammar of LaTeX. To do that, modify organized.cson and copy one of the existing blocks that does this. For example, "java.code.block.organized". Choose a string to identify LaTeX code (latex sounds good to me) and search/replace.
The tricky part here is the part that says "source.java". That refers to the scope name for a plugin that understands the grammar of the language you are adding. You'll need to figure out what the scope name of your plugin is. If you happened to use this plugin, you'd find the scope name in one of these files. I'm going to guess you want the scope "text.tex.latex" from latex.cson, but you are the expert here - I haven't touched TeX since years started with the number 19.
You could conceivably add the ability to execute LaTeX code blocks as well. If you are interested in that, you'd need to change codeblock.coffee. The changes would be as follows:
- If LaTeX really cares what the extensions are on files (some compilers or interpreters do), modify the execute method to put an extension on there.
- Modify the executionEngine method to support LaTeX. More than likely, you'll be like every other language and you'll just be a one liner.
Good luck -- it would be fantastic to see a PR on this.
from organized.
Maybe use mathjax to do in-line rendering? Similar to what they've done with markdown preview plus. It's really neat.
from organized.
Related Issues (20)
- Agenda items displays the item above instead of itself HOT 2
- Uncaught ReferenceError: options is not defined HOT 2
- Visibility cycling hangs Atom HOT 2
- ToDo's not showing in sidebar HOT 2
- [TODO] items tripled in sidebar HOT 1
- Object.basename is deprecated.
- Folding does not work when there is a space between lines
- 'markdown-writer' package overrides 'tab' keybinding when enabled
- Shorcut for adding schedule data&time in orgmode style
- File format change? HOT 1
- Uncaught TypeError: Cannot read property 'isBefore' of null
- [Feature Request] VS code version of organized HOT 1
- Edit outline structure
- 'The editor is not responding' error and atom freeze.
- Icons not displaying on TODO or agenda HOT 1
- Nothing Shows Up in Todo/Agenda Sidebar HOT 2
- Feature request: Configurable TODO tags HOT 2
- "numbersnumbers..." sometimes appears instead of list number in nested ordered lists
- Nothing is displayed in sidebar HOT 1
- Any way to make this work with custom-folds?
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 organized.