Html2latex
This gem translates html tag into Latex code. You can also create your own translation hash.
Installation
Add this line to your application's Gemfile:
gem 'html2latex'
And then execute:
$ bundle
Or install it yourself as:
$ gem install html2latex
Usage
Using the translate method
Example:
Html2latex.translate("<b>Bolt text here</b>")
Add a new hash translate in the hash list
Example:
newhash = {"<tag>" => "\latexcode{"}
Html2latex.add newhash
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/pherde/html2latex. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
License
The gem is available as open source under the terms of the MIT License.
Code of Conduct
Everyone interacting in the Html2latex project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.