Latex package based on TikZ for adding BPjs shapes to your paper
Current release includes pictures for the BP life cycle and COBP life cycle.
This project is licensed under the LaTeX Project Public License v1.3c or later, see http://www.latex-project.org/lppl.txt
Behavioral Programming (BP) is a novel, language-independent paradigm for programming reactive systems, centered on natural and incremental specification of behavior.
For more information visit here.
BPjs is an environment for running behavioral programs written in Javascript.
Add the pgf-bp.sty file to your Latex project.
In Overleaf this can be done by:
- Adding a new file to the repository.
- Selecting "From External URL".
- In the first textbox write https://raw.githubusercontent.com/bThink-BGU/Papers-Latex-BP-Tikz/main/pgf-bp.sty
- Press "Create".
Load the package with
\usepackage{pgf-bp}
To present the figure of BP's life-cycle, write:
\documentclass{standalone}
\usepackage{pgf-bp}
\begin{document}
\BPLifeCycle
\end{document}
\BPLifeCycle
is a macro for the following code:
\begin{tikzpicture}
\pic {bpcycle};
\end{tikzpicture}
You can scale the picture using
\scalebox{<scaling factor>}{\BPLifeCycle}
You can also embed the lifecycle inside another tikzpicture, by calling \pic {bpcycle};
directly.
For the COBP lifecycle, simply write \COBPLifeCycle
.