Comments (4)
but i was just curious if there was any particular reason for this.
@Nidish96 This is because Org needs to see some top-level math before loading MathJax ---see Issue #17 for a MWE Org file that mentions this issue and demonstrates it.
from org-special-block-extras.
Update: delimiting the $
s and /
s I could get the above to work with latex but not with html:
SDOF equations are \$m\\ddot{x}=f(t)\$
yields what is expected on latex.
from org-special-block-extras.
I'm glad you like the package ❤️
The way that the special blocks work is that their main argument is actually a string literal; it is not generally interpreted as Org markup. As such, if we treat it as a string then we just need to escape the relevant parts:
#+begin_details "SDOF equations are \\(m\\ddot{x}=f(t)\\)"
The above is a differential equation with $\ddot{x}$.
#+end_details
This works and produces, in HTML:
It seems that the above string fact should be better documented. Sorry about that 😅
from org-special-block-extras.
Thanks for the response (apologies for my delay).
I can confirm that your solution works.
But I found it interesting that the following works,
#+begin_details "SDOF equations are \\(m\\ddot{x}=f(t)\\)"
The above is a differential equation with $\ddot{x}$.
#+end_details
but this does not:
#+begin_details "SDOF equations are \$m\\ddot{x}=f(t)\$"
The above is a differential equation with $\ddot{x}$.
#+end_details
Output of the second version is:
This might just be a minor point, since latex supports both $ eqn $
as well as \( eqn \)
for inline math, but i was just curious if there was any particular reason for this.
from org-special-block-extras.
Related Issues (20)
- Problems when exporting to latex HOT 2
- Need help with o-thread-blockcall HOT 4
- Support LaTeX's `\blockcquote` HOT 2
- Support for dirlocal HOT 5
- Avoiding wrap with export block HOT 1
- Unwanted newlines in LaTeX export HOT 4
- Org-mode doesn't expand special blocks properly.
- Some features not working together with `org-thtml` HOT 5
- Special blocks for `.docx` export HOT 6
- Need help with making a block HOT 3
- Add beamer support HOT 3
- No way to disable tooltips and the extraneous code in HTML export. HOT 1
- Wrong type argument on `margin`, `kbd` links HOT 2
- Syntax highlighting in custom blocks are not working :( HOT 2
- Improve documentation & reference matter & motivating examples & how-to sections
- can use defblock define block like cheatsheet ....
- Doesn't work with RevealJS HTML Backend HOT 1
- Some javascript and css gets blocked by ublock HOT 4
- Any interest in proposing this package for inclusion in either GNU or NonGNU ELPA? HOT 1
- org-defblock not working
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 org-special-block-extras.