summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/lualatex/letgut/letgut.cls
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2023-01-15 20:54:13 +0000
committerKarl Berry <karl@freefriends.org>2023-01-15 20:54:13 +0000
commitd514993bbf89481a115b14b40cc967ecabf8f478 (patch)
tree1141f979066dd2a94306d705c6a6b5038c12c381 /Master/texmf-dist/tex/lualatex/letgut/letgut.cls
parent5485dde715d33d248d61bac13e751a472157ef89 (diff)
letgut (15jan23)
git-svn-id: svn://tug.org/texlive/trunk@65548 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/lualatex/letgut/letgut.cls')
-rw-r--r--Master/texmf-dist/tex/lualatex/letgut/letgut.cls42
1 files changed, 24 insertions, 18 deletions
diff --git a/Master/texmf-dist/tex/lualatex/letgut/letgut.cls b/Master/texmf-dist/tex/lualatex/letgut/letgut.cls
index 21f1685864b..fbd7b02e4d2 100644
--- a/Master/texmf-dist/tex/lualatex/letgut/letgut.cls
+++ b/Master/texmf-dist/tex/lualatex/letgut/letgut.cls
@@ -48,8 +48,8 @@
}
\ExplSyntaxOff
\ProvidesExplClass{letgut}
-{2023-01-13}
-{0.9.5}
+{2023-01-14}
+{0.9.6}
{
Class for the newsletter “The GUTenberg Letter”
}
@@ -577,12 +577,8 @@
\c__letgut_default_pagecolor_screen_clist
\keys_define:nn { letgut }
{
- , for-readers .code:n = {
- \bool_gset_true:N \g__letgut_for_readers_bool
- \bool_gset_false:N \g__letgut_included_files_attached_bool
- }
+ , for-readers .bool_gset:N = \g__letgut_for_readers_bool
, for-readers .initial:n = { true }
- , for-readers .default:n = { true }
, for-authors .bool_gset_inverse:N = \g__letgut_for_readers_bool
, draft .bool_gset:N = \g__letgut_draft_bool
, draft .initial:n = { true }
@@ -593,9 +589,10 @@
\pagecolor[rgb]{\c__letgut_default_pagecolor_paper_clist}
\clist_set_eq:NN \g__letgut_pagecolor_clist
\c__letgut_default_pagecolor_paper_clist
- \bool_gset_false:N \g__letgut_included_files_attached_bool
}
- , screen .bool_gset_inverse:N = \g__letgut_paper_bool
+ , screen .code:n = {
+ \bool_gset_false:N \g__letgut_paper_bool
+ }
, number .int_gset:N = \g__letgut_number_int
, date .code:n = { \__letgut_date_parse:n { #1 } }
, date .initial:x = {\the\year-\the\month}
@@ -628,9 +625,26 @@
, informations .initial:n = { true }
, detailedtoc .bool_gset:N = \g__letgut_detailedtoc_bool
, detailedtoc .initial:n = { false }
- , source-files-attached .bool_gset:N = \g__letgut_force_included_files_attached_bool
+ , reverse-files-attachement .code:n = {
+ \AddToHook{begindocument/before}{
+ \bool_lazy_and:nnTF {\g__letgut_for_readers_bool} {!\g__letgut_paper_bool}
+ {
+ \bool_gset_false:N \g__letgut_included_files_attached_bool
+ }{
+ \bool_gset_true:N \g__letgut_included_files_attached_bool
+ }
+ }
+ }
}
\ProcessKeysOptions { letgut }
+\AddToHook{begindocument/before}{
+ \bool_lazy_and:nnTF {\g__letgut_for_readers_bool} {!\g__letgut_paper_bool}
+ {
+ \bool_gset_true:N \g__letgut_included_files_attached_bool
+ }{
+ \bool_gset_false:N \g__letgut_included_files_attached_bool
+ }
+}
\definecolor{letgut_pagecolor}{rgb}{\g__letgut_pagecolor_clist}
\renewcommand{\headruleskip}{
\c__letgut_head_rule_skip_dim
@@ -1895,7 +1909,6 @@ title .value_required:n = true,
\lstset{ style=__letgut_reset_listings_styles }
\acresetall%
\input{#2}%
- % \bool_show:N \g__letgut_included_files_attached_bool
\bool_if:NT \g__letgut_included_files_attached_bool {
\IfBooleanF {#1}{
\seq_gput_left:Nn \g__letgut_included_files_seq {
@@ -2037,13 +2050,6 @@ title .value_required:n = true,
\bool_gset_true:N \g__letgut_lstlanguage_file_attached_bool
}
}
-\AddToHook{begindocument/before}{
- \bool_if:NTF \g__letgut_force_included_files_attached_bool {
- \bool_gset_true:N \g__letgut_included_files_attached_bool
- }{
- \bool_gset_false:N \g__letgut_included_files_attached_bool
- }
-}
\lstdefinestyle{__letgut_reset_listings_styles}{
basicstyle=\ttfamily,
breaklines,