texlive[68390] Master/texmf-dist: jwjournal (28sep23)

commits+karl at tug.org commits+karl at tug.org
Thu Sep 28 23:18:36 CEST 2023


Revision: 68390
          https://tug.org/svn/texlive?view=revision&revision=68390
Author:   karl
Date:     2023-09-28 23:18:36 +0200 (Thu, 28 Sep 2023)
Log Message:
-----------
jwjournal (28sep23)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/jwjournal/README.md
    trunk/Master/texmf-dist/tex/latex/jwjournal/jwjournal.cls

Modified: trunk/Master/texmf-dist/doc/latex/jwjournal/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/jwjournal/README.md	2023-09-28 21:18:24 UTC (rev 68389)
+++ trunk/Master/texmf-dist/doc/latex/jwjournal/README.md	2023-09-28 21:18:36 UTC (rev 68390)
@@ -118,6 +118,19 @@
   >> (Some remark)
   >> (Another remark)
   ```
+- `~~`: If you use `>>` or `>>>` inside a Note block (i.e. lines start with `[...]`), then there would no way to get out of the centered or boxed area and then continue the indented text; in such cases, you may start a new paragraph that start with `~~`, this will continue the indented text block:
+  ```
+  [Test] Here is some text.
+    || {some-image} <.4>
+    >> (Centered text)
+
+  ~~
+    Some more text.
+    >>> Text in color box.
+
+  ~~
+    And more text.
+  ```
 - `->` and `<-`: Skip or retrieve certain vertical space, by default half of `\baselineskip`. You may specify the exact spacing in the unit of `\baselineskip`: for example, `-> <0.3>` would be skipping `0.3\baselineskip`, while `<- <.75>` means retrieving `0.75\baselineskip`.
 - `+++`: If a single sentence or a few words fall to the next page, you may write a `+++` before that entry to enlarge the current page by one line.
   > You may write this `+++` several times if necessary, but do make sure that the number of the `+` sign is a multiple of 3.
@@ -168,6 +181,18 @@
 - With pdfLaTeX, the base class is `minimart`.
 - With XeLaTeX or LuaLaTeX, the base class is `einfart`.
 
+### Regarding the fonts
+
+If you are using XeLaTeX or LuaLaTeX to compile your document, then the current document class requires the following open-source fonts that are not included in the standard TeX collection:
+
+- The Source Han font series at [Adobe Fonts](https://github.com/adobe-fonts). More specifically:
+  - Source Han Serif, [go to its Release page](https://github.com/adobe-fonts/source-han-serif/releases).
+  - Source Han Sans, [go to its Release page](https://github.com/adobe-fonts/source-han-sans/releases).
+  - Source Han Mono, [go to its Release page](https://github.com/adobe-fonts/source-han-mono/releases).
+  > It is recommended to download the Super-OTC version, so that the total download size would be smaller, and the installation would be easier.
+
+These are necessary if you wish to write your document in Chinese (either simplified or traditional) or Japanese. Also, without these fonts installed, the compilation speed might be much slower — the compilation would still passing, but the system shall spend (quite) some time verifying that the fonts are indeed missing before switching to the fallback fonts.
+
 ### Colors
 The colors from Monday to Sunday have the internal names `jwjournal-color-1`, ..., `jwjournal-color-7`. Currently they are defined as:
 ```latex

Modified: trunk/Master/texmf-dist/tex/latex/jwjournal/jwjournal.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex/jwjournal/jwjournal.cls	2023-09-28 21:18:24 UTC (rev 68389)
+++ trunk/Master/texmf-dist/tex/latex/jwjournal/jwjournal.cls	2023-09-28 21:18:36 UTC (rev 68390)
@@ -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



More information about the tex-live-commits mailing list.