From e0c6872cf40896c7be36b11dcc744620f10adf1d Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Mon, 2 Sep 2019 13:46:59 +0900 Subject: Initial commit --- macros/latex/contrib/pseudo/doc/fig/hilitefig.tex | 20 + macros/latex/contrib/pseudo/doc/fig/kwfig.tex | 28 ++ macros/latex/contrib/pseudo/doc/fig/pausefig.tex | 21 ++ macros/latex/contrib/pseudo/doc/fig/readmecode.tex | 15 + macros/latex/contrib/pseudo/doc/fig/readmefig.svg | 411 +++++++++++++++++++++ macros/latex/contrib/pseudo/doc/fig/readmefig.tex | 16 + 6 files changed, 511 insertions(+) create mode 100644 macros/latex/contrib/pseudo/doc/fig/hilitefig.tex create mode 100644 macros/latex/contrib/pseudo/doc/fig/kwfig.tex create mode 100644 macros/latex/contrib/pseudo/doc/fig/pausefig.tex create mode 100644 macros/latex/contrib/pseudo/doc/fig/readmecode.tex create mode 100644 macros/latex/contrib/pseudo/doc/fig/readmefig.svg create mode 100644 macros/latex/contrib/pseudo/doc/fig/readmefig.tex (limited to 'macros/latex/contrib/pseudo/doc/fig') diff --git a/macros/latex/contrib/pseudo/doc/fig/hilitefig.tex b/macros/latex/contrib/pseudo/doc/fig/hilitefig.tex new file mode 100644 index 0000000000..b0e9cf7780 --- /dev/null +++ b/macros/latex/contrib/pseudo/doc/fig/hilitefig.tex @@ -0,0 +1,20 @@ +\documentclass[beamer,preview,multi]{standalone} +\usepackage{pseudo} +\pseudoset{hpad, compact, kwfont=\bfseries} + +\standaloneenv{myenv} + +\begin{document} + +\begin{standaloneframe} +\begin{myenv} +\begin{pseudo} + <1> Go to line 3 \\ + <3> Go to line 4 \\ + <2> Go to line 2 \\ + <4> Go to line 1 \\ +\end{pseudo} +\end{myenv} +\end{standaloneframe} + +\end{document} diff --git a/macros/latex/contrib/pseudo/doc/fig/kwfig.tex b/macros/latex/contrib/pseudo/doc/fig/kwfig.tex new file mode 100644 index 0000000000..8d25a73a49 --- /dev/null +++ b/macros/latex/contrib/pseudo/doc/fig/kwfig.tex @@ -0,0 +1,28 @@ +\documentclass[beamer,preview,multi, border={-.14pt .14pt 0pt .03pt}]{standalone} + +% To silence the warning from the first execution of \kwfont, in this case: +\usepackage{silence} +\WarningFilter{latexfont}{Font shape} +\WarningFilter{latexfont}{Some font shapes} + +\usepackage{varwidth} + +\usepackage{pseudo} +\pseudoset{compact} + +\standaloneenv{myenv} + +\begin{document} + +% Contents duplicated from pseudo.doc: +\begin{standaloneframe} +\begin{myenv} +\begin{varwidth}{\linewidth} +\textbf{while}\\ % Extended +\kw{while}\\ % Keyword +{\fontseries{b}\selectfont while} % Non-extended +\end{varwidth} +\end{myenv} +\end{standaloneframe} + +\end{document} diff --git a/macros/latex/contrib/pseudo/doc/fig/pausefig.tex b/macros/latex/contrib/pseudo/doc/fig/pausefig.tex new file mode 100644 index 0000000000..0e2645724d --- /dev/null +++ b/macros/latex/contrib/pseudo/doc/fig/pausefig.tex @@ -0,0 +1,21 @@ +\documentclass[beamer,preview,multi]{standalone} +\usepackage{pseudo} +\pseudoset{compact, kwfont=\bfseries} + +\setbeamercovered{transparent} +\standaloneenv{myenv} + +\begin{document} + +\begin{standaloneframe} +\begin{myenv} +\begin{pseudo}[pause] + Eeny \\ + Meeny \\ + Miny \\ + Moe \\ +\end{pseudo} +\end{myenv} +\end{standaloneframe} + +\end{document} diff --git a/macros/latex/contrib/pseudo/doc/fig/readmecode.tex b/macros/latex/contrib/pseudo/doc/fig/readmecode.tex new file mode 100644 index 0000000000..9ad11a0aa9 --- /dev/null +++ b/macros/latex/contrib/pseudo/doc/fig/readmecode.tex @@ -0,0 +1,15 @@ +\begin{pseudo}* + + \hd{Backward}(V, E, v, i) \\ + + $v.\id{label} = i$ \\ + + for $(u,v)\in E$ \\+ + if $0 < v.\id{label} < i$ \\+ + \pr{Backward}(V, E, u, i) \\-- + + for $(u,v)\in E$ \\+ + if $u.\id{label} \== 0$ \\+ + \pr{Backward}(V, E, u, i+1) + +\end{pseudo} diff --git a/macros/latex/contrib/pseudo/doc/fig/readmefig.svg b/macros/latex/contrib/pseudo/doc/fig/readmefig.svg new file mode 100644 index 0000000000..0fc3a645a3 --- /dev/null +++ b/macros/latex/contrib/pseudo/doc/fig/readmefig.svg @@ -0,0 +1,411 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/macros/latex/contrib/pseudo/doc/fig/readmefig.tex b/macros/latex/contrib/pseudo/doc/fig/readmefig.tex new file mode 100644 index 0000000000..27a5778288 --- /dev/null +++ b/macros/latex/contrib/pseudo/doc/fig/readmefig.tex @@ -0,0 +1,16 @@ +\documentclass[preview,multi,12pt]{standalone} +\usepackage{adjustbox} +\usepackage[kw]{pseudo} +\pseudoset{compact} + +\standaloneenv{myenv} + +\begin{document} + +\begin{myenv} +\begin{adjustbox}{scale=1.25} +\input{readmecode} +\end{adjustbox} +\end{myenv} + +\end{document} -- cgit v1.2.3