summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/jwjournal/jwjournal.cls
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/jwjournal/jwjournal.cls')
-rw-r--r--macros/latex/contrib/jwjournal/jwjournal.cls17
1 files changed, 15 insertions, 2 deletions
diff --git a/macros/latex/contrib/jwjournal/jwjournal.cls b/macros/latex/contrib/jwjournal/jwjournal.cls
index 9b1e23804f..9c208c88a8 100644
--- a/macros/latex/contrib/jwjournal/jwjournal.cls
+++ b/macros/latex/contrib/jwjournal/jwjournal.cls
@@ -12,7 +12,7 @@
\NeedsTeXFormat{LaTeX2e}[2022-06-01]
\ProvidesExplClass
{jwjournal}
- {2023/09/01} {}
+ {2023/09/28} {}
{JW's journal class}
\keys_define:nn { jwjournal }
@@ -105,6 +105,8 @@
\RequirePackage { enumitem }
\setlist [ description ] { font = \normalfont\sffamily, leftmargin = 3em, topsep = 0pt, labelsep = 1em }
+\newlist { jwjournal-continued-text } { itemize } { 1 }
+\setlist [ jwjournal-continued-text ] { leftmargin = 3em, topsep = 0pt, label = {} }
\dim_new:N \l_jwjournal_labelsep_dim
\dim_set:Nn \l_jwjournal_labelsep_dim { \labelsep }
\setlist [ 2 ] { labelsep = \l_jwjournal_labelsep_dim, labelwidth = !}
@@ -124,6 +126,12 @@
\item[#1] #2
\end{description}
}
+\NewDocumentCommand \JWJournalContinue { m }
+ {
+ \begin{jwjournal-continued-text}
+ \item #1
+ \end{jwjournal-continued-text}
+ }
\NewDocumentCommand \JWJournalNote { m }
{
@@ -338,7 +346,7 @@
{ \c{hfill} }
\l_jwjournal_tmp_tl
\regex_replace_all:nnN
- { // }
+ { [^\:]// }
{ \c{c_jwjournal_new_line_with_skip_tl} }
\l_jwjournal_tmp_tl
@@ -423,6 +431,11 @@
{ \c{JWJournalItem} {\1} {\2} }
\l_jwjournal_tmp_tl
+ \regex_replace_once:nnN
+ { ❄️ \ *? \~\~ \ *? (.*) }
+ { \c{JWJournalContinue} {\1} }
+ \l_jwjournal_tmp_tl
+
\regex_replace_once:nnN { ❄️ } { } \l_jwjournal_tmp_tl
\tl_gput_right:NV \g_jwjournal_content_tl \l_jwjournal_tmp_tl