Tag Info

New answers tagged

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

I don't know how you define \IND, so I'll just define it to call \mathcal. Since you seem to be using @ as active only inside math, there's another strategy available, that of making @ math active. In your package write \newcommand{\IND}{\newcommand{\IND}[1]{\mathcal{#1}} % or whatever \begingroup \catcode`@=\active \global\let @=\IND \endgroup ...


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