Skip to content

Commit

Permalink
adjust option expansion to resolve compat issues with the new LaTeX f…
Browse files Browse the repository at this point in the history
…ormat, see #317
  • Loading branch information
TeXhackse committed Jun 3, 2021
1 parent 2120db6 commit 3675fba
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions tex/tudabeamer.cls
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
\str_new:N \g_ptxcd_department_str
\keys_define:nn {ptxcd/beamer} {
accentcolor .code:n = \PassOptionsToPackage{accentcolor=#1}{tudacolors},
colorframetitle .code:n = \PassOptionsToPackage{\l_keys_key_tl=#1}{beamercolorthemeTUDa}
\PassOptionsToPackage{\l_keys_key_tl=#1}{beamerouterthemeTUDa},
colorframetitle .code:n = \exp_args:Nx \PassOptionsToPackage{\l_keys_key_tl=#1}{beamercolorthemeTUDa}
\exp_args:Nx \PassOptionsToPackage{\l_keys_key_tl=#1}{beamerouterthemeTUDa},
colorframetitle .default:n = true,
logo .code:n = \PassOptionsToPackage{logo=#1}{beamerouterthemeTUDa},
pdfa .bool_gset:N = \g_ptxcd_pdfa_bool,
Expand Down
6 changes: 3 additions & 3 deletions tex/tudaexercise.cls
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,9 @@
titlepage .code:n = {\msg_warning:nnn {tudapub} {titlepage-option-disabled} {#1}},
paper .choices:nn = {a0,a1,a2,a3,a4,a5,a6}{
\int_gset_eq:NN \g_ptxcd_paper_int \l_keys_choice_int
\PassOptionsToPackage{paper=\l_keys_choice_tl}{tudarules}
\PassOptionsToPackage{paper=\l_keys_choice_tl}{typearea}
\PassOptionsToPackage{\l_keys_choice_tl paper}{geometry}
\exp_args:Nx \PassOptionsToPackage{paper=\l_keys_choice_tl}{tudarules}
\exp_args:Nx \PassOptionsToPackage{paper=\l_keys_choice_tl}{typearea}
\exp_args:Nx \PassOptionsToPackage{\l_keys_choice_tl paper}{geometry}
},
paper .initial:n = a4,
logofile .tl_gset:N = \g_ptxcd_logofile_tl,
Expand Down
2 changes: 1 addition & 1 deletion tex/tudaposter.cls
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
footheight .dim_gset:N = \g_ptxcd_footheight_dim,
paper .choices:nn = {a0,a1,a2,a3,a4}{
\int_gset_eq:NN \g_ptxcd_paper_int \l_keys_choice_int
\PassOptionsToPackage{paper=\l_keys_choice_tl}{tudarules}
\exp_args:Nx \PassOptionsToPackage{paper=\l_keys_choice_tl}{tudarules}
\tl_gset_eq:NN \g_ptxcd_paper_tl \l_keys_choice_tl
},
fontsize .choice:,
Expand Down
6 changes: 3 additions & 3 deletions tex/tudapub.cls
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,9 @@
logo .initial:n = {body},
paper .choices:nn = {a0,a1,a2,a3,a4,a5,a6}{
\int_gset_eq:NN \g_ptxcd_paper_int \l_keys_choice_int
\PassOptionsToPackage{paper=\l_keys_choice_tl}{tudarules}
\PassOptionsToPackage{paper=\l_keys_choice_tl}{typearea}
\PassOptionsToPackage{\l_keys_choice_tl paper}{geometry}
\exp_args:Nx \PassOptionsToPackage{paper=\l_keys_choice_tl}{tudarules}
\exp_args:Nx \PassOptionsToPackage{paper=\l_keys_choice_tl}{typearea}
\exp_args:Nx \PassOptionsToPackage{\l_keys_choice_tl paper}{geometry}
},
paper .initial:n = a4,
IMRAD .bool_gset:N = \g_ptxcd_IMRAD_bool,
Expand Down
4 changes: 2 additions & 2 deletions tex/tudasciposter.cls
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
unknown .code:n = {\prop_gput:NVn \g_ptxcd_clsopts_prop \l_keys_key_tl {#1}},
paper .choices:nn = {a0,a1,a2,a3}{
\int_gset_eq:NN \g_ptxcd_paper_int \l_keys_choice_int
\PassOptionsToPackage{paper=\l_keys_choice_tl}{tudarules}
\PassOptionsToPackage{\l_keys_choice_tl paper}{geometry}
\exp_args:Nx \PassOptionsToPackage{paper=\l_keys_choice_tl}{tudarules}
\exp_args:Nx \PassOptionsToPackage{\l_keys_choice_tl paper}{geometry}
},
paper .initial:n = a0,
fontsize .tl_gset:N = \g_ptxcd_fontsize_tl,
Expand Down

0 comments on commit 3675fba

Please sign in to comment.