Tag Info

New answers tagged

4

From the description I assume that definition of the environment mypack does not need to be changed after the package is loaded. Then two switches and classical options will do: \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{mypack}{2014/04/17 My package} \newif\ifmypack@swpl % swpl: true, tcb: false \newif\ifmypack@pdf % option pdf ...


3

Your example is far from minimal. If I remove all the code unrelated to the error I get \documentclass{report} \usepackage{thmtools} \declaretheoremstyle[ spaceabove=\topsep ]{mystyle} \declaretheorem[style=mystyle]{@thmattr} \begin{document} \end{document} which produces the error shown. ! Package thmtools Error: \declaretheorem key `spaceabove' not ...


7

As the posted code doesn't generate the error shown, I'll modify it so it does. This complete document demonstrates the error. \RequirePackage{amsfonts} \newcommand{\A}{\mathbb A} \def\B{\mathbb B} \def\C{\mathbb C} \newcommand{\D}{\mathbb D} \newcommand{\E}{\mathbb E} \newcommand{\F}{\mathbb F} \def\G{\mathbb G} \def\H \mathbb H \newcommand{\I}{\mathbb I} ...


11

You have probably discovered why it's very strongly discouraged to redefine kernel commands with \def. For instance, \H is defined to give the “hungarian umlaut” accent; so, if you are talking about Erdős in your document, you'll get a puzzling error, even if you seem not to be using \H. Actually when \usepackage[utf8]{inputenc} is in force, LaTeX ...


5

There are several errors in your code. Doing \ProcessOptions after the conditional definition, when the counter will still have value 0 Don't define \Copyright, which is completely useless and may supersede commands defined in other packages Wasting a counter for deciding if an option has been given Using \IfValueTF#2 instead of the correct \IfValueTF{#2} ...



Top 50 recent answers are included