summaryrefslogtreecommitdiff
path: root/macros/generic/chemfig/chemfig-en.tex
diff options
context:
space:
mode:
Diffstat (limited to 'macros/generic/chemfig/chemfig-en.tex')
-rw-r--r--macros/generic/chemfig/chemfig-en.tex18
1 files changed, 17 insertions, 1 deletions
diff --git a/macros/generic/chemfig/chemfig-en.tex b/macros/generic/chemfig/chemfig-en.tex
index 79c4024359..b0b0bf3176 100644
--- a/macros/generic/chemfig/chemfig-en.tex
+++ b/macros/generic/chemfig/chemfig-en.tex
@@ -4,7 +4,6 @@
\usepackage[a4paper,margin=2.5cm,head=17pt,headsep=3mm,footskip=10mm]{geometry}
\usepackage[bottom]{footmisc}
\usepackage{libertine,amsmath,array,longtable,xspace,fancybox,boites,textcomp,enumitem,chemfig,fancyhdr}
-\usepackage[scaled=0.8]{luximono}
\usetikzlibrary{decorations.pathmorphing}
\usetikzlibrary{decorations.markings}
\usetikzlibrary{matrix}
@@ -19,6 +18,7 @@
\renewcommand\headrulewidth{0pt}
\makeatletter
+\usepackage[scaled=0.8]{GoMono}
\newcommand\make@car@active[1]{%
\catcode`#1\active
\begingroup
@@ -233,6 +233,14 @@ In this example, a blue arrow starts at atom \verb|n1-3|, which is "C2", and goe
\subsection{Token \texttt\# in schemes}
In a scheme, the \verb|#| token is now allowed when in the argument of the \verb|\chemfig| macro. See page~\pageref{modif.retrait}.
+\subsection{Key gchemname}
+This key, true by default, makes the maximum depth assignments made by \verb|\chemnameinit| and \verb|\chemname| global or local.
+
+\subsection{Keys "schemestart code" and "schemestop code"}
+The values (empty by default) contained in these two keys are executed at the very beginning and at the very end of a reaction scheme. They are not executed in nested reaction schemes.
+
+For example, we can write \verb|schemestart code=\chemnameint{}| to reset the name depth at the beginning of each reaction scheme.
+
\section{Presenting \protect\CF}
To use this package, start by adding the following code to the preamble:
\begin{itemize}
@@ -297,6 +305,9 @@ Here is the complete list of parameters as well as their default values\label{li
\begin{minipage}[t]{.45\linewidth}
\begin{longtable}{rl}\hline
\chevrons{keys} & default \chevrons{values}\\\hline\endhead
+ \CFparam{gchemname}
+ \CFparam{schemestart code}
+ \CFparam{schemestop code}
\CFparam{scheme debug}
\CFparam{compound style}
\CFparam{compound sep}
@@ -948,6 +959,8 @@ In fact, to draw the \Verb-<name>- the command \falseverb{\chemname} inserts 1.5
\item write \verb-\chemnameinit{}- after having written all the names in a chemical reaction lest the greatest depth in this reaction interfere with a future reaction.
\end{itemize}
+Note that the assignments for the largest depth are global if \CFkv{gchemname}{true}, which is the default behavior. They are local otherwise.
+
Thus the correct code uses \falseverb{\chemnameinit} before and after the reaction:
\exemple*{Name alignment 2}/\chemnameinit{\chemfig{R-C(-[:-30]OH)=[:30]O}}
\schemestart
@@ -2450,6 +2463,9 @@ The commands created by \CF are:
\item \CFkv{+ sep left} {0.5em}: space before the $+$ sign
\item \CFkv{+ sep right} {0.5em}: space after the $+$ sign
\item \CFkv{+ vshift} {0pt}: vertical shift of the $+$ sign
+ \item \CFkv{gchemname} {true}: if true, makes the depth assignments made by \verb|chemnameinit| and \verb|chemname| global
+ \item \CFkv{schemestart code} {}: code executed at the very beginning of a non-nested reaction scheme
+ \item \CFkv{schemestop code} {}: code executed at the very end of a non-nested reaction scheme
\end{itemize}
\\
\verb|\resetchemfig|&Reset the parameters to their default values\\