RTL Math Text

by orelby
5
4
3
2
1
Score: 51/100

Description

Category: Note Enhancements

The RTL Math Text plugin enables seamless integration of right-to-left (RTL) languages like Hebrew into MathJax expressions. It provides custom LaTeX commands to embed RTL text within mathematical formulas and allows nesting of left-to-right (LTR) text or math expressions inside RTL contexts. Users can even customise command names for flexibility. However, it currently lacks support for languages with combining letters such as Arabic, pending improvements in MathJax 4.0.

Reviews

No reviews yet.

Stats

2
stars
248
downloads
0
forks
306
days
309
days
309
days
0
total PRs
0
open PRs
0
closed PRs
0
merged PRs
0
total issues
0
open issues
0
closed issues
0
commits

Latest Version

10 months ago

Changelog

  • Revised text to follow Obsidian guidelines

README file from

Github

RTL Math Text

RTL Math Text is a plugin for Obsidian that adds basic support for mixing right-to-left (RTL) and left-to-right (LTR) text in MathJax expressions through the use of custom LaTeX commands.


Features

  • Add strictly right-to-left (RTL) text (e.g. Hebrew) inside math expressions using \R{\text{...}}
  • Nest strictly left-to-right (LTR) text (e.g. English) inside RTL using \L{...}
  • Nest math (e.g. numbers) inside RTL/LTR using $...$ in display mode or using \(...\)
  • Configure the names of the \R{...} and \L{...} commands in the settings

⚠ Note: The plugin does not add support for languages with combining letters (e.g. Arabic). This is expected to be resolved with the upcoming release of MathJax 4.0 (see mathjax/MathJax#3041).


Examples

Getting started

Screenshot

$\R{\text{שלום, עולם!}}$

Nesting LTR and math inside RTL

Screenshot

$$
\underbrace{a_1 \| a_2 \| \cdots \| a_n}_{
\R{\text{
שרשור
(\L{concatenation})
האותיות ב-$
a$}}}
$$

(line breaks for readability)


Manually installing the plugin

  • Download the latest release from the release page
  • Unzip & copy the files into your .obsidian/plugins/rtl-math-text folder
  • Enable the plugin from Obsidian settings
  • Reload Obsidian or reopen your notes

Manually building the plugin

  • Clone or download this repo
  • Make sure your NodeJS is at least v16 (node --version)
  • npm i or yarn to install dependencies
  • npm run build for production build (or npm run dev for dev build in watch mode)
  • Copy main.js, styles.css, and manifest.json into your .obsidian/plugins/rtl-math-text folder

License

MIT

Similar Plugins

info
• Similar plugins are suggested based on the common tags between the plugins.