Graphics, Figures & Tables ⇒ chemical formula numbering
chemical formula numbering
Is there any common way to refer to chemical compounds in latex? My problem is that I can draw the complexes and insert them as a figure but I cannot refer to the compounds in a simple way. Let's say I have complex A and B in a reaction (in the same figure) and I would like to refer to complex A. Just like to a mathematical equation. I can insert of course an "a" or a "b" below the complexes in the figure but I would like to make it automatically (like \ref{a} or something like that).
I hope I could explain clearly, what I want.
Thanks.
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
-
- Site Moderator
- Posts: 814
- Joined: Tue Jul 01, 2008 2:19 pm
chemical formula numbering
Re: chemical formula numbering
thanks again for helping

That was fast.
Have a nice day
chemical formula numbering
To automatically number compounds in a graphic I should use chemstyle. To automatically number and reference compounds in the text I should use bpchem or chemcompounds.
Is it possible to use the labels used to replace "markers" to reference in the text? For example use the \schemeref labels and refer to them later in the text.
Code: Select all
\begin{scheme}[ht]
\schemeref{Oxdd4Cl} %Product: 4-ClC6H4-substituted
\schemeref{ThioUCF3} %Thiourea with 3,5-CF3
\schemeref{ThioUCin} %Thiourea with cincona alkaloid
\includegraphics{thiourea-screen}
\caption{The caption I need to come up with}
\end{scheme}
Thanks,
muchalh
-
- Site Moderator
- Posts: 814
- Joined: Tue Jul 01, 2008 2:19 pm
Re: chemical formula numbering
chemical formula numbering
My girlfriend uses Xelatex in order to write Greek with Texmakerx on Windows - Miktex2.8.
However, she can not make chemstyle properly work and display the eps images. Specifically, in the preamble she loads:
Code: Select all
\documentclass[a4paper,11pt]{report}
\usepackage{fontspec}
\usepackage{xunicode}
\usepackage{xltxtra}
\usepackage{xgreek}
\setmainfont[Mapping=TeX-text]{Minion Pro}
%\usepackage{graphicx}
%\usepackage[colorlinks]{hyperref}
%\usepackage[colorinlistoftodos]{todonotes}
\usepackage[runs=2]{auto-pst-pdf}
\usepackage{booktabs}
\usepackage{chemscheme}
Code: Select all
\begin{scheme}[ht]
\includegraphics[scale=0.5]{eikones/coumarins.eps}
\caption{Synthesis of coumarins}
\end{scheme}
\begin{scheme}[ht]
\schemeref[TMP1]{h}
\schemeref[TMP2]{d}
\includegraphics[scale=0.5]{eikones/coumarins.eps}
\caption{Synthesis of coumarins}
\end{scheme}
Does anybody know if there is a problem with chemstyle and xelatex, or what could be wrong in that case?
Thank you all in advance!
Alex
-
- Site Moderator
- Posts: 814
- Joined: Tue Jul 01, 2008 2:19 pm
Re: chemical formula numbering
Re: chemical formula numbering
Thank you for replying and informing on this problem.
To be honest, this will be very sad for my girlfriend who has just started writing her PhD thesis on latex (after my encourage and support on learning latex) and has to handle many compounds-schemes!

However, if it could be fixed, it would be wonderful for all those chemists that have to use xelatex mainly because they need it as an alternative to write their latex docs to different languages than English, like Greek for example (with xelatex one doesn't have to write \selectlanguage{greek} and \selectlanguage{english} in order to change between those two languages).
I am not very familiar with programming, so I hope it could be easy to fix, if you have the time to look at it!
Thank you for your information again!
I am looking forward to your news!!!
Alex
-
- Site Moderator
- Posts: 814
- Joined: Tue Jul 01, 2008 2:19 pm
Re: chemical formula numbering
Re: chemical formula numbering
thank you again for replying and for orientating me into the problem...I hope some day this could be fixed!
I hope for the best towards developing into all directions for latex users. I acknowledge all efforts that come from the community!

Kind regards,
Alex