# Tag Info

5

You were including the packages inside a group, so all their definitions were discarded at the } \ProvidesPackage{mypreamble} \RequirePackage{kvoptions} \SetupKeyvalOptions{family=MO,prefix=MO@} \DeclareBoolOption[true]{nokoma} \ProcessKeyvalOptions* % THE FOLLOWING 3 PACKAGES SEEM INCOMPATIBLE WITH KOMA \ifMO@nokoma \usepackage{natbib} ...

4


12

At the start of every package the current catcode of @ is pushed on to a stack, and the catcode of @ is set to 11 so that internal commands may be used. At the end of the package the catcode of @ is restored to the saved value and the stack is popped. this means that any settings of the catcode of @ in a package will be lost. Like any other latex behaviour ...

2

Here is an altogether different approach, but still adopting the general structure of your code. One remark: I didn't know about package morewrites and decided not to use it. Indeed it modifies my expectations about how opening and closing file streams work in TeX. It allows it seems to use a read stream on a file which has not been closed yet. As coloured ...

3

In your package use \newcommand\subsection[2][]{% \PackageWarningNoLine{myClass}{Don't use this command!}}

3

You can use selinput; for this particular case, a cyrillic letter can be used, together with a restricted set of encodings to look for. \documentclass{article} \usepackage{selinput} \SelectInputEncodingList{utf8,cp1251} \SelectInputMappings{ cyrd={д}, } \begin{document} \inputencodingname \end{document} If the file is encoded in UTF-8, compiling it ...

4

You should put in some directory in a local TeXMF root. As MiKTeX doesn't create such a local root by default, you'll have to create one yourself if you haven't already done so not the TeXMF root installed by MiKTeX. Then register this new root with MiKTeX Settings--> Root tab: You'll have to respect the TDS (TeX Directory Structure): put your .sty file ...

Top 50 recent answers are included