Hot answers tagged chemfig
4
You can load the TikZ-library arrows and use the arrow tips left to and right to. Here's a quick example:
\documentclass{article}
\usepackage{chemfig}
\setatomsep{1.8em}
\usetikzlibrary{arrows}
\begin{document}
\schemestart
\chemfig{Cl|@{Cl}\Lewis{0.,\strut}}
% a long invisible bond should suffice but this demonstrates
% that also scheme nodes can ...
3
Your code is missing an opening brace for the \parbox and a \fi in the arrow definition. After adding those I changed the definition of the arrow as follows:
\makeatletter
\definearrow4{s>}{%
\ifx\@empty#3\@empty
\expandafter\draw\expandafter[\CF@arrow@current@style,-CF@full]
\CF@arrow@start@node)--(\CF@arrow@end@node);%
\else
...
2
chemfig provides the command \chemname{<molecule>}{<name>} for writing a name below a molecule. It has an optional argument for the vertical offset and if the molecules have a different depth possibilities are provided to align the names anyway. This is described with examples in section 12 Writing a name under a molecule in chemfig's manual.
...
2
I know Clemens loves \arrow{0} but his solution sounds complicated to me. Why don't you use \schemestart...\schemestop inside \chemname, which seems more natural?
\documentclass{article}
\usepackage{chemfig}
\begin{document}
\schemestart
\chemname{%
\schemestart
\chemfig{R-[:30](=[:90]O)-[:-30]R}
\arrow{0}[,.5]
...
2
If you place the first two compounds in a \subscheme{...} the whole subscheme gets a unique name that you can refer to in an arrow using the \arrow{@<name>--) syntax:
\documentclass{article}
\usepackage{chemfig}
\begin{document}
% uncomment to see the names:
% schemedebug{true}
\schemestart
\subscheme{
\chemfig{R-[:30](=[:90]O)-[:-30]R}
...
2
Since compounds are per default centered with respect to arrow in chemfig's schemes I usually use an invisible arrow (type 0) with length 0 (\arrow{0}[,0], the second optional argument scales the arrow relative to the basic length, the “compoundsep”) to center compounds:
\documentclass{article}
\usepackage{chemfig,chemmacros}
\begin{document}
...
Only top voted, non community-wiki answers of a minimum length are eligible