Skip to content

plurimath/unicode2latex

DEPRECATION NOTICE: This repository is no longer maintained. Please visit Plurimath for the latest updates and features.

unicode2latex

Gem Version Ubuntu Build Status OSX Build Status Windows Build Status Code Climate Pull Requests Commits since latest

Gem for translating UTF8 Unicode characters to LaTeX escapes

require "unicode2latex"

latex = 'M =
 \begin{bmatrix}
  -\sin λ_0 & \cos λ_0 & 0 \\
  -\sin φ_0 \cos λ_0 & -\sin φ_0 \sin λ_0 & \cos φ_0 \\
  \cos φ_0 \cos λ_0 & \cos φ_0 \sin λ_0 & \sin φ_0
 \end{bmatrix}'

Unicode2Latex.unicode2latex(latex)

>> M =
 \begin{bmatrix}
  -\sin \lambda_0 & \cos \lambda_0 & 0 \\
  -\sin \varphi_0 \cos \lambda_0 & -\sin \varphi_0 \sin \lambda_0 & \cos \varphi_0 \\
  \cos \varphi_0 \cos \lambda_0 & \cos \varphi_0 \sin \lambda_0 & \sin \varphi_0
 \end{bmatrix}

About

Convert Unicode characters to Latex escapes

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages