diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/qsharp/qsharp.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/qsharp/qsharp.sty | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/qsharp/qsharp.sty b/Master/texmf-dist/tex/latex/qsharp/qsharp.sty new file mode 100644 index 00000000000..8e6d17f4cf1 --- /dev/null +++ b/Master/texmf-dist/tex/latex/qsharp/qsharp.sty @@ -0,0 +1,72 @@ +%% +%% This is file `qsharp.sty', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% qsharp.dtx (with options: `package') +%% +%% This is a generated file. +%% +%% TODO: license header +%% +\NeedsTeXFormat{LaTeX2e}[1999/12/01] +\ProvidesPackage{qsharp} + [2019/01/14 v0.3.1901.1401 Initial public version.] + + +\usepackage{listings} +\usepackage{xcolor} + + + + +\newcommand{\qs}{Q\#} + + + + +\definecolor{cud-reddish-purple}{RGB}{204,121,167} +\colorlet{doc-comment}{cud-reddish-purple!60!black} + + + + +\makeatletter +\lstdefinelanguage{QSharp}{ + morekeywords={ + namespace, + open, + operation, + function, + body, + adjoint, + auto, + controlled, + let, + set, + mutable, + using, + borrowing, + Adjoint, + Qubit, Unit, + Zero, One + }, + % Define built-in primitives as second-order keywords. + morekeywords=[2]{H, CNOT, I, X, Y, Z, Message}, + sensitive=true, + morecomment=[l]{//}, + morecomment=[l][\lst@commentstyle\color{doc-comment}]{///} +} +\makeatother + + +\lstdefinestyle{QSharp}{ + language=QSharp, + mathescape=true +} + + +\endinput +%% +%% End of file `qsharp.sty'. |