I have a problem with compiling a LaTeX document into PDF.

The code itself seems to be correct, as it compiles smoothly at sharelatex.com, but it doesn't work on my computer (I am using TeXstudio).

The problem seems to come from the fact that me and other people sharing the document have copied some \usepackage commands we typically use, which don't work together. The errors are

undefined control sequence


package error: this package cannot be used in cooperation with others

The problem seems to concern all the packages as I try to remove some of them at random. The packages I use are:

\usepackage[top=1in, bottom=1.25in, left=1.00in, right=1.00in]{geometry}











What can I do to make it work?

  • 2
    You should not use subcaption and subfig together. Remove one of them and use always the other one. And you load several packages more than once. It would be better to avoid this. Commented Jan 11, 2017 at 12:13
  • 5
    Only use the packages you need for a specific document, don't randomly collect them. Don't load them multiple times and pay attention to the order. Things like hyperref should be loaded towards the end, babel near the beginning. Commented Jan 11, 2017 at 12:14
  • For suggestions of other collectibles see tex.stackexchange.com/a/326170/36296 Commented Jan 11, 2017 at 12:25

1 Answer 1


You load geometry twice with different options, not a good idea.

You load appendix twice with different options, not a good idea.

Fixing those, then the mwe compiles for me with naive contents.

You must log in to answer this question.

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