Skip to content
Snippets Groups Projects

tmp: migration to wsl

Merged Marc Weber requested to merge 8-fix-inheritance-of-documentclass-options into main
3 files
+ 61
31
Compare changes
  • Side-by-side
  • Inline

Files

+ 29
25
@@ -61,20 +61,29 @@
@@ -61,20 +61,29 @@
36pt .meta:n = {fontsize=36pt},
36pt .meta:n = {fontsize=36pt},
48pt .meta:n = {fontsize=48pt},
48pt .meta:n = {fontsize=48pt},
60pt .meta:n = {fontsize=60pt},
60pt .meta:n = {fontsize=60pt},
 
% override default option for DIC size in scrbook
 
% scrbook uses a grid to divide the page into typearea and margins. A default sizing is to divide this grid into 9 divisions. For a more detailed explanation, have a look at the documentation of scrbook and typearea in scrguide.
 
DIV .code:n = {\PassOptionsToClass{DIV = #1}{\g_icbook__base_class_str}},
 
DIV .initial:n = 11,
 
DIV .value_required:n = true,
 
% override default paper size to be a4 paper in scrbook
 
paper .code:n = {\PassOptionsToClass{paper = #1}{\g_icbook__base_class_str}},
 
paper .initial:n = a4,
 
paper .value_required:n = true,
}
}
% All unkown options get passed on to the base class. This allows all options of the base KOMAScript classes to be used.
% All unkown options get passed on to the base class. This allows all options of the base KOMAScript classes to be used.
% \DeclareUnknownKeyHandler {
\DeclareUnknownKeyHandler {
% \tl_if_blank:oTF {#2} {
\tl_if_blank:oTF {#2} {
% \ClassWarning{ic-book}{ Passing~unknown~option~'#1'~to~base~class~'\str_use:N \g_icbook__base_class_str' }
\ClassWarning{ic-book}{ Passing~unknown~option~'#1'~to~base~class~'\str_use:N \g_icbook__base_class_str' }
% \PassOptionsToClass { #1 } { \str_use:N \g_icbook__base_class_str }
\PassOptionsToClass { #1 } { \str_use:N \g_icbook__base_class_str }
% }
}
% {
{
% \ClassWarning{ic-book}{ Passing~unknown~key~'#1'~with~value~'#2'~to~base~class~'\str_use:N \g_icbook__base_class_str' }
\ClassWarning{ic-book}{ Passing~unknown~key~'#1'~with~value~'#2'~to~base~class~'\str_use:N \g_icbook__base_class_str' }
% \PassOptionsToClass { #1 = #2 } { \str_use:N \g_icbook__base_class_str }
\PassOptionsToClass { #1 = #2 } { \str_use:N \g_icbook__base_class_str }
% }
}
% }
}
% \ProcessKeysOptions also handles global "class" options. This is the intended way, as we want to react to global changes e.g. language selections
% \ProcessKeysOptions also handles global "class" options. This is the intended way, as we want to react to global changes e.g. language selections
% see: https://tex.stackexchange.com/a/371754/53868
% see: https://tex.stackexchange.com/a/371754/53868
@@ -88,21 +97,6 @@
@@ -88,21 +97,6 @@
%% Pre-Package-Loading:
%% Pre-Package-Loading:
% make the default size a4paper
% NOTE: the paper size given as option to \documentclass is still respected
\PassOptionsToClass{paper=a4}{\g_icbook__base_class_str}
% scrbook uses a grid to divide the page into typearea and margins. A default sizing is to divide this grid into 9 divisions. For a more detailed explanation, have a look at the documentation of scrbook and typearea in scrguide.
\PassOptionsToClass{DIV=11}{\g_icbook__base_class_str}
% Make scrbook prepend prefixes into appendix sections, e.g. "Appendix A" instead of just "A".
% TODO: move into a post-loading-configuretion using \KOMAOptions?
\PassOptionsToClass{
appendixprefix=true,
headings=onelineappendix
}{\g_icbook__base_class_str}
% scrlayer-scrpage is loaded by base class scrbook. It needs to be configured to correctly display section titles in headers
% scrlayer-scrpage is loaded by base class scrbook. It needs to be configured to correctly display section titles in headers
\PassOptionsToPackage{
\PassOptionsToPackage{
% mandatory, if \leftmark and \rightmark must be used in oneside documents
% mandatory, if \leftmark and \rightmark must be used in oneside documents
@@ -147,6 +141,10 @@
@@ -147,6 +141,10 @@
% general development paradigm: load the packages with as few options as possible here. If options needs to be given, define them in the ``%% Pre-Package-Loading`` section using ``\PassOptionsToPackage{<option>}{<package>}''. Preferrably, you should use the package's own setup macro.
% general development paradigm: load the packages with as few options as possible here. If options needs to be given, define them in the ``%% Pre-Package-Loading`` section using ``\PassOptionsToPackage{<option>}{<package>}''. Preferrably, you should use the package's own setup macro.
\LoadClassWithOptions{\g_icbook__base_class_str}
\LoadClassWithOptions{\g_icbook__base_class_str}
 
% in order to supress multiple warnings regarding \float@addtolist in conjunction with \chapter, floatrow et al. load this package as a workaround. KOMAScript author Markus Kohm is working on a package floatrowbytocbasic(2023), but this did no resolve the issue with \chapter for now.
 
% TODO: possibly replace this in the future.
 
\RequirePackage{scrhack}
 
%% Load Packages: Typography
%% Load Packages: Typography
@@ -497,6 +495,10 @@
@@ -497,6 +495,10 @@
% always print sectioning numbers without trailing dot (normally, KOMA decides and handles this in different ways)
% always print sectioning numbers without trailing dot (normally, KOMA decides and handles this in different ways)
\KOMAoptions{numbers=noenddot}
\KOMAoptions{numbers=noenddot}
 
% Make scrbook prepend prefixes into appendix sections, e.g. "Appendix A" instead of just "A".
 
\KOMAoption{appendixprefix}{true}
 
\KOMAoption{headings}{onelineappendix}
 
% by default, every sectioning should be numbered. If this is not desired, the author should use the starred sectioning commands or manually override the secnumdepth value according to
% by default, every sectioning should be numbered. If this is not desired, the author should use the starred sectioning commands or manually override the secnumdepth value according to
% -1 part
% -1 part
% 0 chapter
% 0 chapter
@@ -514,7 +516,9 @@
@@ -514,7 +516,9 @@
\ohead*{}
\ohead*{}
\chead*{}
\chead*{}
\ihead*{}
\ihead*{}
 
\ifoot*{}
\cfoot*{\thepage~\GetTranslation{of}~\pageref{LastPage}}
\cfoot*{\thepage~\GetTranslation{of}~\pageref{LastPage}}
 
\ofoot*{}
\ExplSyntaxOn
\ExplSyntaxOn
Loading