cleanthesis icon indicating copy to clipboard operation
cleanthesis copied to clipboard

Multiple Images using Subfigure caption

Open ankur92 opened this issue 8 years ago • 11 comments

Hello,

Thanks a lot for this beautiful template. I am trying to include multiple images using subfigure package but I am getting this error:

! LaTeX Error: Command \c@lofdepth already defined.Or name \end... illegal, see p.192 of the manual.See the LaTeX manual or LaTeX Companion for explanation.Type H for immediate help.... \newcounter{lofdepth}

I am compiling on TexMaker full version in Ubuntu. I will be very grateful if you could help me resolve this.

Thanking you in advance.

ankur92 avatar Jun 02 '16 07:06 ankur92

Package subfigure is deprecated for a decade, use package subcaption.

johannesbottcher avatar Jun 02 '16 07:06 johannesbottcher

Hi,

Okay, I didn't know about that.

I tried with just subcaption package but it is again showing this error.

! Package caption Error: bf undefined.See the caption package documentation for explanation.Type H for immediate help.... \usepackage

ankur92 avatar Jun 02 '16 12:06 ankur92

I cannot reproduce that. Please provide a minimal working example.

johannesbottcher avatar Jun 02 '16 16:06 johannesbottcher

I am attaching the Main.tex and the example included in it.

Example.txt

ankur92 avatar Jun 02 '16 16:06 ankur92

Package cleanthesis loads package fancyhdr to setup header and footer. It should not.

Add enabledeprecatedfontcommands to the optionlist when loading the class file.

johannesbottcher avatar Jun 02 '16 16:06 johannesbottcher

But that's what is mentioned in the cleanthesis.sty to load fancyheader.

Also, I am sorry but I didn't understand where to include this in the class file. If you could pin-point then it will be really helpful.

On Thu, Jun 2, 2016 at 10:10 PM, Johannes Böttcher <[email protected]

wrote:

Package cleanthesis loads package fancyhdr to setup header and footer. It should not.

Add enabledeprecatedfontcommands to the optionlist when loading the class file.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/derric/cleanthesis/issues/61#issuecomment-223349570, or mute the thread https://github.com/notifications/unsubscribe/ABnDMcGvBRacRrJNLoQrSpJNXWURhM3oks5qHweagaJpZM4IsRFG .

Ankur Agrawal Master's Student Engineering Physics IIT Bombay http://home.iitb.ac.in/~ankur92/ http://home.iitb.ac.in/~ankur92/

ankur92 avatar Jun 02 '16 16:06 ankur92

\documentclass[optiona,optionb,enabledeprecatedfontcommands]{scrreprt}

Also, please add package subcaption after \usepackage{caption}.

johannesbottcher avatar Jun 02 '16 17:06 johannesbottcher

Hey thanks a lot. I had included caption package also and it's working fine when I removed it.

On Thu, Jun 2, 2016 at 10:41 PM, Johannes Böttcher <[email protected]

wrote:

\documentclass[optiona,optionb,enabledeprecatedfontcommands]{scrreprt}

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/derric/cleanthesis/issues/61#issuecomment-223357840, or mute the thread https://github.com/notifications/unsubscribe/ABnDMeBN1YeI8Al8RToWp8BebPch29drks5qHw6ugaJpZM4IsRFG .

Ankur Agrawal Master's Student Engineering Physics IIT Bombay http://home.iitb.ac.in/~ankur92/ http://home.iitb.ac.in/~ankur92/

ankur92 avatar Jun 02 '16 17:06 ankur92

I didn't read the message carefully, it is not the fault of fancyhdr (not in your case however ;-)), but the loading order. In your case, package caption isn't needed at all. As you have already found out.

johannesbottcher avatar Jun 02 '16 17:06 johannesbottcher

Hi,

I am facing one more problem with the cleanthesis template. When I render the report in Ubuntu, I don't see the Section numbering whereas in Mac, it shows. Any fix?

Thanking you in advance.

On Thu, Jun 2, 2016 at 10:48 PM, Johannes Böttcher <[email protected]

wrote:

I didn't read the message carefully, it is not the fault of fancyhdr (not in your case however ;-)), but the loading order. In your case, package caption isn't needed at all. As you have already found out.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/derric/cleanthesis/issues/61#issuecomment-223359962, or mute the thread https://github.com/notifications/unsubscribe/ABnDMUPZqBweuX5QqOqFOH4kwlQBFQNtks5qHxBogaJpZM4IsRFG .

Ankur Agrawal Master's Student Engineering Physics IIT Bombay http://home.iitb.ac.in/~ankur92/ http://home.iitb.ac.in/~ankur92/

ankur92 avatar Jun 17 '16 05:06 ankur92

Please don't mix different issues together, it leads to confusion.

Have a look at https://github.com/derric/cleanthesis/issues/57

johannesbottcher avatar Jun 17 '16 07:06 johannesbottcher