Math & Science ⇒ bpchem | Annoying Space after Sub-label
bpchem | Annoying Space after Sub-label
I'm using bpchem to label my compounds with sub-labels, and end up with a space after the label that I can't get rid of.
- Attachments
-
- number pic.png (15.77 KiB) Viewed 3403 times
Last edited by Stefan Kottwitz on Sun Feb 19, 2012 11:53 am, edited 1 time in total.
NEW: TikZ book now 40% off at Amazon.com for a short time.

- Stefan Kottwitz
- Site Admin
- Posts: 10345
- Joined: Mon Mar 10, 2008 9:44 pm
bpchem | Annoying Space after Sub-label
Hi hoytesara,
welcome to the board!
I converted your TIFF image to PNG, this format is better viewable here.
Though we are now able to see the output, it would be good if you would post your code here, so we could examine it and fix the problem. The best would be a
minimal working example.
Stefan
welcome to the board!
I converted your TIFF image to PNG, this format is better viewable here.
Though we are now able to see the output, it would be good if you would post your code here, so we could examine it and fix the problem. The best would be a

Stefan
LaTeX.org admin
bpchem | Annoying Space after Sub-label
That's probably due to a missing
You could redefine it:
You could also have a look at chemnum.
Regards
%
in bpchem's definition of \CNrefsub
(lines 168 to 172 of bpchem.sty
):
Code: Select all
%% reference a CNlabel/sublabel
\DeclareRobustCommand*{\CNrefsub}[2]{%
\ref{cn:#1#2}
%%\textbf{\csname cna@#1#2\endcsname}%
}
Code: Select all
\DeclareRobustCommand*{\CNrefsub}[2]{\ref{cn:#1#2}}
Regards
site moderator & package author
bpchem | Annoying Space after Sub-label
Ok, here's my code.
Thanks!
Sarah
Code: Select all
\documentclass{article}
\usepackage{bpchem}
\begin{document}
Compound (\CNlabelsub{PtBCPPP}{a}), (\CNlabelsub{PtBCPPP}{b}), \CNlabelsub{PtBCPPP}{c}, and \CNlabelsub{PtBCPPP}{d}.
\end{document}
Sarah