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

Numbers in \cip should be upright #9

Closed
hanmertens opened this issue Apr 9, 2017 · 4 comments
Closed

Numbers in \cip should be upright #9

hanmertens opened this issue Apr 9, 2017 · 4 comments
Labels
suggestion feature requests & ideas for improvement

Comments

@hanmertens
Copy link

The locants (numbers) in stereodescriptors made with \cip are typeset in an italic font, but these should be upright, as IUPAC does in its preferred names (page 23 and others).

MWE reproducing this (it is also visible on pages 18-19 of the manual):

\documentclass{article}
\usepackage{chemmacros}
\begin{document}
\cip{2R,3S}
\end{document}
@cgnieder
Copy link
Owner

cgnieder commented Apr 9, 2017

As far as I can see the document you have linked makes no typographical suggestion at all?! Nowhere in the text it is said the numbers should be upright… I am not convinced that a mere usage in a draft document can be counted as recommendation.

However, if you insist then just put the numbers in math mode:

\documentclass{article}
\usepackage{chemmacros}
\begin{document}
\cip{$2$R,$3$S}
\end{document}

@hanmertens
Copy link
Author

Although no explicit typographical suggestion is made, always the numbers are typeset upright. I referred to the draft document because I couldn't find a freely accessible PDF of the latest release of the IUPAC Blue Book. There is one behind a paywall, but if you don't have access I cannot show you that this document also shows preferred IUPAC names with upright numbers. It just feels weird to me that I should resort to putting the numbers in math mode to get the same result as there.

As another source not behind a paywall, in the IUPAC Red Book, again the numbers are typeset upright, for example on page 40 (52 in the PDF). In that section (IR-2.14.2), it is mentioned that these locants should be Arabic numerals. Granted, still nothing is explicitly said about whether these should be italic or not, but also in other cases the locant is not italicised in combination with an italic letter (e.g. 1H-1,2,3-disilagermirene on page 39 (51 in the PDF)), and in other cases it is explicitly stated when something should be italic.

@cgnieder
Copy link
Owner

I'll check other sources and in any way will add an interface for setting the appearance of numbers and letters differently. I'm not sure if I'll change the default appearance, yet.

@cgnieder cgnieder added the suggestion feature requests & ideas for improvement label Apr 17, 2017
cgnieder added a commit that referenced this issue Apr 17, 2017
@cgnieder
Copy link
Owner

This is now implemented and can be customized with the three options cip-inner-format, cip-outer-format and cip-number-format.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
suggestion feature requests & ideas for improvement
Projects
None yet
Development

No branches or pull requests

2 participants