texlive[65481] Master/texmf-dist: simplebnf (7jan23)

commits+karl at tug.org commits+karl at tug.org
Sat Jan 7 22:22:31 CET 2023


Revision: 65481
          http://tug.org/svn/texlive?view=revision&revision=65481
Author:   karl
Date:     2023-01-07 22:22:30 +0100 (Sat, 07 Jan 2023)
Log Message:
-----------
simplebnf (7jan23)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/simplebnf/LICENSE
    trunk/Master/texmf-dist/doc/latex/simplebnf/simplebnf-doc.pdf
    trunk/Master/texmf-dist/doc/latex/simplebnf/simplebnf-doc.tex
    trunk/Master/texmf-dist/tex/latex/simplebnf/simplebnf.sty

Modified: trunk/Master/texmf-dist/doc/latex/simplebnf/LICENSE
===================================================================
--- trunk/Master/texmf-dist/doc/latex/simplebnf/LICENSE	2023-01-07 21:22:18 UTC (rev 65480)
+++ trunk/Master/texmf-dist/doc/latex/simplebnf/LICENSE	2023-01-07 21:22:30 UTC (rev 65481)
@@ -1,6 +1,6 @@
 The MIT License (MIT)
 
-Copyright © 2019-2022 Jay Lee <jaeho.lee at snu.ac.kr>
+Copyright © 2019-2023 Jay Lee <jaeho.lee at snu.ac.kr>
 
 Permission is hereby granted, free of charge, to any person obtaining
 a copy of this software and associated documentation files (the "Software"),

Modified: trunk/Master/texmf-dist/doc/latex/simplebnf/simplebnf-doc.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/simplebnf/simplebnf-doc.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/simplebnf/simplebnf-doc.tex	2023-01-07 21:22:18 UTC (rev 65480)
+++ trunk/Master/texmf-dist/doc/latex/simplebnf/simplebnf-doc.tex	2023-01-07 21:22:30 UTC (rev 65481)
@@ -32,10 +32,10 @@
 
 \title{%
   \textsf{simplebnf} --- A simple package to format Backus-Naur form%
-  \footnote{This file describes v0.3.1.}}
+  \footnote{This file describes v0.3.2.}}
 \author{Jay Lee\footnote{E-mail: %
   \href{mailto:jaeho.lee at snu.ac.kr}{\texttt{jaeho.lee at snu.ac.kr}}}}
-\date{2022/05/08}
+\date{2023/01/07}
 
 \begin{document}
 \maketitle
@@ -45,14 +45,21 @@
 \begin{presentcommand}
   \cmd{SimpleBNFDefEq}
 \end{presentcommand}
-This command is used to typeset the definition symbol separate a nonterminal from its productions. It defaults to \SimpleBNFDefEq. It can be redefined to customized output using \verb|RenewDocumentCommand|.
+This command is used to typeset the definition symbol separate a nonterminal from its productions. It defaults to \SimpleBNFDefEq. It can be redefined using \verb|RenewDocumentCommand|.
 
 \begin{presentcommand}
   \cmd{SimpleBNFDefOr}
 \end{presentcommand}
-This command is used to typeset the separator symbol between productions. It defaults to \SimpleBNFDefOr. It can be redefined to customized output using \verb|RenewDocumentCommand|.
+This command is used to typeset the separator symbol between productions. It defaults to \SimpleBNFDefOr. It can be redefined using \verb|RenewDocumentCommand|.
 
 \begin{presentcommand}
+  \cmd{SimpleBNFStretch}
+\end{presentcommand}
+This command is used to control the vertical spacing between consecutive rules.
+It defaults to 0.
+It can be redefined using \verb/Renewdocumentcommand/.
+
+\begin{presentcommand}
   \cmd{bnfexpr}
 \end{presentcommand}
 This command is used when typesetting the BNF nonterminal and productions. It defaults to a wrappers around \cmd{texttt}. It can be redefined to customized output using \verb|RenewDocumentCommand|.

Modified: trunk/Master/texmf-dist/tex/latex/simplebnf/simplebnf.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/simplebnf/simplebnf.sty	2023-01-07 21:22:18 UTC (rev 65480)
+++ trunk/Master/texmf-dist/tex/latex/simplebnf/simplebnf.sty	2023-01-07 21:22:30 UTC (rev 65481)
@@ -13,8 +13,8 @@
 \RequirePackage{mathtools}
 \ProvidesExplPackage
   {simplebnf}
-  {2022/05/08}
-  {0.3.1}
+  {2023/01/07}
+  {0.3.2}
   {A simple package to format Backus–Naur form}
 
 \cs_generate_variant:Nn \regex_split:nnNTF {nVNTF}
@@ -24,6 +24,8 @@
 
 \NewDocumentCommand\SimpleBNFDefOr{}{\ensuremath{|}}
 
+\NewDocumentCommand\SimpleBNFStretch{}{0em}
+
 \seq_new:N \l__input_seq
 \seq_new:N \l__term_seq
 \tl_new:N \l__term_tl
@@ -143,7 +145,7 @@
             \bool_set_false:N \l_tmp_first_term
           }
           {
-            \tl_put_right:Nn \l__table_tl { \\ }
+            \tl_put_right:Nn \l__table_tl { \\[\SimpleBNFStretch] }
           }
 
         \regex_split:nnNTF { ::= } { ##1 } \l__term_seq
@@ -197,7 +199,7 @@
 
 %% The MIT License (MIT)
 %%
-%% Copyright © 2019-2022 Jay Lee <jaeho.lee at snu.ac.kr>
+%% Copyright © 2019-2023 Jay Lee <jaeho.lee at snu.ac.kr>
 %%
 %% Permission is hereby granted, free of charge, to any person obtaining
 %% a copy of this software and associated documentation files (the "Software"),



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