Convert SMI input to LaTeX \chemfig{}
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
$ sudo apt-get update
$ sudo apt-get install obabel mol2chemfig
$ paru obabel mol2chemfig
$ yay obabel mol2chemfig
$ sudo apt-get install python-pip
$ pip install -U mol2chemfigPy3
$ sudo pacman -S python-pip
$ pip install -U mol2chemfigPy3
To render some complex structures, and ring like structure use the mol2chemfig
package in LaTeX
i.e add the line \usepackage{mol2chemfig}
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
Just type the smile codes you want in LaTeX
No output file is genarated, Only LaTeX syntax is genarated