类中的双列 mod 选项不再起作用

类中的双列 mod 选项不再起作用

我正在使用一个包含

\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{class_test}
\LoadClassWithOptions{scrbook}
\ClassInfo{class_test}{Copyright (c), 2021.}
%--------------
\usepackage{lipsum}

在主文档中,我有

\documentclass[
  french,
  a4paper,
  landscape,
  twocolumn,
  twoside       = false,
  numbers       = enddot,
  parskip       = half,
  fontsize      = 11,
  DIV           = 15
  ]{class_test}
%
%------------------
\begin{document}
\raggedbottom

\lipsum[1]

\end{document}

一周以来,双列模式不再正确显示。你知道原因吗?

在此处输入图片描述

答案1

现在你可以用这个,我们会想办法

\makeatletter
\def\@pass@ptions#1#2#3{%
  \@expl@@@filehook@set@curr@file@@nNN
    {\@expl@@@filehook@resolve@file@subst@@w #3.#1\@nil}%
      \reserved@a\reserved@b
  \@expl@@@filehook@clear@replacement@flag@@
  \expandafter\xdef\csname opt@\reserved@a\endcsname{%
    \@ifundefined{opt@\reserved@a}\@empty
      {\csname opt@\reserved@a\endcsname,}%
    \zap@space#2 \@empty}%
  \expandafter\let
    \csname opt@#3.#1\expandafter\endcsname
    \csname opt@\reserved@a\endcsname
    \@ifundefined{@raw@opt@#3.#1}%
      {\expandafter\gdef\csname @raw@opt@#3.#1\expandafter\endcsname\expandafter{#2}}%
      {\expandafter\g@addto@macro\csname @raw@opt@#3.#1\expandafter\endcsname\expandafter{\expandafter,#2}}%
}
\def\@loadwithoptions#1#2#3{%
  \expandafter\let\csname opt@#3.#1\expandafter\endcsname
       \csname opt@\@currname.\@currext\endcsname
  \expandafter\let\csname @raw@opt@#3.#1\expandafter\endcsname
       \csname @raw@opt@\@currname.\@currext\endcsname
   #2{#3}}
\makeatother
\documentclass[
  french,
  a4paper,
  landscape,
  twocolumn,
  twoside       = false,
  numbers       = enddot,
  parskip       = half,
  fontsize      = 11,
  DIV           = 15
  ]{class_test}
%
%------------------
\begin{document}
\raggedbottom

\lipsum[1]

\end{document}

相关内容