Sha256: 059e4d6b4a1f8995ee38db6011351c6bd2ca9ce80020bae21c7cd97b6360a421
Contents?: true
Size: 1.16 KB
Versions: 1
Compression:
Stored size: 1.16 KB
Contents
= unicode2latex image:https://img.shields.io/gem/v/unicode2latex.svg["Gem Version", link="https://rubygems.org/gems/unicode2latex"] image:https://img.shields.io/travis/metanorma/unicode2latex/master.svg["Travis Build Status", link="https://travis-ci.com/metanorma/unicode2latex"] image:https://ci.appveyor.com/api/projects/status/j16ia0fq43mk9yje?svg=true["Appveyor Build Status", link="https://ci.appveyor.com/project/ribose/unicode2latex"] image:https://codeclimate.com/github/metanorma/unicode2latex/badges/gpa.svg["Code Climate", link="https://codeclimate.com/github/metanorma/unicode2latex"] Gem for translating UTF8 Unicode characters to LaTeX escapes [source,ruby] ---- 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} ----
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
unicode2latex-0.0.3 | README.adoc |