Science Score: 26.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (9.5%) to scientific vocabulary
Repository
Make your LaTeX writing easier with R
Basic Info
- Host: GitHub
- Owner: nicoesve
- License: gpl-3.0
- Language: R
- Default Branch: master
- Homepage: https://nicoesve.github.io/latexSymb/
- Size: 1.73 MB
Statistics
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 3
- Releases: 0
Metadata Files
README.md
latexSymb
Transform complex LaTex mathematical expressions into readable, composable R code. Instead of wrestling with backslashes and braces, express your mathematics naturally using familiar R syntax.
✨ Why latexSymb?
Before (Raw LaTex) 😓
latex
\frac{d}{dt} \left \langle V,W \right \rangle = \left \langle \frac{DV}{dt}, W \right \rangle + \left \langle V, \frac{DW}{dt} \right \rangle
After (latexSymb) 🎉
```r vf1 <- lsymb("V") vf2 <- lsymb("W") inner <- function(x, y) ang(lsymb(x, ",", y)) cov.der <- function(x) lsymb("D", x) / "dt" ddt <- function(x) lsymb("d", x) / "dt"
ddt(inner(vf1, vf2)) eq inner(cov.der(vf1), vf2) + inner(vf1, cov.der(vf2)) ```
🚀 Key Features
1. Natural Mathematical Syntax
```r
Division automatically becomes \frac
x / y # → \frac{x}{y}
Powers become superscripts
x^2 # → x^{2}
Subscripts with under()
x |> under(i) # → x_{i} ```
2. Automatic Delimiter Sizing
No more \left and \right headaches!
r
pths(x / y) # Parentheses with auto-sizing
ang(x, y) # Angle brackets ⟨x,y⟩
sqbr(x + y) # Square brackets [x+y]
br(condition) # Braces {condition}
3. Composable Mathematical Functions
Build complex expressions from simple, reusable parts: ```r
Define semantic functions
exp_val <- function(x) lsymb("\mathbb{E}") * sqbr(x) sq <- function(x) pths(x)^2 abs <- function(x) lsymb("\abs{", x, "}")
Compose naturally
exp_val(sq(abs(x) - y)) # → 𝔼[(|x| - y)²] ```
4. Multi-line Equations Made Simple
r
proof_steps <- list(
ruler * dist(x, y) * leq * dist(x, z) + dist(z, y) * endl,
ruler * thus * dist(x, y) - dist(x, z) * leq * dist(z, y)
) |>
lenv("align*", rows = _)
5. Common Symbols Pre-loaded
```r data(common) attach(common)
Instantly use: alpha, beta, mu, sigma, eq, leq, sum, int, infty...
```
📦 Installation
Released version from CRAN:
r
install.packages("latexSymb")
Development version from GitHub: ```r
install.packages("devtools")
devtools::install_github("nicoesve/latexSymb") ```
🎓 Quick Example: Central Limit Theorem
```r library(latexSymb) data(common) attach(common)
Define components
samplemean <- lsymb("\bar{x}") sqrt <- function(x) lsymb("\sqrt{", x, "}") convdistr <- lsymb("\overset{d}{\rightarrow}")
Express the theorem
clt <- sqrt(n) * (pths(samplemean - mu) / si) * convdistr * lsymb("N(0,1)") ```
📚 Learn More
- Vignettes: See
vignette("vignette1", package = "latexSymb")for getting started - Advanced Usage:
vignette("advanced_usage", package = "latexSymb")for complex examples - Documentation: Full function reference at
?latexSymb
🎯 Perfect For
- 📊 Statistical reports with complex notation
- 🎓 Academic papers and presentations
- 📚 Course materials and textbooks
- 🧮 Any document with serious mathematics
Stop fighting with LaTex syntax. Start expressing your mathematics naturally with latexSymb!
Owner
- Login: nicoesve
- Kind: user
- Repositories: 1
- Profile: https://github.com/nicoesve
GitHub Events
Total
- Push event: 4
Last Year
- Push event: 4
Packages
- Total packages: 1
-
Total downloads:
- cran 288 last-month
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 3
- Total maintainers: 1
cran.r-project.org: latexSymb
R Functions for Readable LaTeX Mathematical Expressions
- Homepage: https://nicoesve.github.io/latexSymb/
- Documentation: http://cran.r-project.org/web/packages/latexSymb/latexSymb.pdf
- License: GPL (≥ 3)
-
Latest release: 1.0.0
published about 1 year ago
Rankings
Maintainers (1)
Dependencies
- knitr * suggests
- rmarkdown * suggests
- JamesIves/github-pages-deploy-action v4.5.0 composite
- actions/checkout v4 composite
- r-lib/actions/setup-pandoc v2 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite