4

I use \newcommand{\bondwidth}{0.06642 em} and \setbondstyle{line width = \bondwidth} to make my bonds a bit thicker, however, this doesn't seem to affect aromatic rings, leading to a slightly irritating mismatch.

Current Look

I'd like to make the width match that of my lines, preferably with some kind of global configuration setting.

Any suggestions?

1 Answer 1

3

You should use the \setchemfig{} command as describe in the notice p.4

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{chemfig} 
\setchemfig{chemfig style={line width=.25pt}}

\begin{document}
\chemfig{**6(------)}
\end{document}

enter image description here

You could also use

\chemfig{-[:0]**[,,line width=.25pt]6(---(-)---)}

line width controls the thickness of the circle.

5
  • I tried adding \setchemfig{chemfig style={line width=\bondwidth}} however I still end up with the image seen in my original post. I imagine the aromatic ring's thickness needs to be set differently.
    – tecosaur
    Oct 31, 2018 at 5:44
  • Did you update your distribution ? Oct 31, 2018 at 7:03
  • I'm not quite sure what you mean. I'm using TeX Live 2018.
    – tecosaur
    Oct 31, 2018 at 7:05
  • The package is perhaps outdated. You could update thé package chemig with the Package Manager or use a command prompt and write sudo tlmgr update --all if your OS is Linux. Oct 31, 2018 at 7:41
  • I was using chemfig v1.31, I updates to 1.32 and that fixed it :)
    – tecosaur
    Oct 31, 2018 at 14:35

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .