I have several question regarding LaTeX and chemfig.
My first question is :
how to create a list of schemes similar to \listoftables
and \listoffigures
so I can add my reaction schemes to newly created \listofschemes
?
Next question is :
how to make a caption for a reaction scheme in chemfig so I can call the scheme out and it will be displayed in "list of schemes" from my first question. Here is an example of a reaction scheme:
\documentclass[12pt,doublespacing,letterpaper]{report}
\usepackage{etex}
\usepackage[usenames,dvipsnames]{color}
\usepackage{cite}
\usepackage{fancyref}
\usepackage{lscape}
\usepackage{morehelp}
\usepackage{setspace}
\usepackage{rotating}
\usepackage[toc,page]{appendix}
\usepackage{easytable}
\usepackage{chemfig}
\usepackage{longtable}
\usepackage{amssymb}
\usepackage{amstext}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage{dcolumn}
\usepackage{bm}
\usepackage{geometry}
\usepackage{multirow}
\usepackage{caption}
\begin{document}
\chapter{}
\schemedebug{false}
\schemestart[0,2.5,thick]
\scriptsize\chemfig{*6((!{Rsubst})-=-(-[,0.8]I)=(-[,0.9]N(-[:150,1.3]R\rlap{$^2$})(-[:30,1.3]R\rlap{$^1$}))-=)}\+{1em,1em ,7pt}
\chemfig{R^4-~}
\arrow{->[\footnotesize\parbox{110pt}{\centering $3$ mol \%,
PdCl$_2${(}PPh{)}$_3$\\[-7pt] $2$ mol \%, CuI, Et$_3$N}][\footnotesize MW,
60$^\circ$C, 20 min\footnotesize]}
\scriptsize\chemfig{*6((!{Rsubst})-=-(-~-R\rlap{$^4$})=(-[,0.9]N(-[:150,1.3]
R\rlap{$^2$})(-[:30,1.3]R\rlap{$^1$}))-=)}
\schemestop
%This should be a caption
\vspace{0.7cm}
\centerline{Scheme 1.5. Microwave assisted Sonogashira coupling
reaction.}
\end{document}
My third question is :
How to line up the reaction scheme above?
I really appreciate any help!
Best Answer
I'll answer under the assumption that you're the one who emailed me the other day about Missing bond type in chemical rendering packages? and to whom I suggested the following definition of the submol
{Rsubst}
:since a submol
{Rsubst}
is used in your code but never defined. If that is wrong please correct me.Your first and second question are actually the same: captions and a list of
<thingy>
both are properties of floats. The real question therefore is: how to define a new float?Since you're already using the
caption
package I suggest to use thenewfloat
package for defining a{scheme}
environment analogous to the{figure}
and{table}
environments. The package is from the same author and will work together nicely.This also defines a
\listofschemes
which will (after two compilations) give the list of schemes.A few remarks to your scheme: I don't understand what you mean with “line up” in your third question but I made some adjustments:
\parbox
.\rlap{...}
constructs as I don't think they're needed. TheR^2
substituents can be adjusted withchemfig
's|
syntax for dividing atoms and the use of the arrival option of bonds, see another answer of mine.0
) of length0
to center the plus with respect to the preceding molecule. There are other ways but I find this way the most convenient one in most cases.siunitx
andchemmacros
for typesetting of units and for typesetting of chemical formulae.\setatomsep{1.8em}
.The result of all of the above is this, page one:
and on page two:
Here's the whole code: