Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"show-keys=true" in eps crashes compilation #18

Open
danleich opened this issue Feb 15, 2021 · 0 comments
Open

"show-keys=true" in eps crashes compilation #18

danleich opened this issue Feb 15, 2021 · 0 comments

Comments

@danleich
Copy link

As I posted on tex.stackexchange I would like to see the label keys I replaced in .eps figures using the \replacecmpd command. If I use show-keys=true it crashes the compilation, if I user show-keys=ref it shows the newly defined keys in the figure, not the referenced ones actually. Also I have to use \replacecmpd+for earlier defined labels, otherwise it gives the error: "Bad space factor (0)"
I saw that for newly defined labels the key is being put into the margin, maybe that is part of the problem? Just a guess from my side.

The eps is still in my dropbox, is there a way to put it here directly? (I am new to github and did manage to create a repository with tex and eps file, but have no idea how to link it here :D )

the code is as follows:


\documentclass[english,
10pt,
]{scrreprt}

\usepackage{chemmacros}
\usechemmodule{
	spectroscopy,
	scheme,
	nomenclature,
	mechanisms,
	isotopes,
}

\setchemnum{
	replace-tag={X},%X<#> used as template tag, better visualization in chemdraw file than TMP<#>
	show-keys=ref,
}

\usepackage[runs=2]{auto-pst-pdf}

\begin{document}

Here the numbers are defined: \cmpd{Garner_02} and \cmpd{Garner_04}

\begin{scheme}[htb]
	\centering
	\replacecmpd{Boc-ser-OMe}
	\replacecmpd+{Garner_02}
	\replacecmpd+{Garner_04}
	\replacecmpd{Garner_22}
	\includegraphics[scale=0.7]{garner_rxn}
	\caption{Synthesis of Garner's aldehyde~\cmpd+{Garner_04} and the corresponding Weinrebamide~\cmpd+{Garner_22}.}
\end{scheme}

Here they are referenced: \cmpd{Garner_02} and \cmpd{Garner_04}

\end{document}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant