aminophen / chemobabel Goto Github PK
View Code? Open in Web Editor NEWLaTeX package for generating chemical structural formula from ChemDraw files or SMILES notations using Open Babel
License: BSD 2-Clause "Simplified" License
LaTeX package for generating chemical structural formula from ChemDraw files or SMILES notations using Open Babel
License: BSD 2-Clause "Simplified" License
The behavior of SVG output of Open Babel 2.4.1 seems different from that of Open Babel 2.3.2. With the new version, the output image always has a square bounding box and the margins around the structure are bigger. Should I crop the margins (using pdfcrop?) before including it to the LaTeX document?
Dear Maintainer!
I would kindly ask You to consider the possibility of adding a caption to the structure of the molecule - generated by Your LaTeX package; with options such as font size and colour.
This would be extremely helpful :-)
Martin
\renewcommand
? โ No! (If "chemobabelimgdir" can be changed or user-defined "Prefix" is allowed, extra hacks on LuaTeX will be required. Twitter)Adding the '-p' option to mkdir in chemobabel.sty will eliminate the reported error when the directory already exists.
I cannot build the document "chemobabel-example-ja.pdf"; it fails on including a PDF graphics from chemobabelimgdir/
subdirectory. (The graphics is actually generated properly.)
It seems that extractbb for images in subdirectory fails. For example, the following code passes on latex+dvipdfmx on TeX Live 2015 but fails on TeX Live 2022.
\documentclass[dvipdfmx]{article}
\usepackage{graphicx}
\begin{document}
\includegraphics{a/b.pdf}
\end{document}
! LaTeX Error: Cannot determine size of graphic a/b.xbb (no BoundingBox).
Praise your Project !!!!! Its hard to find another package that can transfer SMILES names to 2D structures in Latex !!
It really helps!
BTW, It seems that in the newest vewsion of inkscape, -f
option is no longer allowed, while --export-pdf=${filename}
is also deprecated and not available. So I use --export-type=pdf
instead in chemobabel.sty
, line 42:
% \newcommand\chemob@bel@inkscapecmd[2]{inkscape -f #1.svg --export-#2=#1.#2}
\newcommand\chemob@bel@inkscapecmd[2]{inkscape #1.svg --export-type=#2}
And it works for me now on Win10 PC.
Appreciate again!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.