0.01
Low commit activity in last 3 years
No release in over a year
Converts UTF-8 Unicode characters to LaTeX escapes
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 2.14
~> 12.0
~> 3.6
~> 0.15
~> 1.5.2
>= 0
 Project Readme

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}