tools: Add a --format option

* src/bin/common_output.cc: Add option --format and implement
it.
* src/bin/ltlfilt.cc, src/bin/randltl.cc: Document the
supported %-sequences.
* src/bin/genltl.cc: Document the %-sequences, and supply
the name of the pattern to output_formula().
* doc/org/genltl.org, doc/org/ioltl.org, doc/org/ltlfilt.org,
NEWS: Document it.
* src/ltltest/latex.test: Use it.
This commit is contained in:
Alexandre Duret-Lutz 2013-09-22 22:02:10 +02:00
parent 983feb5290
commit ce5ea829bd
9 changed files with 297 additions and 77 deletions

View file

@ -44,13 +44,13 @@ cat <<\EOF
\usepackage{amsmath}
\usepackage{spotltl}
\begin{document}
\begin{align}
\begin{tabular}{ll}
EOF
( ../../bin/ltlfilt --latex input;
../../bin/genltl --go-theta=1..3 --latex ) | sed 's/$/\\\\/'
( ../../bin/ltlfilt --latex input --format='\texttt{%F:%L} & $%f$ \\';
../../bin/genltl --go-theta=1..3 --latex \
--format='\texttt{--%F:%L} & $%f$ \\')
cat <<\EOF
\text{done}
\end{align}
\end{tabular}
\end{document}
EOF
) > output.tex