Skip to content

hackdev17/smi2latex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 

Repository files navigation

smi2latex

Introduction

Convert SMI input to LaTeX \chemfig{}

Prerequisites/Dependencies

You need to install obabel & mol2chemfig packages
Installation through command line is better in some case due to non-availability above of packages
You may install them through pip if not available

Installation from Command line [Linux]

Debian

$ sudo apt-get update
$ sudo apt-get install obabel mol2chemfig

Arch Linux

$ paru obabel mol2chemfig
$ yay obabel mol2chemfig

PIP Install

Debian

$ sudo apt-get install python-pip
$ pip install -U mol2chemfigPy3

Arch Linux

$ sudo pacman -S python-pip
$ pip install -U mol2chemfigPy3

Additional Packages [LaTeX]

To render some complex structures, and ring like structure use the mol2chemfig package in LaTeX
i.e add the line \usepackage{mol2chemfig}

How it works

Simply it converts user input to \chemfig{} output.
If failes then, runs obabel which converts input to a *.mol file and mol2chemfig converts *.mol to *.tex

Usage

Just type the smile codes you want in LaTeX

Output

No output file is genarated, Only LaTeX syntax is genarated

About

Convert Smiles to LaTeX \chemfig{}

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages