diff options
-rw-r--r-- | Master/texmf-dist/doc/latex/simplebnf/LICENSE | 2 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/simplebnf/simplebnf-doc.pdf | bin | 152698 -> 156004 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/simplebnf/simplebnf-doc.tex | 15 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/simplebnf/simplebnf.sty | 10 |
4 files changed, 18 insertions, 9 deletions
diff --git a/Master/texmf-dist/doc/latex/simplebnf/LICENSE b/Master/texmf-dist/doc/latex/simplebnf/LICENSE index 720f8374bac..e82f82962af 100644 --- a/Master/texmf-dist/doc/latex/simplebnf/LICENSE +++ b/Master/texmf-dist/doc/latex/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/Master/texmf-dist/doc/latex/simplebnf/simplebnf-doc.pdf b/Master/texmf-dist/doc/latex/simplebnf/simplebnf-doc.pdf Binary files differindex fb80c407fb9..f0b419d363f 100644 --- a/Master/texmf-dist/doc/latex/simplebnf/simplebnf-doc.pdf +++ b/Master/texmf-dist/doc/latex/simplebnf/simplebnf-doc.pdf diff --git a/Master/texmf-dist/doc/latex/simplebnf/simplebnf-doc.tex b/Master/texmf-dist/doc/latex/simplebnf/simplebnf-doc.tex index 99ac96780b2..72fa982e240 100644 --- a/Master/texmf-dist/doc/latex/simplebnf/simplebnf-doc.tex +++ b/Master/texmf-dist/doc/latex/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/Master/texmf-dist/tex/latex/simplebnf/simplebnf.sty b/Master/texmf-dist/tex/latex/simplebnf/simplebnf.sty index ae4482c29ba..82d39139aa8 100644 --- a/Master/texmf-dist/tex/latex/simplebnf/simplebnf.sty +++ b/Master/texmf-dist/tex/latex/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"), |