I am having trouble with the subfigure command, \textwidth comes up with the error missing number treated as zero














Is there a problem with my preamble? Many thanks

  • 9
    use \ not / Apr 19, 2015 at 14:37
  • 2
    Welcome to TeX.SX! As David says, you need \textwidth, not /textwidth, everywhere.
    – egreg
    Apr 19, 2015 at 15:21
  • 1
    @DavidCarlisle Please, add an answer
    – egreg
    Oct 3, 2015 at 22:08
  • 1
    @egreg always happy to give you a chance to vote for me. Oct 4, 2015 at 8:16

1 Answer 1


/ is not a special character by default in TeX, you need to use \ not / everywhere so




You must log in to answer this question.

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