diff options
Diffstat (limited to 'misc/test-tex')
-rw-r--r-- | misc/test-tex | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/misc/test-tex b/misc/test-tex deleted file mode 100644 index 9ba8dfc..0000000 --- a/misc/test-tex +++ /dev/null @@ -1,53 +0,0 @@ -@start \vspace{-0.5\unit}{\footnotesize\italic{@@:}}\vspace{-1\unit}\n\begin{codeblock} -@add \vspace{-0.5\unit}{\footnotesize\italic{+ @@:}}\vspace{-1\unit}\n\begin{codeblock} -@end \end{codeblock} -@ref §\textrm{\italic{(@@)}}§ - -\documentclass[debug]{microstructure} - -\author{DistressNetwork°} -\lstset{escapechar=§} - -\begin{document} - -\resetv{-3\unit}\section{Hello world in Zig} - -This is an example `hello world' program. - -@: * -@= Imports - -pub fn main() !void { - @= Print -} -@. - -We first import the standard library. - -@: Imports -const std = @import("std"); -@. - -Then we print the desired string. - -@: Print -std.debug.print("Hello world\n", .{}); -@. - -We can also print using a format string. - -@+ Print -std.debug.print("Hello world {s}\n", .{"again"}); -@. - -Or we can use a \mono{writer()} method and write to stdout directly. - -@+ Imports -const write = std.io.getStdOut().writer().write; -@. - -@+ Print -_ = try write("Hello stdout\n"); -@. - -\end{document} |