I observed a very weird behaviour regarding chemfig and the polymer delimiters. I have created a minimal working example:


    \polymerdelim[height = 5pt, indice = \!\!n]{op}{cl}



I get the following output from this:

enter image description here

As you can see, the brackets are next to the formula whereas they should be around the formula. When I comment the include statement in main.tex and instead uncomment the two lines below, everything works like it should.

How is this possible? I want to have the preamble in a separate document though, because it is much longer in my real document.

  • 3
    Welcome to TeX.SX! Use \input for the preamble. – TeXnician Dec 19 '18 at 10:20
  • @TeXnician why would the make a difference? Isn't \include more or less just \input in the preamble anyways? – daleif Dec 19 '18 at 10:56
  • 1
    @daleif I have no clue, but usually sticking to \input does reduce strange interactions, that's why I suggested it. – TeXnician Dec 19 '18 at 10:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.