diff options
| author | Théo Zimmermann | 2019-12-29 20:42:13 +0100 |
|---|---|---|
| committer | Théo Zimmermann | 2019-12-29 20:42:13 +0100 |
| commit | 0d359bfe1219c221aac4d29a5b443c698009ada4 (patch) | |
| tree | 1367131ba4b0e18528077a5649f206c0d4aa80a6 /doc/sphinx/_static/coqnotations.sty | |
| parent | e176bb419256580d53749d72d533914f794a981d (diff) | |
| parent | c56492a0447abe230c177a3897707155fc06f1a4 (diff) | |
Merge PR #11183: Enhance prodn in .rst doc files to support multiple productions in a prodn
Ack-by: Zimmi48
Ack-by: cpitclaudel
Diffstat (limited to 'doc/sphinx/_static/coqnotations.sty')
| -rw-r--r-- | doc/sphinx/_static/coqnotations.sty | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/doc/sphinx/_static/coqnotations.sty b/doc/sphinx/_static/coqnotations.sty index 3548b8754c..8612e51aa5 100644 --- a/doc/sphinx/_static/coqnotations.sty +++ b/doc/sphinx/_static/coqnotations.sty @@ -70,8 +70,23 @@ \newcssclass{notation}{\nnotation{#1}} \newcssclass{repeat}{\nrepeat{#1}} \newcssclass{repeat-wrapper}{\nwrapper{#1}} +\newcssclass{repeat-wrapper-with-sub}{\nwrapper{#1}} \newcssclass{hole}{\nhole{#1}} \newcssclass{alternative}{\nalternative{\nbox{#1}}{0pt}} \newcssclass{alternative-block}{#1} \newcssclass{repeated-alternative}{\nalternative{#1}{\nboxsep}} \newcssclass{alternative-separator}{\quad\naltsep{}\quad} +\newcssclass{prodn-table}{% + \begin{savenotes} + \sphinxattablestart + \begin{tabulary}{\linewidth}[t]{lLL} + #1 + \end{tabulary} + \par + \sphinxattableend + \end{savenotes}} +% latex puts targets 1 line below where they should be; prodn-target corrects for this +\newcssclass{prodn-target}{\raisebox{\dimexpr \nscriptsize \relax}{#1}} +\newcssclass{prodn-cell-nonterminal}{#1 &} +\newcssclass{prodn-cell-op}{#1 &} +\newcssclass{prodn-cell-production}{#1\\} |
