summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/simplebnf
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2023-01-08 03:01:28 +0000
committerNorbert Preining <norbert@preining.info>2023-01-08 03:01:28 +0000
commit7d5553601ccc6f3feed4f9563a6270739bd4da54 (patch)
tree5439910db3631d3200f0f7df70e3d8707ab146cf /macros/latex/contrib/simplebnf
parentc946b2e792715f6030486d5214be1df081de37a8 (diff)
CTAN sync 202301080301
Diffstat (limited to 'macros/latex/contrib/simplebnf')
-rw-r--r--macros/latex/contrib/simplebnf/LICENSE2
-rw-r--r--macros/latex/contrib/simplebnf/simplebnf-doc.pdfbin152698 -> 156004 bytes
-rw-r--r--macros/latex/contrib/simplebnf/simplebnf-doc.tex15
-rw-r--r--macros/latex/contrib/simplebnf/simplebnf.sty10
4 files changed, 18 insertions, 9 deletions
diff --git a/macros/latex/contrib/simplebnf/LICENSE b/macros/latex/contrib/simplebnf/LICENSE
index 720f8374ba..e82f82962a 100644
--- a/macros/latex/contrib/simplebnf/LICENSE
+++ b/macros/latex/contrib/simplebnf/LICENSE
@@ -1,6 +1,6 @@
The MIT License (MIT)
-Copyright © 2019-2022 Jay Lee <jaeho.lee@snu.ac.kr>
+Copyright © 2019-2023 Jay Lee <jaeho.lee@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"),
diff --git a/macros/latex/contrib/simplebnf/simplebnf-doc.pdf b/macros/latex/contrib/simplebnf/simplebnf-doc.pdf
index fb80c407fb..f0b419d363 100644
--- a/macros/latex/contrib/simplebnf/simplebnf-doc.pdf
+++ b/macros/latex/contrib/simplebnf/simplebnf-doc.pdf
Binary files differ
diff --git a/macros/latex/contrib/simplebnf/simplebnf-doc.tex b/macros/latex/contrib/simplebnf/simplebnf-doc.tex
index 99ac96780b..72fa982e24 100644
--- a/macros/latex/contrib/simplebnf/simplebnf-doc.tex
+++ b/macros/latex/contrib/simplebnf/simplebnf-doc.tex
@@ -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@snu.ac.kr}{\texttt{jaeho.lee@snu.ac.kr}}}}
-\date{2022/05/08}
+\date{2023/01/07}
\begin{document}
\maketitle
@@ -45,12 +45,19 @@ This package provides a simple way to typeset grammars written in Backus-Naur fo
\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}
diff --git a/macros/latex/contrib/simplebnf/simplebnf.sty b/macros/latex/contrib/simplebnf/simplebnf.sty
index ae4482c29b..82d39139aa 100644
--- a/macros/latex/contrib/simplebnf/simplebnf.sty
+++ b/macros/latex/contrib/simplebnf/simplebnf.sty
@@ -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@snu.ac.kr>
+%% Copyright © 2019-2023 Jay Lee <jaeho.lee@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"),