diff options
author | Camil Staps | 2016-02-12 14:18:47 +0100 |
---|---|---|
committer | Camil Staps | 2016-02-12 14:18:47 +0100 |
commit | eb0ec749bd50c16e578aa2602319e958c7ee5e64 (patch) | |
tree | 63963a1c6f9ba0387e3bac7b3edb4e92f0418359 /sv.sty | |
parent | makefile (diff) |
Assignment 2; \next command
Diffstat (limited to 'sv.sty')
-rw-r--r-- | sv.sty | 36 |
1 files changed, 35 insertions, 1 deletions
@@ -3,6 +3,40 @@ \let\eventually\lozenge \let\always\square \def\until{\mathop{\mathsf U}} -\let\next\bigcirc +\def\untilW{\mathop{\mathsf W}} \let\then\Rightarrow + +\def\potentially{\exists\eventually} +\def\inevitably{\forall\eventually} +\def\potentiallyalways{\exists\always} +\def\invariantly{\forall\always} + +% The below is taken from the circle package; https://www.ctan.org/pkg/circle +% However, circle is not available in texlive, so this is easier. +\newcommand*\Circle[1][n]{% + \mathchoice{\@Circle{#1}{\tf@size}}{\@Circle{#1}{\tf@size}}% + {\@Circle{#1}{\sf@size}}{\@Circle{#1}{\ssf@size}}% +} + +% Bugs: circles have size n at fontsize 2n-1 and 2n; they do not scale linearly +% depending on the fontsize + +\newcommand*\@Circle[2]{{% + \dimen0=#2pt \advance\dimen0by4.5pt \dimen1=1pt \divide\dimen0by\dimen1 + \count255=\dimen0 \ifodd\count255 \advance\count255by1 \fi\divide\count255by2 + \ifnum\count255=0 {}\else\ifnum\count255>15 {}\else + \dimen0=\count255pt + \edef\circfont{tencirc\ifnum\count255>8 w\fi} + \advance\count255by\if #1f111\else 95\fi + \dimen2=.82\dimen0 \advance\dimen2by.4pt + \raisebox{.5\dimen0}[\dimen2]{\makebox[1.2\dimen0]{% + \hspace*{.9\dimen0}% + \csname\circfont\endcsname + \char\count255 % + }}% + \fi\fi +}} + +\let\next\Circle + |