LaTeX 中的 Z 规范

发布于 2024-09-06 03:36:28 字数 44 浏览 3 评论 0原文

LaTeX 有没有支持编写 Z 规范的包?我对模式的水平和垂直格式感兴趣。

Is there any package for LaTeX which will support writing Z specifications? I am interested in both horizontal and vertical formats for schemas.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

謸气贵蔟 2024-09-13 03:36:28

有一个包,叫做 zed-csp。这是关于如何使用它的参考

这是一个示例架构:

\begin{schema}{InitJunction1}
\Delta Sys\\
junc?: JUNCTION\\
road1?: ROAD\\
road2?: ROAD
\where
road1? \neq road2?\\
junc? \notin juncList\\
\forall j: juncList @ \neg ((road1? \in roadsInJunc(j)) \land (road2? \in roadsInJunc(j))\\
roadsInJunc' = roadsInJunc \cup \{junc? \mapsto \{road1,road2\}\}\\
juncList' = juncList \cup \{junc?\}
\end{schema}

请参阅我关于该主题的问题和答案:
LyX 中的 Zed 表示法

There is a package, it is called zed-csp. Here's a reference on how to use it.

Here's an example schema:

\begin{schema}{InitJunction1}
\Delta Sys\\
junc?: JUNCTION\\
road1?: ROAD\\
road2?: ROAD
\where
road1? \neq road2?\\
junc? \notin juncList\\
\forall j: juncList @ \neg ((road1? \in roadsInJunc(j)) \land (road2? \in roadsInJunc(j))\\
roadsInJunc' = roadsInJunc \cup \{junc? \mapsto \{road1,road2\}\}\\
juncList' = juncList \cup \{junc?\}
\end{schema}

See my question and answer on the subject:
Zed Notation in LyX

农村范ル 2024-09-13 03:36:28

有相当多的软件包支持在 LaTeX 中编写 Z 规范。尽管许多具有非常相似的语法并且有些提供额外的功能。

有关这些软件包的更多信息,请访问:http://czt.sourceforge.net/latex/

它解释了 fuzz.sty 是第一个,包含重要的宏,但与 ISO-Z 标准不兼容,zed.sty zed-csp.sty 是一个牛津版本,改进了 fuzz.sty 等

There are quite a few packages which offer support for writing Z specification in LaTeX. Although many have very similar syntax and some offer extra functions.

More information on these packages can be found here: http://czt.sourceforge.net/latex/

It explains that was the fuzz.sty was the first and contains important macros yet is not compatible with ISO-Z Standard, zed.sty and zed-csp.sty were an Oxford version that improved on fuzz.sty etc

巨坚强 2024-09-13 03:36:28

这是我的软件工程教授在创建 Z 模式和操作时用于 LaTeX 格式的内容:

\usepackage{oz, amsfonts}
...
\begin{schema}{MusicStore}
member: \pset NAME\\
orders: \pset (NAME\times ALBUM)\\
owns: \pset (NAME\times ALBUM)
\ST
{\bf dom}\mbox{ } orders \subseteq member\\
{\bf dom}\mbox{ } owns \subseteq member\\
\forall (m, a)\in orders.(m, a)\notin owns
\end{schema}

我希望它有帮助。

This is what my Software Engineering Professor used for the LaTeX-formatting when creating the Z-Schemas and Operations:

\usepackage{oz, amsfonts}
...
\begin{schema}{MusicStore}
member: \pset NAME\\
orders: \pset (NAME\times ALBUM)\\
owns: \pset (NAME\times ALBUM)
\ST
{\bf dom}\mbox{ } orders \subseteq member\\
{\bf dom}\mbox{ } owns \subseteq member\\
\forall (m, a)\in orders.(m, a)\notin owns
\end{schema}

I hope it's helpful.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文