I would like the [ ] to be in the center and I'm not succeeding.
\chemfig{HO-[@{left,0.25}]CH_{2}CH_{2}O-[@{right,0.25}]OH}
\polymerdelim[delimiters ={[]}, height = 10pt, depth = 10pt, indice = n]{left}{right}
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It only takes a minute to sign up.
Sign up to join this communityI would like the [ ] to be in the center and I'm not succeeding.
\chemfig{HO-[@{left,0.25}]CH_{2}CH_{2}O-[@{right,0.25}]OH}
\polymerdelim[delimiters ={[]}, height = 10pt, depth = 10pt, indice = n]{left}{right}
Probabily that you have forgotten the 2nd size parameter (see 0.8
) after @{left,0.5}
(for example), and you will have the square brackets to be in the center.
\documentclass{article}
\usepackage{chemfig}
\begin{document}
\chemfig{HO-[@{left,0.5},0.8]CH_{2}CH_{2}O-[@{right,0.5},0.8]OH}
\polymerdelim[height=10pt, depth=10pt, indice=\!n, delimiters={[]}]{left}{right}
\end{document}