Tag Info

New answers tagged

2

Here is a suggestion that makes the change to a prohibited font size value a little bit more difficult. \begin{filecontents*}{MyClass.cls} \ProvidesClass{MyClass}[2017/05/18] \RequirePackage{scrbase} \DefineFamily{MyClass} \DefineFamilyMember{MyClass} \DefineFamilyKey{MyClass}{fontsize}{% \ifstr{#1}{12pt}{\PassOptionsToClass{fontsize=12pt}{scrreprt}% ...


3

The code in the question has some problems: \ifstrequal is not defined, as shown by the error message. It is defined by package etoolbox. Environment switch makes a group, all local settings are lost after the end of the environment. There are lots of ways to implement "switches", this is not covered by package kvoptions, which tries to be simple and ...


4

You could use l3keys2e. File myunicodefonts.sty \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{myunicodefonts}[2015/06/21 Load fonts] \RequirePackage{fontspec} \RequirePackage{l3keys2e} \ExplSyntaxOn \bool_new:N \g_myunicodefonts_mathfont_bool \tl_new:N \g_myunicodefonts_textfont_tl \tl_new:N \g_myunicodefonts_mathfont_tl \keys_define:nn { myunicodefonts } ...



Top 50 recent answers are included