0

Any idea what is the use of:

\usepackage[most]{tcolorbox}

in simple explanation?

This is because I need to include \usepackage[hypcap=false]{caption}, but it crash with \usepackage[most]{tcolorbox}. I need to delete \usepackage[most]{tcolorbox}.

Why both are crash?

enter image description here

\documentclass[12pt,oneside]{book}  % Remove draft option to show figures (for final draft), otherwise keep for faster production

\usepackage[most]{tcolorbox}

\usepackage{uorthesis}  % Loads the LaTeX style package
\usepackage[backend=biber, style=authoryear]{biblatex}

\usepackage[demo]{graphicx}
\usepackage[hypcap=false]{caption}
\usepackage[list=true]{subcaption}



\begin{document}
aan
  • 2,663
  • 1
    The error message you show is because you added \usepackage[demo]{graphicx} to your preamble. The error message is shown, since uorthesis already loads the graphicx package. If you want to use the demo option, include it into the class options (´\documentclass[12pt, oneside, demo]{book}`). – leandriis Jan 01 '20 at 14:34
  • However, the incompatibility between subcaption and uorthesis still persists. Therefore, your MWE will still produce error messages, even after fixing what I mentioned in my previous comment. – leandriis Jan 01 '20 at 14:37
  • @leandriis. Thanks! I cancel off \usepackage[demo]{graphicx}, it works. Can i know how you read the error message? I need to learn instead of struggle finding it – aan Jan 01 '20 at 14:37
  • This information is literally written in the red box you showed in your screenshot: "The package graphicx has already been loaded with options: [] There has now been an attempt to load it with options [demo] Adding the global options: ,demo to your \documentclass declaration may fix this." – leandriis Jan 01 '20 at 14:38
  • @leandriis. Thanks. Can i know what is the meaning of the incompatibility between subcaption and uorthesis still persists? I already cancel off subcaption in my uorthesis. – aan Jan 01 '20 at 14:40
  • What does "I already cancel off subcaption in my uorthesis" mean? You still load both packages uorthesis and subcaption. – leandriis Jan 01 '20 at 14:41
  • @leandriis. uorthesis is just a list of usepackage and does not contain any subcaption. – aan Jan 01 '20 at 14:45
  • That's true. but uorthesis contains \usepackage{subfigure}. And subfigure (loaded by uorthesis) and subcaption (loaded in your preamble) are incompatible. – leandriis Jan 01 '20 at 14:46
  • @leadriis, thanks for that. I also cancel off subfigure in the uorthesis file. Between, now i cancel off \usepackage[demo]{graphicx}, will it create lots of problem? What is grahicx use for? – aan Jan 01 '20 at 14:49
  • Instead of manipilating packages (which you do when you delete lines from a .sty file) you should consider completely dropping the uorthesis package. Instead, copy the absolutely necessary lines from uorthesis package to your preamble. Regarding templates and the use of such, you might want to have a look at: https://tex.stackexchange.com/a/390684/134144 – leandriis Jan 01 '20 at 14:52
  • The graphicx package is needed to include images into your document using the \includegraphics command. – leandriis Jan 01 '20 at 14:54

0 Answers0