Tag Info

5

AFAIK environment verbatim does not support the start of a line with a percent character as in the DTX file format. The following workaround can be done: The environment verbatim is written without the percent prefix: \begin{verbatim} \begin{exercise} Calculate $1 + 1 =$ \end{exercise} \end{verbatim} The inclusion in the files, generated by docstrip ...

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


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